Write a new program and ask user some questions making sure to use the appropriate data type to store their answers.

Write a new program and ask user some questions making sure to use the appropriate data type to store their answers.
Start a new project and paste this into the Main method and then finish the coding. Make sure you are picking the correct data type for the 5 variables you have to create.

//A- how many miles do you live from school (must allow for decimal points, such as 4.3)
Console.WriteLine(“within 1/10 of a mile accuracy, how far do you live from BC?”);
//#1: Save the users reply in the correct data type.
// Using a placeholder in your string, write out the sentence:
// Your round-trip distance to school is 8.6 miles. (assuming they entered 4.3)
Console.WriteLine();
//B-how many eggs in a dozen
Console.WriteLine(“how many eggs are in a dozen?”);
//#2: Save the users reply in the correct data type.
// Using a placeholder in your string, write out the sentence:
// There are 144 eggs in 12 dozen
Console.WriteLine();
//C- what is your full name?
Console.WriteLine(“What is your first name?”);
//#3: Save the users reply in the correct data type.
Console.WriteLine(“What is your last name?”);
//#4: Save the users reply in the correct data type.
// Using concatenation for your string, write out the sentence:
// Your full name is Kurt Friedrich (or whatever names you entered)
Console.WriteLine();
//D – If you won the lottery, how much money would you like to win?
Console.WriteLine(“If you won the lottery, how much money would you want to win?”);
//#5: Save the users reply in the correct data type.
// Using a placeholder in your string, write out the sentence:
// That would be 250000 each year for 20 years. (assuming they entered 5000000)
Console.WriteLine();

Last Completed Projects

topic title academic level Writer delivered