Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions