Personalize your code by adding statements that print your name, course, and assignment title to the console.
Analyze the options for the data types and their implication on the accuracy of the performed operations within the project. Explain, justify, and document the selections you made. Declare and, where appropriate, initialize the constants and variables. Display the questions and answers on the console. Read user input pertaining to the question from the console. Display the user input on the console.
Refer to the High-Quality Programming Code, DOCXPreview the document, file as a reference and guideline when writing your code.
For this assignment, you will submit the .cs file that contains all of the code from this assignment. Include your name in the top of the script using the following format. CH2DoeJohn.cs
Save and submit your assignment in a file using this naming convention. Do not add punctuation or special characters. CH2DoeJohn.cs

Answers

Answer 1

Solution :

class MainClass {

public static void Main(string[] args){

// Declaring variables here

// Change the name , course name and assignment name

String name = "Your name here"; //Stores name of the student

String courseName = "Course Name here"; //Stores course name

String assignmentName = "Assignment name here";//Stores assignment name

int answer; //Stores answer

// Dispaying the name , course and assignment name

Console.WriteLine("Name: "+ name);

Console.WriteLine("Course Name: "+ courseName);

Console.WriteLine("Assignment Name: "+ assignmentName);

// Displaying Question 1

Console.WriteLine("\nQuestion 1: Is the Carbon or Graphite Fiber is lighter than that of Aluminum or the steel?");

// Displaying options

Console.WriteLine("Answer [tex]$.1=$[/tex]Yes\nAnswer 2.= No");

// Prompting user to choose the correct answer

Console.WriteLine("Choose the correct answer");

// Taking input from the user and cnverting into int

answer = Convert.ToInt32(Console.ReadLine());

// Checking for the correct or wrong answer

String correct_or_wrong = 1 == answer ? "Correct": "Wrong";

// Displaying the result

Console.WriteLine(correct_or_wrong);

// Displaying Question 1

Console.WriteLine("\nQuestion 2: The [tex]$F/A-EF$[/tex] Super Hornet max speed is?");

// Displaying options

Console.WriteLine("Answer 1. = 890 MPH\nAnswer 2. = Mach 1.7\nAnswer 3. = Mach 2.9\nAnswer 4. = 967.3 MPH");

// Prompting user to choose the correct answer

Console.WriteLine("Choose the correct answer");

// Taking input from the user and cnverting into int

answer = Convert.ToInt32(Console.ReadLine());

// Checking for the correct or wrong answer

correct_or_wrong = 2 == answer ? "Correct": "Wrong";

// Displaying the result

Console.WriteLine(correct_or_wrong);

}

}


Related Questions

Please Help me i need the right answer fast!

Answers

Answer:

full moon exists when party is between the sub and moon

Which of the following issues relates most to domestic pollcy?
O Education
O Treaties
O War
O Military
Please helppp

Answers

the answer military


9.How did Abbasid rulers support arts and
literature?

Answers

Answer:

Art, poetry, and science flourished. The Abbasids learned from the Chinese (allegedly from Chinese soldiers captured in battle) the art of making paper. Cheap and durable, paper became an important material for spreading literature and knowledge. The fifth caliph of the Abbasid dynasty, Harun al-Rashid.

Explanation:

In your opinion, if you were President during this time, which plan would you choose to bring the country back together, President Lincoln’s 10 percent plan or the Wade-Davies bill from Congress? (Think of which plan was better to unite the country?)

Answers

Lincoln’s plan! this is easy !!

What are some differences between Brazil and its neighbors Bolivia and Paraguay?

Answers

Explanation:

Brazil is a Portuguese speaking country while Bolivia and Paraguay are Spanish speaking countries.

what is your respondent point of view regarding sex​

Answers

Answer:

Ummm

Explanation:

Which group do you think is more effective?

Answers

Answer:

Which groups are you talking about?

Explanation:

When given his prisoner uniform at Birkenau, what item did Yanek feel luck to receive?
A. A pair of pants that fit
B. Underwear
C. A shirt
D. A pair of shoes

Answers

D
I just really want some points :):):)

Write the poem on the topic
of women education​

Answers

Answer:

No

Explanation:

No no no no no no no no no no no no. No no no no

Answer:

here's ur poem..

hope it will help u

What happens in a society when the
government does not allow the news to print
whatever they want?

Answers

Answer:

society would riot

Explanation:

If the government were to do this society would riot. Printing News is a part of freedom of the press, and freedom of speech. Meaning that it is the right that every individual has to voice their own opinion and not be censored by the government in any way. Not allowing the news to print is basically taking away these rights from the citizens and never in history has this gone well for a country. Society always rises up and fights back against the government in these scenarios for their rights.

What must be done first to paraphrase a primary source?

identifying the subject of the text
identifying what the author says about the topic
identifying which words are difficult to understand
identifying which details in the text are most important

Answers

Answer:

A

Explanation:

Identifying the subject of the text must be done first to paraphrase a primary source. Hence, option A is correct.

What is primary source?

A first-person or current account of an event or subject matter is referred to as a primary source. Because they were made by individuals or objects who were present during the time or event, they are the most direct proof of that time or event. These sources present unique ideas or brand-new facts without being subjected to interpretation.

Primary sources offer unfiltered data and first-hand proof. Transcripts from interviews, numerical data, and artistic creations are a few examples. You have direct access to your study topic when you conduct primary research. Secondary sources offer second-hand data and analysis from other scholars.

Someone who did not personally experience or take part in the events or circumstances you are examining developed secondary sources.

Thus, option A is correct.

For more information about primary source, click here:

https://brainly.com/question/29771183

#SPJ6

1. Write a summary of the text. "Settling In: Boarders and Greenhorns" from Shutting out the Sky. Use the information on the two sides above to help you. You must follow the summary template. Each step of the template is worth.

Answers

Answer

Shutting out the Sky tells the stories of five immigrant children who lived in the tenements of New York City between 1880 and the early 1900's. The children came from Eastern Europe and Italy. Their experiences are shared through first-person recollections and vivid photographs of the time period.

Hope it helps.

Which non-price determinate is sometimes utilized by the government to decrease demand
for a product that is viewed as harmful to society?
А
Subsidies
B
Rationing
С
Excise taxes
D
Consumer boycotts

Answers

Answer:

Option C

Excise taxes

Hope this helps you. Do mark me as brainliest.

We are to determine which non-price determinate is sometimes utilized by the government to decrease demand for a product that is viewed as harmful to society

The non-price determinate which is sometimes utilized by the government to decrease demand for a product that is viewed as harmful to society is excise taxes.

Tax refers to the compulsory fee on the income of workers and goods or services sold in a country.

Income tax is levied on employees income.

Excise tax is levied on goods and services. The government uses tax to either encourage the consumption of a product or to discourage the consumption.

When excise tax are increased by the government, the price of the products increases causing a decrease in demand.

On the other hand, when excise tax are reduced, the price of the product decrease causing an increase in demand.

Remember, the law of demand which says "the higher the price, the lower the quantity demanded and the lower the price, the higher the quantity demanded".

Read more:

https://brainly.com/question/3853375

Why did Mormons relocate to utah?

Answers

Answer: In 1844, reeling from the murder of their founder and prophet, Joseph Smith, and facing continued mob violence in their settlement in Illinois, thousands of Latter Day Saints (better known as Mormons) threw their support behind a new leader, Brigham Young. Two years later, Young led the Mormons on their great trek westward through the wilderness some 1,300 miles to the Rocky Mountains—a rite of passage they saw as necessary in order to find their promised land.

Young, and 148 Mormons, crossed into the Great Salt Lake Valley on July 24, 1847. For the next two decades, wagon trains bearing thousands of Mormon immigrants followed Young’s westward trail. By 1896, when Utah was granted statehood, the church had more than 250,000 members, most living in Utah. Today, according to official LDS statistics, Utah is home to more than 2 million Mormons, or about one-third of the total number of Mormons in the United States.

Explanation:

hope this helps!!!

What are the two states that had no railroads?

Answers

Answer:

South Dakota and Wyoming have no passenger rail service

Explanation:

South Dakota and Wyoming

https://www.news4jax.com/positively-jax/2021/02/19/kindness-kabinet-in-atlantic-beach-leave-what-you-can-take-what-you-need/
Summary of the article ^ minimum 1 paragrpah please

Answers

Answer:

What is the first step of effective communication?

a.

Adjust your communication based on the feedback.

b.

Be aware of feedback

c.

Be clear about your goals.

d.

Choose effective words.

 

Explanation:

What is the first step of effective communication?

a.

Adjust your communication based on the feedback.

b.

Be aware of feedbackWhat is the first step of effective communication?

a.

Adjust your communication based on the feedback.

b.

Be aware of feedback

c.

Be clear about your goals.

d.

Choose effective words.

 

c.

Be clear about your goals.

d.

Choose effective words.

 

describe the basic functions of
religion
and
their connections to development.​

Answers

Answer:

Social control

Social unity and togetherness

Psychological support

Explanation:

Religion as a belief or creed with an individual is attached to spiritually has a major effect in shaping the behavior and lifestyle of most people as it is usually stated in the books of each major religion. Therefore, most religious individuals tend to follow in the footsteps of these teachings and these highlights the major importance of religion in shaping the behavior of men.

Religion can contribute immensely to the level of extremism and control individual's exhibit within the society by preaching the adverse effects of negative and that its religion forbid negative and extreme social behavior.

Religion can play a major part in tolerance and togetherness of community members by preaching the impact and spiritual stance of religion towards social cohesion and accommodation.

Some individuals prefer to seek religious opinions and counseling during times of extreme difficulty especially. Religious clerics in this case can provide mental and psychological assistance to help pull through.

True or False: Fossil Fuels are a renewable energy source.

a. this is TRUE because fossil fuels are made from natural materials


b. this is FALSE because fossil fuels are "used up" and cannot be replaced as quickly as we are using them

Answers

Answer:b even though there made from natural material there not renewable

Explanation:

B is the correct answer. We may have them now but it will take time to get them back

list five solutions of energy crisis of Nepal ​

Answers

Explanation:

reduce the unnecessary use of electric power at home use less electricity consuming appliances. use alternative source of energy make the public aware about proper use of electricity use bright colours at home

What is decent work I need help Asapppppp

Answers

Answer:

Professional cuddler. ...

Hotel sleep tester. ...

Beer taster. ...

Video game tester. ...

Sleep study participant. ...

Movie extra. ...

Dog walker.

Or at a restaurant

Explanation:

Christine, a teenager, kept a diary of her most personal moments. The diary was kept hidden in her room. Christine found portions of her private diary, and her picture, posted in a manner accessible to a number of her friends and schoolmates. A friend of the teen's mother was responsible for the postings and was prosecuted for two criminal charges based on acts that violated the teen's privacy. Based upon your reading of Chaney, did Christine have a legitimate expectation of privacy

Answers

Answer:

I think she did have legitimate expactation of privacy because if she is a teen and she keep's a diary  with all her personal moments in there, The friend of the teens mother was responsible for posting things that were in her diary so therefor she would  get two criminal charges

Explanation:

Answer:

i agree with the other person

Explanation:

Please help me i need the answer very hard and plz dont guess ty <3

Answers

Answer:

mt erebus!!

Explanation:

Which of the following was NOT a goal of the Freedmen's Bureau? *
10 points
provide housing
provide medicine
provide educational opportunities
provide weapons for protection
provide food

Answers

Answer:

From what I know, the Freedmen's Bureau was not able to provide protection for African American people.

What was the impact of Fredericksburg?

Answers

Answer: there was a battle

Explanation:

What are the functions of social organization in community?​

Answers

Answer:

Social organization provides a number of signposts for professionals involved in prevention, intervention, and program development activities. The primary elements of social organization, which are social networks, social capital, and community capacity, represent malleable aspects of individual and family life.

Explanation:

what are the examples of territorial games?​

Answers

Soccer basketball lacrosse

John purchased a toy for his young daughter. The toy included nine colorful plastic pieces in the shape of the numbers from 1 to 9. In examining these pieces he made the following observations:
One piece is purple and two pieces each are red, green, yellow, and blue.
The two red pieces are consecutive numbers.
The number 4 is green.
The two blue pieces are not consecutive numbers
Both the 1 and the 9 are yellow
The purple piece is not a number immediately greater than or less than either green piece

Answers

Clarification:

I found the complete instructions for the exercise online:

If one of the red pieces is the number 3, what number is the other red piece?

A.2

B.4

C.5

D.6

E.7

Answer:

A. 2

Explanation:

In this exercise, you have to answer the question after analyzing the information given about the pieces. The correct answer is "2" because both red plastic pieces are consecutive, and one of the red pieces is the number 3. The correct answer couldn't be number 4 because number 4 is one of the green pieces.

It’s urgent!!

Respond to the following question in complete sentences.

What benefits and drawbacks might have arose from the Hellenization of Alexander’s empire?

Answers

Answer:

I'm not sure if you wanted an essay or not

Explanation:

UNIVERSAL LANGUAGE

One enduring aspect of Alexander's campaign of conquest was Hellenization. Hellenization refers to Alexander the Great's practice of bringing Greeks with him on his conquest and installing them as administrators in his growing empire. The result was that Greek culture, philosophy, art and language were quickly spread across the ancient world. Though Alexander's empire soon crumbled, the Greek administrators stayed put, and Greek soon became the universal language of the ancient world.

LINGUISTIC

Though earlier empires made efforts at linguistic unification, none were equipped with a full alphabet like the Greeks had. This alphabet had very few characters, making it easier to learn, but it also included vowel sounds, allowing people unfamiliar with Greek to sound out the words. The Greeks even added little accent marks to their writing to make it even easier to read. The result was that Greek quickly became the universal language of the ancient world.

CULTURE ERASURE

Hellenization, however, had its limitations. For example, areas of southern Syria that were affected by Greek culture entailed mostly Seleucid urban centres, where Greek was commonly spoken. The countryside, on the other hand, was largely unaffected, with most of its inhabitants speaking Syriac and clinging to their native traditions

What events caused the New Kingdom to fall? (i’ll give brainliest to best answer!)

Answers

Answer: (in explanation)

Explanation:

The unity and strength which characterized the 18th and 19th Dynasties steadily was lost during the 20th. The New Kingdom ended when the priests of Amun grew strong enough to assert their power at Thebes and divide the country between their rule and the pharaoh's at the city of Per-Ramesses

At what minimum temperature do rocks melt into lava?
A) 3,500 degrees Celsius
B) 6,332 degrees Fahrenheit
C) 800 degrees Fahrenheit
D) 800 degrees Celsius

Answers

Answer:

im not that sure but i think its C or it can be D  

Explanation:

Temperatures of lavas are in the range 700 °C to 1300 °C (or 1300 °F to 2400 °F), but very rare carbonatite magmas may be as cool as 490 °C, and komatiite magmas may have been as hot as 1600 °C.

if im wrong im soooooooo sorry

Other Questions
what is x? x/9= -5 pls helpppp Find the circumference of the circle rounded to the nearestwhole number5 in.79 in.31 in.15 in16 in What does the Constitution reflect of the country's founders?their visiontheir optimismtheir future planningtheir protective powers it is midday at the clinic and sarah...... I have to find the value of xk so I tried, and honestly I'm not sure what I'm doing wrong but I'm not sure how to solve it. If anyone could help that would be lovely :') thank youu 1651.43 rounded to the nearest hundred What measure of center should we use to describe the invasive crab problem in the mid-Atlantic region? Median, Mode or Mean How is business investment different than spending on production? PLEASE HELP IF POSSIBLE, ASAP!!!!!!!! :) A new parking lot is being built for a medical office. The expression representing the number of parking spots in the new lot is StartFraction 15 x over 4 EndFraction minus 9, where x represents the number of parking spots in the first row. How many spots are in the parking lot if there are 32 parking spots in the first row?7988111129 PLEASE HELP THIS IS DUE NOW!!!!!In 35 sentences, use the information you have learned about theme to write a theme statement about a story or book you have read. Explain whether the theme from your book relates to any universal themes, and explain why or why not. Please help its due in a hour true or false: carbohydrates may be stored as fat if not burned off by physical activity PLS ANSWER ASAP 4. What is the Average adult coagulation time is? If I died, what would happen? (any answers accepted) Verbs that end in ger are conjugated like the ER verbs in every form except. To what extent do you believe the dropping of the atomic bombs contributed to the Japanese surrender? One of the advantages of a home equity loan is that you can borrow money any time, up to the approved amount. true or false how do i put 6x5 in repeated addtion someone is retiring next year. what would be an appropriate amount of risk to take with their investments A. Highest Risk, Highest GrowthB. Medium risk, medium growthC. lower risk, lower growthD. no risk just savings account