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

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 is evaluation and reflective practice?​

Answers

Answer:

Pisząc najogólniej, refleksja jest aktywnością poznawczą polegającą na uświadamianiu sobie

własnego myślenia i działania oraz głębokiego ich analizowania. Refleksyjność jest

przeciwstawiana rutynie i schematyczności. Może ona doprowadzić do zmiany sposobów

myślenie i działania, a nawet zmiany sposobów postrzegania rzeczywistości , mam nadzieje ,że jakos pomoglam

Answer:

evaluation and reflective practice are to separate but related concept.

Explanation:

Evaluation is the process of making an assessment or judgement about an experience or a person .

Reflective practice is the ability reflect one's actions so as to engage process of continuous learning.

How did literature impact Ancient Indian Society

Answers

Answer:

Hindu literary traditions dominate a large part of Indian culture. Apart from the Vedas, which are a sacred form of knowledge, there are other works such as the Hindu epics Ramayana and Mahabharata, treatises such as Vaastu Shastra in architecture and town planning, and Arthashastra in political science.

Explanation:

2. This permit is secured of the Department of Trade and Industry (DTI).​

Answers

Answer:

Ten simple choices for a healthier planet.  

Reduce, reuse, and recycle. Cut down on what you throw away. ...  

Volunteer. Volunteer for cleanups in your community. ...  

Educate. ...  

Conserve water. ...  

Choose sustainable. ...  

Shop wisely. ...  

Use long-lasting light bulbs. ...  

Plant a tree.

What does an antiseptic do? Why would an antiseptic be dangerous to humans if it killed all bacteria?

Answers

Answer:

Normally, antiseptics weaken and slow the growth of bacteria and other microorganisms, which in turn helps to prevent the bacteria from causing further infection. Antibiotics, are responsible for killing bacteria as well as some types of fungi and parasites.

Explanation:

Can someone name all the presidents?

Answers

Answer:

George Washington

John Adams

Thomas Jefferson

James Madison

James Monroe

John Quincy Adams

Andrew Jackson

Martin Van Buren

William Henry Harrison

John Tyler

James K. Polk

Zachary Taylor

Millard Fillmore

Franklin Pierce

James Buchanan

Abraham Lincoln

Andrew Johnson

Ulysses S. Grant

Rutherford Birchard Hayes

James A. Garfield

Chester A. Arthur

Grover Cleveland

Benjamin Harrison

William McKinley

Theodore Roosevelt

William H. Taft

Woodrow Wilson

Warren G. Harding

Calvin Coolidge

Herbert Hoover

Franklin D. Roosevelt

Harry S. Truman

Dwight D. Eisenhower

John F. Kennedy

Lyndon B. Johnson

Richard M. Nixon

Gerald R. Ford

Jimmy Carter

Ronald Reagan

George Bush

Bill Clinton

George W. Bush

Barack Obama

Donald J. Trump

Joseph R. Biden

I NEED THUS ANSWERED IN 10 MINS I WILL GIVE BRAINIEST why did some americans object hamilton's plan

Answers

Explanation:

because his plan was was to retire the old depreciated obligations by borrowing money at a lower interest rate than normal

ramit has kept some sheep at his farm. how are sheep helpful​

Answers

Answer:

there hair

Explanation:

how did chandra gupta I obtain most of his land?​

Answers

Answer:

Chandra Gupta I obtained most of his land by marriage; by doing this he was able to quickly obtain land by marrying a royal with a rich father, making him one of the wealthiest men in his time.

Hope this can help! ≧◡≦

Answer: By marriage

Explanation:Thank me later

Which statement best describes the influence of Piye’s rule on ancient Egypt? Piye’s Kush was an important trade partner for Egypt. Piye conquered Egypt and established the 25th dynasty. Piye fought against the Romans to defend Egypt. Piye was an Egyptian pharaoh who conquered Kush.

Answers

Answer:

B, i took the assignment

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:

The largest threat created by hurricanes usually comes from __________.
.

A.
storm surges
B.
debris
C.
wind
D.
snow

Answers

Answer: its c

Explanation:

The answer is storm surges

Lakesha, Leslie, Rojan (Roy), Luchiea, Nicole, Douglas, Ebony and Eric decided to go on a class picnic along the banks of the Potomac River. You are among the others standing by the edge of the Potomac River. You and your classmates have just finished a delicious picnic and are admiring the view across the river. Suddenly, you see a small sailboat overturn. The passengers cling desperately to the edge of the overturned boat, yelling for HELP!!! You and your classmates look on in horror, but no one swims out to help the people. Both passengers on the sailboat drown. If the families of the deceased passengers sue you when they find out that you didn't attempt to rescue the passengers, the most likely outcome of this case would be: (A) You would be held not liable for the passengers' deaths based on bystander cases. (B) You would be held not liable or responsible for the passengers' death based on the Informational Control Rule. (C) You would be held not responsible for the passengers' deaths based on the hearsay rule. (D) You would be held responsible for the deaths based on the Tarasoff case.

Answers

Answer: (A) You would be held not liable for the passengers' deaths based on bystander cases.

Explanation:

Based on the information given, if the families of the deceased passengers sue the bystanders when they find out that they did not attempt to rescue the passengers, the most likely outcome of this case would be that the bystanders will not be held liable for the passengers' deaths.

According to the bystander cases, it simply states that an individual who is a bystander has no legal duty to rescue someone else who's at distress. Therefore, in this case, the bystanders won't be held responsible for their death.

. How do you respect the people and the organizations working for the
protection of human right in Nepal? Write.
List out the name of human right​

Answers

Answer:

The current activities undertaken by

HURFON are:

• Life Line Initiative and Legal Support for conflict victims and family.

• Human Rights (HR) observation (Based on every day HR situation of the country) • Human Rights Monitor (Quarterly

Publications)

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.

 

Which of these elements are key characteristics of political boundaries in the United States? Select three options.

They are set by the government.
They are created by cultural norms.
They form outlines of states, cities, or regions.
They are determined by significant historical events.
They have exact measurements that may include natural landforms.

Answers

Answer:

They form outlines of state, cities, or regions.

Answer:

They are set by the government.  

They form outlines of states, cities, or regions.  

They have exact measurements that may include natural landforms.

Explanation:

Please help me i need the correct answer fast and please dont guess ty <3

Answers

I’ve heard of a white nile but I’ve never heard of red I hope this helps. Ik you said don’t guess so I hope your not upset.

when it is justifiable torture suspected criminals​

Answers

Answer:

Torture of persons suspected of being criminals has no justification in any aspect, circumstance or situation. There is the right of every accused to a fair defense, and the presumption of innocence until the accused is proven guilty. Therefore, torture should never be used on this type of criminal suspect.

how can you describe a deposition beach​

Answers

Answer:

Deposition along the shore is the result of the longshore drift, which is a process by which sand and sediment is transported along the coast. Deposition of sand and sediment create shoreline features, such as a spit, which is an elongated landform that extends from the coast into the mouth of an adjacent bay.

Rivers carry sediments from the land to the sea. If wave action is high, a delta will not form. Waves will spread the sediments along the coastline to create a beach. Waves also erode sediments from cliffs and shorelines and transport them onto beaches.

Explanation:

Hope this helps : )

Salutary neglect also called benign neglect characterized the relationship between the British empire and its America colonies from the mid 1600s until the end of the seven years war what did salutary neglect entail

Answers

Answer:

:(

Explanation:

What did the committees of correspondence do?

A. All of these
B. Planned for actions the colonies took together
C. Communicated with other colonies
D. Contacted foreign governments

Answers

Answer: B

Explanation:

why would a slave need to protect their own spirit?

Answers

Answer:

Salves were constantly beaten down, torn to nothing and treated as a tool..With any person this would lead to self harm, depression, feeling useless, feeling like you mean nothing and so forth. Or even PTSD.  With this said it is important to protect your mind and your spirit in order to say sane and healthy.

Explanation:

Coming from a future Therapist :)

fair discrimination ​

Answers

no i don’t think discrimination can be fair

Fair discrimination involves a justified separation or a justification for discrimination.

What is Fair discrimination?

Fair discrimination involves a justified separation or a justification for maltreating an individual but discrimination involves unjustified separation of individual or group of people.

This fair discrimination is based on

Action that have been confirmRequirements of a particular jobDiscrimination that is justified by law

Therefore, Fair discrimination involves a justified separation or a justification for discrimination.

Learn more on discrimination here,

https://brainly.com/question/1084594

in reference to the chart although has more than 285 million Christians what best explains changes a low percentage of Christians?
A). Asia is the only region listed never influenced nor controlled by European nations
B).Although Asia has a high number of Christians only children were counted in the percentage
C.)age of total numbers include old Catholics and Protestants but the percentage include only Catholics
D.)Although Asia has a high number of Christians their total population is all so high compared to the other regions listed

Answers

I think option D is correct

Why might someone living in an area that is densely populated want to move west? Is that a push factor or a pull factor?

Answers

Answer:

a

Explanation:

Jose is an auto mechanic in a nearby town. He has decided his own small town needs its own car repair shop, so he plans to open a new one near his home. Jose is an example of what?

Answers

Answer:

oooooooooooooooooooooo

Which of the below is an example of when homeostasis fails? *

You sweat on a really hot day.
You have an asthma attack and your lungs swell, making it hard to breathe.
Your heart rate increases as you exercise.

Answers

Answer:

You have an asthma attack and your lungs swell, making it hard to breathe.

Explanation:

Answer:

You have an asthma attack and your lungs swell, making it hard to breathe.

Explanation:

hope it helps have a great dayy!!

Most online surveys fall prey to which common problem?
Group of answer choices

They favor people with extreme opinions

The samples are not random

They are subject to political bias

They are too expensive.

Answers

They favor people with extreme opinions because they have the most to say on a brand.

Who are the Bedouins? How did some of them become wealthy and
powerful? *

Answers

Answer:

The Bedouin, Beduin or Bedu (/ˈbɛduɪn/;[8] Arabic: بَدْو‎, romanized: badū, singular بَدَوِي badawī) are nomadic Arab Tribes who have historically inhabited the desert regions in the Levant, the Arabian Peninsula, Upper Mesopotamia, and North Africa.[9] The English word bedouin comes from the Arabic badawī, which means "desert dweller", and is traditionally contrasted with ḥāḍir, the term for sedentary people.[10] Bedouin territory stretches from the vast deserts of North Africa to the rocky sands of the Middle East.[11] They are traditionally divided into tribes, or clans (known in Arabic as ʿašāʾir; عَشَائِر), and historically share a common culture of herding camels and goats.[11] The vast majority of Bedouin adhere to Islam, although there are some fewer numbers of Arab Christian Bedouins present in the Fertile Crescent.[12][5][6][7]

Bedouin

Naturally occuring inorganic solids are a part of which system?

the biosphere
the biosphere

the atmosphere
the atmosphere

the geosphere
the geosphere

Naturally occuring inorganic solids are a part of which system?

the biosphere

the atmosphere

the geosphere

the hydrosphere

Answers

Answer:

the geosphere

Explanation:

Naturally occurring inorganic solids are consist of specific chemical composition and have a orderly internal structure.

Naturally occurring inorganic solids  are the part of geosphere as they are found on the earth. example of naturally occurring inorganic solids is minerals such as calcium, iron, zinc, copper and sodium, these all are found on the geosphere and have specific chemical composition and physical characteristics.

Hence, the correct answer is "the geosphere".

Other Questions
In TUV, the measure of V=90, the measure of T=52, and UV = 7 feet. Find the length of VT to the nearest tenth of a foot. People who are fit can meet daily physical challenges with energy to spare.-True-False Mark wants to paint a mural He has 1 1/8 gallons of yellow and 7/8 of blue. Mark plans to use 3/4 gallon of each paint color. How many gallons of paint will he have left over after painting the mural? Pls help!!!! Pic attached Can u tell me how to do step by step using pemdas please Which of the following modern holidays is a mixture between an ancient Celtic festival and Christian celebration?ChristmasHalloweenNew Years DaySt. Patricks Day If research could show that the tendency to commit a crime is inherited, what should be done with the young children of violence-prone criminals What similarities do you think existed between the ancient civilizations of Mesoamerica and South America and those of Africa and Asia? Check all that apply.They farmed crops for food.They built temples and tombs.They lived near rivers or other waterways.They made art, tools, weapons, and other goods.They raised animals for food, milk, and other need These are the reactant in a chemical equation: 6 CO2 + 6 H2O --> C6H12O6 + 6 O2 Siobhan makes jewelry to sell online and wants tocharge prices comparable to other similar listings.What is Siobhan's hourly wage if it takes her2.5 hours to make each piece of jewelry? Enter youranswer as a whole number, such as: 14.Cost of supplies$6.50Seller fees12% of selling priceAverage price of similar listings$80Sales tax8% of selling price2.56,50 1. Exercise 18, section 3.1. Let D be the set of all students at your school and let M(s) be "s is a math major", let C(s) be "s is a computer science major" and let E(s) be "s is an engineering major". Express each of the following statements using quantifiers, variables and the predicates M(s), C(s), E(s). a. Every computer science student is an engineering student b. No computer science students are engineering students c. Some computer science students are also math majors. PLEASE HELP ASAP!!!Which sentence uses commas correctly?The boy had lived in Alaska New York, Tennessee and, California.Her sister always let her play on the swings and slide, basketball, court, and sandbox.At the market, I purchased green apples, red plums, and yellow bananas.I wondered if I should read my mystery book, graphic, novel or poetry, book. 66 POINTS FOR THIS QUESTION!!! There are 48 students in a school play. The ratio of boys to girls is 5:7. How many more girls than boys are in the play? 2.Write an equation of a line with the given slope and y-intercept.m = 1, b = 4A. y = 1x + 4B. y = 4x + 1C. y = x + 4D. y = x 4 what kind of rock can you find in the Hudson Highlands ?? What is the square root of -16 If you make a batch of cookies and your sister eats 10% of them, what percent remains? PLEASE HELP!!!Early Christianity developed in which communities?A GreekB Jewish Buddhist A function of ____ is to transport ? Which statement best explains why the city of Babylon was consider a cultar centaur of the ancient world