Question: Develop an algorithm for the following problem statement. Your solution should be a modularised pseudocode with appropriate comments and a hierarchy chart. You should provide

 Develop an algorithm for the following problem statement. Your solution should

Develop an algorithm for the following problem statement. Your solution should be a modularised pseudocode with appropriate comments and a hierarchy chart. You should provide appropriate error messages A dog day care centre asks you to designa program that accepts data for an ID number of a dog's owner, and the name, breed, age and weight of a dog. Display an invoice containing all the input data as well as the weekly day care fee, which is $51 for dogs weighing less than 7 kg; $84 for dogs from 7 up to (but not including) 14 kg, $102 from 14 up to (but not including) 36 kg; and $119 for dogs weighing 36 or more kg. If the weight entered is anything outside the range stipulated, your program displays an error message: Warning: the weight is not within the acceptable range. Then, it will continue to receive a new weight input. At the end of accepting a dog's data, it will print out an invoice on the screen, then ask the user if s/he wants to continue. If s/he enters 'y', your program will continue to accept the another dog's data. This program will end if anything other than 'y' is entered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!