Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

just need the psuedocode thank you CIT 120-Computational Thinking Chapter 5 Programming Problem 3 Write a program, which will help users calculate their car's miles

image text in transcribed

just need the psuedocode thank you

CIT 120-Computational Thinking Chapter 5 Programming Problem 3 Write a program, which will help users calculate their car's miles per gallon. Your program should allow a user to enter the number of miles driven and the number of gallons of gas used. The output should be the miles per gallon Use a Do . While (post-test) loop to allow users to enter as many sets of data as desired. In your solution, be sure to include the following.. A welcome message to the user Comments in the pseudocode Data validation loops for each number entered by the user (see YouTube video regarding data validation loops). These loops should continue as long as the input is not valid. Ensure that your program cannot have a "division by zero" error . Turn in the pseudocode and flowchart for this problem (Visio file) AND the QBasic program (.bas file). Sample input/output .. is progran calculates the MPG for your vehicle Enter the miles driven (must be greater than 0): 234.5 nter the gallons used (nust be greater than 0 11.6 iles per gallon 20.21552 mt to calculate again? CYN nter the miles driven (must be greater than 0)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions