Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE : You can only use these topics [String, list, dictionary, tuple, functions, OOP, method overloading, constructor overloading, operator overloading, encapsulation, static, class variable, class

NOTE : You can only use these topics [String, list, dictionary, tuple, functions, OOP, method overloading, constructor overloading, operator overloading, encapsulation, static, class variable, class method, static method, inheritance, variable and method overriding]

Python code : Question: Your inputs should be the number of eye drop medicines, usual waking up time of the patient in a day in 24-hour format, usual bedtime in 24-hour format, name of the eye drops and how many times you should apply it in a day. Assume the number inputs to be always in integers. Your output should print the times at which the eye drops are to be administered exactly as shown in the sample output. The times should be in a 24-hour format. See the sample input and output below to understand how to take your inputs and how to print your output. Sample Input 1: How many drops? 2 Waking Up time? 8 Bedtime? 23 Eye Drop name: Neopred How many times in a day? 6 Eye Drop name: Besibac How many times in a day? 3 Sample Output 1: ***************************************** The Eye drop times are given below: Neopred : 8:00, 10:00, 12:00, 14:00, 16:00, 18:00 ============================== Besibac : 8:00, 13:00, 18:00 ============================== Sample Input 2: How many drops? 2 Waking Up time? 8 Bedtime? 23 Eye Drop name: Freshfil How many times in a day? 4 Eye Drop name: NCL How many times in a day? 6 Sample Output 2: ***************************************** The Eye drop times are given below: Freshfil : 8:00, 11:00, 14:00, 17:00 ============================== NCL : 8:00, 10:00, 12:00, 14:00, 16:00, 18:00 ==============================

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

=+1. What are the five general goals in delivering bad news? [LO-1]

Answered: 1 week ago

Question

=+saving and the supply of loanable funds today?

Answered: 1 week ago