What would be displayed as the daily dosage of medicine to be administered to a dog weighing 4 kilograms in the following pseudoco 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 medicine = number500 * 0.6 else 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 Select one: O a. The dog must receive a daily dose of 9.0 ml O b. The dog must receive a daily dose of 7.2 ml c. The weight must be numeric d. The dog must receive a daily dose of 14.4 ml
What would be displayed as the daily dosage of medicine to be administered to a dog weighing 4 kilograms in the following pseudoco 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 medicine = number500 * 0.6 else 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 Select one: O a. The dog must receive a daily dose of 9.0 ml O b. The dog must receive a daily dose of 7.2 ml c. The weight must be numeric d. The dog must receive a daily dose of 14.4 ml
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 5PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
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.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT