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

Free

80.2K

Verified Solution

Question

Programming

can someone please check the code below? Thank you

Hunterville College Tuition

Design a program for HuntervilleCollege. The current tuition is $20,000 per year. Allow the user toenter the rate the tuition increases each year. Display the tuitioneach year for the next 10 years.

For the programming problem, create the pseudocode and enter itbelow.

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

Answer & Explanation Solved by verified expert
3.7 Ratings (616 Votes)

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


Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students