Update our Doggy Day Care logic: pseudocode and Flowchart, to now continue to process customer bills until a sentinel loop control variable (pgs. 21, 171) is entered for: input ID number of the dog's owner = 0. Once the user enters 0 for the dog owners ID the program exits the loop and ends the processing of customer bills. write a Phyton program for a Doggy Daycare facility that needs a program to print a customer's bill. The program accepts input data for an ID number of the dog's owner, dog name, dog breed, dog age and dog weight. Display a bill containing all the input data items as well as the weekly day care fee, which is $55.00/wk for dogs under 15 pounds, $75.00 for dogs from 15 pounds to 30 pounds inclusive, $105.00 for dogs from 31 pounds to 80 pounds inclusive, and $125.00 for dogs over 80lbs.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

based on this information 

ep 1

Required:

Update our Doggy Day Care logic: pseudocode and Flowchart, to now continue to process customer bills until a sentinel loop control variable (pgs. 21, 171) is entered for: input ID number of the dog's owner = 0. Once the user enters 0 for the dog owners ID the program exits the loop and ends the processing of customer bills.

write a Phyton program for a Doggy Daycare facility that needs a program to print a customer's bill. The program accepts input data for an ID number of the dog's owner, dog name, dog breed, dog age and dog weight. Display a bill containing all the input data items as well as the weekly day care fee, which is $55.00/wk for dogs under 15 pounds, $75.00 for dogs from 15 pounds to 30 pounds inclusive, $105.00 for dogs from 31 pounds to 80 pounds inclusive, and $125.00 for dogs over 80lbs.

Step 2

Code:

 

while True:
ID = int(input("\nEnter ID: "))
if ID == 0:
break
name = input("Enter Name: ")
breed = input("Enter Breed: ")
age = float(input("Enter Age: "))
weight = float(input("Enter Weight: "))

print("\n__________________ Bill __________________")
print(f'ID\t\t\t:\t{ID}')
print(f'Name\t\t:\t{name}')
print(f'Breed\t\t:\t{breed}')
print(f'Age\t\t\t:\t{age}')
print(f'Weight\t\t:\t{weight}')
if weight<15:
print(f"Daycare Fee\t:\t$55")
elif 15<=weight<=30:
print(f"Daycare Fee\t:\t$75")
elif 30<weight<=80:
print(f"Daycare Fee\t:\t$105")
elif weight>80:
print(f"Daycare Fee\t:\t$125")

Submit Modularized Doggy Day Care FlowChart

submit DoggyDayCareMod.py

pseudocode:

define module calculate_fee(w): takes in the weight and returns the fee amount,
contains our selection structure to calculate fee from dog weight
def module end_of_job(): prints out "Doggy Day Care program has ended"
define variables for all the doggy information
get person_id
while person_id doesn't equal 0
input rest of doggy information
call calculate_fee(weight) pass in the weight
print out Doggy informtion along with the fee that was calculated
call end_of_job() that prints out program has ended

 
 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Structure chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education