Algorithm. Starting the program

Added on - 26 Nov 2019

  • 6

    pages

  • 189

    words

  • 47

    views

  • 0

    downloads

Showing pages 3 of 6
Algorithm1.Starting the program, print the welcome message as below2.Display the menu as3.Read the menu choice4.Check if the menu choice is 1, read the house detailsIf the cheapest house price is greater than chosen house price, display the error message
If the cheapest house price is greater than median house price, display the error message5.Check if the menu choice is 2, check if the house details are entered or notIf house details are not entered, display the error messageAfter enter the house details, read the avocado on toast price
6.Check if the menu choice is 3, print the deposit saving house details and then read the numberof avocado on toast purchase per week (which should be greater than zero) and print the savingamount reaching date7.Check if the menu choice is 4, set loop continue to false8.Check if the menu choice is other than 1 to 4, display an error message9.End of the loop10.Display the exit message11.End of the program