Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS115 Fxam1 Page 8 of 10 Problen 3 Write a complete program (30 points) Foe this peublem, you must write a complete program. This inclodes

image text in transcribed
CS115 Fxam1 Page 8 of 10 Problen 3 Write a complete program (30 points) Foe this peublem, you must write a complete program. This inclodes writing a docstring logic in def sain), a call to sain), any necessary libeary imports, etc Read the instructions carefully before yoa start coding! If you get stuck, try to maxiine your partial credit. Your program is a diary that gathers data about dogs boarded at a veterinarias. The peogranm should do the following . Prompt the user to enter the total number ol dogs at the vet. For each dog Proespt for the same of the dog, the weight of the dog (in pounds), the amount of kibble they ale (in poutds) and the amount of water they drank (in galloas) matching the example proenpls below czractlg If the amout of water the dog drank was loss thea 0.00(wbere w is their weight), then output "Watch for dedydration e After the user has entered all of their data Print the average water each dog consumed Print the mumber of dogs that should be watched for dehydration Print the name of the dog who ate the most and how moch kibble they ate. Your program should match the sample output below,ectly User input is underlines Dog Diet Diary Ester number of dogu: 2 Dog 1: Raffles Weight 1ba): Kibble (1bs): 12 Vater (gals): 9.55 Dog 2: Sunay Veight (1bs): 653 Kibble (ba): 1.1 ater (gala): 9.2 -> Watch for dehydration Sunmary Average vater per dog: 0.375 gals Dogs to be vatched:1 Ruffles ate the nost (1.2 bs of kibble) Feb. 22, 2018 925 P /19/208

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Draw this chemical reaction RCO2H Reacts with base (NaOH)

Answered: 1 week ago