Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need Flowgorithm looping help. I have 2 Problems and I'm clueless. Problem 1 The third grade teacher at Sherlock and watson elementary school would

I need Flowgorithm looping help. I have 2 Problems and I'm clueless.

Problem 1 The third grade teacher at Sherlock and watson elementary school would like an application designed that will sum all of the numbers from 1 to the value entered. The output of the program should be as follows: "Sum of Numbers" "Enter the number to sum" 10 The sum of numbers from 1 to 10. 1+0=1 2+1=3 3+3=6 4+6=10 5+10=15 6+15=21 7+21+28 8+28=36 9+36=45 10+45=55 Next, please edit the number entered to be a number between 1 and a max value of 100, if the user enters a value that doesn't meet the validation criteria display an error message. "Please enter a number between 1 and 100" and re-prompt for the number.

Problem 2

Drive-Rite insurance would like a distance calculator program designed. Use the formula Distance = Speed * Time Prompt the user for the speed of the vehicle in miles per-hour. "Please enter the speed driven in mph" Prompt the user for the amount of time in hours that they traveled in the vehicle. "Please enter the number of hours (whole hours only) for the trip" The output for this program should be as follows: Drive-Rate Insurance Distance Calculator Vehicle Speed: 40 MPH Hour Traveled: 7 hours Hour Distance Traveled 1 40 2 80 3 120 4 160 5 200 6 240 7 280 Total distance: 280 miles Now lets add some validation: Edit the users entry for speed which must be between 20 mph and 80 mph. If the user enters a value that doesn't meet the validation criteria then display an error message. "Please enter a speed between 20mph and 80mph" and rep-prompt for the value. Edit the user's entry for the time which must be greater than 0. If the users entry does not meet the validation criteria display an error message. "Please enter a time that is greater than 0" and re-prompt for the time.

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

List in order the levels of measurement. Describe each level.

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago