Question

In: Computer Science

can someone please check the code below? Thank you Hunterville College Tuition Design a program for...

can someone please check the code below? Thank you

Hunterville College Tuition

Design a program for Hunterville College. The current tuition is $20,000 per year. Allow the user to enter the rate the tuition increases each year. Display the tuition each year for the next 10 years.

For the programming problem, create the pseudocode and enter it below.

Enter pseudocode here

start

    Declarations

            num tuition

            num year            

            num TOTAL_YEARS = 10

            num INCREASE_RATE

            num CURR_TUTION = 20000

housekeeping()

    detailLoop()

      finish()

stop

housekeeping( )

            output “Enter rate the tuition will increase each year>”, INCREASE_RATE

           

return

detailLoop()

    while year <= TOTAL_YEARS

   tuition = tuition * (1 + INCREASE_RATE)

            output “In”, TOTAL_YEARS, “year(s) the tuition will be”, tuition

            year = year + 1

endwhile

return

finish()

    output “End of program”

return

Solutions

Expert Solution

I have highlighted the changes you need to make

Your code is correct but there are slight calculation error.

start

    Declarations

            num tuition

            num year   

            num TOTAL_YEARS = 10

            num INCREASE_RATE

            num CURR_TUTION = 20000

housekeeping()

    detailLoop()

      finish()

stop

housekeeping( )

            output “Enter rate the tuition will increase each year>”, INCREASE_RATE

           

return

detailLoop()

    while year <= TOTAL_YEARS

   tuition = CURR_TUTION * ( 1 + INCREASE_RATE )

            output “In”, year , “year(s) the tuition will be”, tuition

            year = year + 1

  CURR_TUTION = tution

endwhile

return

finish()

    output “End of program”

return


Related Solutions

can someone please check the code below? Thank you Hunterville College Tuition Design a program for...
can someone please check the code below? Thank you Hunterville College Tuition Design a program for Hunterville College. The current tuition is $20,000 per year. Allow the user to enter the rate the tuition increases each year. Display the tuition each year for the next 10 years. For the programming problem, create the pseudocode and enter it below. Enter pseudocode here start     Declarations             num tuition             num year                         num TOTAL_YEARS = 10             num INCREASE_RATE...
can someone please check this code? – Enter Quantity of Numbers Design a program that allows...
can someone please check this code? – Enter Quantity of Numbers Design a program that allows a user to enter any quantity of numbers until a negative number is entered. Then display the highest number and the lowest number. For the programming problem, create the pseudocode and enter it below. Enter pseudocode here start     Declarations           num number           num high             num low              housekeeping()     while number >=0 detailLoop()      endwhile      finish() stop housekeeping( )           output...
Can someone please provide a feedback on the discussion post below. Thank you. It is a...
Can someone please provide a feedback on the discussion post below. Thank you. It is a marketing management class. Amazon.com is one of the fastest growing companies to date. Amazon utilizes Facebook, Twitter, YouTube, and a company blog in order to reach out to their consumers. What I have noticed on their YouTube channel is that they have a variety of different kinds of videos that all relate to the average consumer. In addition, Amazon is able to use celebrity...
can someone code this problem please? Introduction Students will create a C++ program that simulates a...
can someone code this problem please? Introduction Students will create a C++ program that simulates a Pokemon battle mainly with the usage of a while loop, classes, structs, functions, pass by reference and arrays. Students will be expected to create the player’s pokemon and enemy pokemon using object-oriented programming (OOP). Scenario You’ve been assigned the role of creating a Pokemon fight simulator between a player’s Pikachu and the enemy CPU’s Mewtwo. You need to create a simple Pokemon battle simulation...
Can someone please explain these problems, I don't understand, please and thank you!! The patients in...
Can someone please explain these problems, I don't understand, please and thank you!! The patients in the Digoxin trial dataset can be considered a population of people suffering from heart failure. These patients were examined before the drug trial began, and their heart rate and blood pressure were recorded. The mean and standard deviation of the variables are listed below. Each variable follows a normal distribution. Heart rate (beats/min)                          μ = 78.8            σ = 12.66 Systolic blood pressure (mmHg)             μ...
Python programming: can someone please fix my code to get it to work correctly? The program...
Python programming: can someone please fix my code to get it to work correctly? The program should print "car already started" if you try to start the car twice. And, should print "Car is already stopped" if you try to stop the car twice. Please add comments to explain why my code isn't working. Thanks! # Program goals: # To simulate a car game. Focus is to build the engine for this game. # When we run the program, it...
Can someone show me how to break this down by steps please and thank you. You...
Can someone show me how to break this down by steps please and thank you. You sell short 200 shares of a stock at $95 on a 60% initial margin requirement with a 30% maintenance margin. In 3 months, the stock is $79. What is your margin at this time? When would a margin call occur? If you cover your position when the stock is $79, what would be your HPR? Assume you did the same trade as before but...
Can someone please answer this question? thank you You think that, in addition to cannabis use,...
Can someone please answer this question? thank you You think that, in addition to cannabis use, road conditions may also affect driving abilities and contribute to an increased risk of road accidents. You suggest that further testing be made using 5 different road-condition scenarios in the virtual driving simulator. Your proposal is accepted and a new group of 60 individuals are solicited to participate in the study and are randomly assigned to one of the various treatment groups. [6 marks]...
Can someone check to see if anything needs to be changed from this code? The instructions...
Can someone check to see if anything needs to be changed from this code? The instructions are confusing and I'm not sure if this fulfills everything because my compiler won't run it properly. DIRECTIONS: In this project we will develop classes to implement a Day Planner program. Be sure to develop the code in a step by step manner, finish phase 1 before moving on to phase 2. Phase 1 The class Appointment is essentially a record; an object built...
Can you please check my answers and if I am wrong correct me. Thank you! A....
Can you please check my answers and if I am wrong correct me. Thank you! A. In today's interconnected world, many central banks communicate regularly and frequently with the public about the state of the economy, the economic outlook, and the likely future course of monetary policy. Communication about the likely future course of monetary policy is known as "forward guidance.". If the central bank increases the reserve ratio, as the market has perfectly expected, which of the following will...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT