Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using pseudocode taught from the Gaddis textbook, Design a program that asks the user to enter the amount that he or she has budgeted for

Using pseudocode taught from the Gaddis textbook, Design a program that asks the user to enter the amount that he or she has budgeted for a month, and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget

A. This program needs a minimum of four modules

B. The main module should declare two local variables and call the three other modules

C. The second module should ask the user to enter the amount budgeted for the month

D. The third module should ask the user to type in all of the prices of all the items purchased that month and ask the user to type in a zero when they are done. It should use a loop, which stops when the user enters a zero for the value amount. The loop should have an accumulator formula that reports the grand total of prices (meaning the total amount spent). It should declare a local varible for the amount spent monthly

E. The fourth module should use an is/else/if statement, which compares the total amount spent with the budgeted amount. If spent amount and budgeted amount are equal, it should state "Perfect planning," if the amount spent is more than the amount budgeted, it should state "poor planning." If amount spent is less than the amount budgeted, it should state "great job"

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

Briefly explain the steps in Value Engineering. AppendixLO1

Answered: 1 week ago

Question

Decision Making in Groups Leadership in Meetings

Answered: 1 week ago