Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The question is: 1. The Barking Lot is a dog day care center.Design thepseudocodefor a program that accepts data for an ID number of the

The question is:

1. The Barking Lot is a dog day care center.Design thepseudocodefor a program that accepts data for an ID number of the dog's owner, and the name, breed, age, and weight of the dog.Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs under 15 points, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, and $125 for dogs over 80 pounds.

My current code:

start

Declarations

num idNum

String name

String breed

num age

num weight

num bill

housekeeping()

if weight < 15

bill = 55

print()

else if weight >= 15 && weight <= 30

bill = 75

print()

else if weight >=31 && weight <= 80

bill = 105

print()

else

bill = 125

print()

stop

housekeeping()

output "Dog Info"

input idNum, name, breed, age, weight

return

print()

output idNum, ". ", name, ". ", breed, ". ", age, ". ", weight, ". "

return

I've tried a few variants of this code and no matter what I do I get a syntax error on the num idNum

I don't exactly know why or what I can substitute this with. Any help is greatly appreciated.

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_2

Step: 3

blur-text-image_3

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

Explain the factors influencing consumer behaviour.

Answered: 1 week ago