Question
In C# Design (pseudocode) and implement (source code) a program (name it DrivingCost) to compute the cost of a road trip. The program prompts the
In C# Design (pseudocode) and implement (source code) a program (name it DrivingCost) to compute the cost of a road trip. The program prompts the user to enter the distance to be traveled, the car fuel efficiency (mile per gallon), and the fuel cost per gallon. The program computes and displays the trip cost. Document your code and properly label the input prompts and the outputs as shown below.
Sample run 1:
Distance traveled (miles): 100
Miles per gallon (miles): 20
Price per gallon (dollars): 2.0
Trip cost (dollars): 10.00
Sample run 2:
Distance traveled (miles): 500
Miles per gallon (miles): 35
Price per gallon (dollars): 2.50
Trip cost (dollars): 35.71
When creating the pseudocode can you follow these guidelines Use upper case for all reserved words. All statements inside loops condition statement are to be indented,Variables are used to store data. To assign a value to a variable use ,A single line of instructions READ the next grade PRINT 'Hello!',
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started