Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with reating flowgorithm, to show the loop continue. I created Flowgorithm, the loop does not continue. Flowgorithm, not flowchart. Thank you. I

image text in transcribed

image text in transcribed

I need help with reating flowgorithm, to show the loop continue. I created Flowgorithm, the loop does not continue. Flowgorithm, not flowchart. Thank you.

I have pseudocode as well.

"Design a program that asks the user to enter the amount that he or she has budgeted for amonth.A loop should then prompt the user to enter each of his or her expenses for the month,and keep a running total.When the loop Fnishes, the program should display the amount thatthe user is over or under budget."

Ch5, Program 3

// Variables

Declare Real total=0

Declare Real price

Declare Integer budget

Declare String keepGoing

Read budget of the month

//Asks user to enter budget of the month

Display Enter budget of the mont.

Input budget

Inside Do-While loop, read price of every expense of the month and calculates he total expenditure of month This loop executes until keepgoing has value other than y.

//Calculates the expenses of the month

Do

//Asks user to expenses of the month

Display Enter price

Input price

// Calculates the total expense

Set total = total+ price

// Do it gain?

Display Do you want to add another expense?

Input keepGoing

While keepGoing = y

//Display the total amount

Display Total amount is, total

If checks whether expenditure is under the budget or over the budget with the help of total and budget value.

//Checks whether expenses in under the budget or not

If total

Display Expense are under the budget.

Else

Display Expenses are over the budget.

End If

Main Real total Real price nteger budget String keepGoing total 0 Output Bnter budget of the mon nputbudget output Enter price nput price

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

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions