Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp8
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("\n=====================");
- Console.WriteLine("\nWelcome to the Theater-Ticket Pricer 5000!");
- Console.WriteLine("\n=====================");
- double PriceOfTickets, NumberOfStudents, TotalEarnings;
- Console.Write("\nWhat's the Ticket Price per Student?: ");
- PriceOfTickets = double.Parse(Console.ReadLine());
- Console.Write("\nWhat's the Number of Students that will be going to the Theater?: ");
- NumberOfStudents = double.Parse(Console.ReadLine());
- Console.WriteLine("\n=====================");
- Console.WriteLine("\nCalculating...");
- TotalEarnings = (PriceOfTickets * NumberOfStudents);
- Console.WriteLine("\nThe Total Earnings for the Theater Show were: {0:F2} $", TotalEarnings);
- Console.WriteLine("\n=====================");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement