Select Page

Are you looking for Reliable Online Writing Services? We are Here For you. Our Professional Tutors Can Handle Any Kind of Assignment. Don’t Use Plagiarized Sources. Get Your Perfect Paper Today! Click Here To Order.

PYTHON – USING LINKED LISTBob has a drinking problem … not that kind of a problem. Bob drinks Gatorade, but he likes to have several glasses of Gatorade in front of him. He also has developed the problem that he must drink from the fullest glass, and must drink ¼ of the content of the glass. He always drinks a whole number of ounces of Gatorade. If ¼ of the glass is not a whole number of ounces, he will drink a little more to make it a whole number of ounces.Bob’s wife prepares the glasses for him to drink from when he gets home from his tennis tournament. She puts Gatorade in each of the glasses, and lines them up. Each glasses has a whole number of ounces. If there is more than one with the same amount, he chooses the one that is nearest to him. (Glass 1 is nearest.) He continues to drink until he has satisfied his thirst.He might drink more than his thirst level, but will not take another drink after he has had enough.There will always be enough Gatorade to satisfy his thirst. The problem is to find how many times he takes a drink of Gatorade to satisfy his thirst. Prompt for and accept as input:The number of glasses on the tableThe number of ounces of Gatorade in each glassBob’s thirst level (i.e., the minimum number of ounces required to satisfy his thirst)You do not need to edit this input. Only valid positive integer values will be entered.Read the numbers from the standard input device.For each drink, display the number of ounces in that drink and the glass. Also display the remaining ounces in each glass. When Bob has satisfied his thirst, display the total amount he drank and the total number of drinks. See the sample output below. Display the output as shown in the Test Data below.Each set of test data can be tested by rerunning the application. Test Data Input How many glasses are there?: 3 How many oz in glass 1: 8 How many oz in glass 2: 13 Howmany oz in glass 3: 22 How thirsty is Bob?: 24 How many glasses are there?: 2 How many oz in glass 1: 17 Howmany oz in glass 2: 19 How thirsty is Bob?: 15 Output Drink 1: 6 oz from glass 3 8 13 16 Drink 2: 4 o Computer Science Engineering & Technology Python Programming CS 101