Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What would be displayed as the daily dosage of medicine to be administered to a dog weighing 2 5 . 5 kilograms in the following

What would be displayed as the daily dosage of medicine to be administered to a dog weighing 25.5 kilograms in the following pseudocode?
if dogWeight numeric then
number500= dogWeight *2
if number500 MOD 1=0 then
if dogWeight <5 then
medicine = number500*1
else
if dogWeight <=8 then
medicine = number500*0.9
else
if dogWeight <=12 then
medicine = number500*0.75
else
medicine = number500*0.6
endif
endif
endif
display The dog must receive a daily dose of , medicine, ml.
else
display The weight must be in kg and to the nearest 500g, e.g.3,3.5 or 4
endif
else
display The weight must be numeric
endif
a.
The weight must be numeric
b.
The dog must receive a daily dose of 18 ml
c.
The dog must receive a daily dose of 30 ml
d.
The dog must receive a daily dose of 14 ml

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

highlight how to collect and record interview and diary based data;

Answered: 1 week ago

Question

clarify the relationship between research, theory and practice;

Answered: 1 week ago

Question

evaluate the quality of your data;

Answered: 1 week ago