'F' → Fullscreen
Open your 1-8-registration program for Task 1. Everything after that goes in a new program named 1-9-planner.
How to read the code blocks. Each task's code block shows your whole program, from line 1, as it should look when that task is finished.
You never start a new file and you never delete your work. The green lines marked with a + are the ones you add or change for that task — everything else is already in your file. Do not type the + sign.
This activity uses two programs. Each block is titled with the file it belongs to, so check the title before you type.
int.Parse around the Console.ReadLine call and run it.Console.Write("Grade level: ");int gradeLevel = int.Parse(Console.ReadLine());
Console.WriteLine($"Next year you'll be in grade {gradeLevel + 1}.");Console.Write("How many students signed up? ");int students = int.Parse(Console.ReadLine());
Console.Write("How many per bus? ");int perBus = int.Parse(Console.ReadLine());
int fullBuses = students / perBus;int leftOver = students % perBus;
Console.WriteLine();Console.WriteLine("=== FIELD TRIP PLAN ===");Console.WriteLine($"Students: {students}");Console.WriteLine($"Full buses: {fullBuses}");Console.WriteLine($"Left over: {leftOver}");double.Parse for that one.:F2 anywhere first. Type 18.4 for the average. Write down exactly what the three-fundraiser number looks like — all of it.:F2 to the average and the projection, and run it again. Write down what each one says now.Console.Write("How many students signed up? ");int students = int.Parse(Console.ReadLine());
Console.Write("How many per bus? ");int perBus = int.Parse(Console.ReadLine());
Console.Write("Bus fee? ");int busFee = int.Parse(Console.ReadLine());
Console.Write("Average raised per student? ");double average = double.Parse(Console.ReadLine());
int fullBuses = students / perBus;int leftOver = students % perBus;double threeFundraisers = average * 3;
Console.WriteLine();Console.WriteLine("=== FIELD TRIP PLAN ===");Console.WriteLine($"Students: {students}");Console.WriteLine($"Full buses: {fullBuses}");Console.WriteLine($"Left over: {leftOver}");Console.WriteLine($"Bus cost: {fullBuses * busFee}");Console.WriteLine($"Average: {average:F2} raised");Console.WriteLine($"Three fundraisers: {threeFundraisers:F2}");Five runs of your finished planner. Write down exactly what happens each time, copied from the screen.
seven instead of 7.3.5.47 with a space before and after it.3.5.Three of these stop the program and two do not. For each one that stops, write down the line number it names.
if, and that is session 12.Your finished planner should run like this.
How many students signed up? 47 [Enter]How many per bus? 6 [Enter]Bus fee? 25 [Enter]Average raised per student? 18.4 [Enter]
=== FIELD TRIP PLAN ===Students: 47Full buses: 7Left over: 5Bus cost: 175Average: 18.40 raisedThree fundraisers: 55.20double.Parse, and the rest use int.Parse.Answer the following questions before submitting your work.
int.Parse(Console.ReadLine()), in the order it happens. Name what each part hands to the next.3.5 for the number of students stopped the program, even though 3.5 is obviously a number. Explain why int.Parse refused it.Submit five things to the dropbox:
:F2, and as it printed after.