Question: Programming Exercise 5 The tuition is $6,000 per semester and increases by 2% each year for the next 5 years. Design a Raptor program with
Programming Exercise 5
The tuition is $6,000 per semester and increases by 2% each year for the next 5 years. Design a Raptor program with a loop that displays the projected semester tuition amount for the next 5 years.
Added Specs:
- create your solution in Raptor
- you must not use any "global" variables -- all variables used in each module must be locally declared
- the starting tuition will be provided by the user
- the tuition will increase be provided by the user as an annual percentage, e.g., 2.5 would be a 2.5% annual percentage increase.
- the number of years to display will be provided by the user
- create modules to handle input, process, and output -- you must name them appropriately, e.g. input might be named getInput
- each module must do its respective task, and no other
- limit the output to 2 decimal places, google Set_Percision(2).
- string and numeric literals must be declared as constants in the appropriate modules or their private subcharts
- all local variables must be initialized with a default value
- perform calculations in the appropriate processing module and return necessary values through parameters
- perform output formatting in the appropriate processing module, and return string to be output as a parameter
- display the final formatted message in the appropriate output module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
