Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve this question by using python Two friends, Dilara and Melisa, make a deal in order to motivate each other for final exams. They decided

solve this question by using python
image text in transcribed
Two friends, Dilara and Melisa, make a deal in order to motivate each other for final exams. They decided to study six hours each day for seven days. After the finals, they will take a vacation and expenses of the vacation will be paid by one of them who studies less than other. The following table shows who studies how many hours. If one study less than six hours, they call it negative day. If one study more than six hours, they call it positive day. For example, 1st day is a negative day for each other. They will calculate their scores using the following scores: - They will lose 1 point for every less 10 minutes than 6 hours. (For example; Dilara studied 5.7 hours the first day. Therefore she will lose (65.70)60/10=1.8 points) - They will lose 20 points for each negative day. - They will win 10 points for each positive day. Write a computer program to calculate the scores and determine the winner. For this purpose; Firstly, construct two one-dimensional lists for studied hours of both. Then convert them new two lists in minutes. (Determine difference from 6 hours for each day. For example, 5 hours 60 minutes) Define a function to calculate the scores of each student. Compare the scores and determine the winner

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_2

Step: 3

blur-text-image_3

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago