Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSW8 Leaming Goals In this lob we wil - Uae if ese staterenena to find the highat score amongit a group of 3 values -

image text in transcribed
image text in transcribed
image text in transcribed
CSW8 Leaming Goals In this lob we wil - Uae if ese staterenena to find the highat score amongit a group of 3 values - Use tuples to retrieve the name that corresponds to the highest score - Use stering concatenation to assemble the names based on the score values. Main ldea The problem gresented in this lab is an actiee researsh area in Compster Sewee colled difentital crumacy and secure (mukiparty? computabon in tivs lab, we wort be abie to use a differentialy pribate algorithm, so we wil assume that the users storde their dama secefy aomenhere and cannot see each other sabues. Thee frends finished the test and want to secetly compare thei teut scores. They do not want to know each others exact score but they do want to know who achieved the best resuts for this best Instructions In your mainprogram 1 Fpu the names and scores of exe theee friends one after another. (Check out bet example input below) 2. Vour program should store both rames and icores. Store the narres in the orter that they were input in one tuple and the beores an srother tupie. 3. Cai the cospare scorest ) function and print the returned ramdig of the studeri(s) with the highest ocore(s) Wibe the coupare_scores(nanes, scores) function that eupects two parpeterg: - a tuple wer the narnes - a tugle with the scores corresponding to the respective name The function compares the soores and cetures one of mone names (from the input tuple) as a string 1. If thewe is one bent score reture the name of the friend that achiertd that scoce 2 If there are two friends with equal highest sooress return a string with both names. sensmated by space in the erder of input 2. If al thee frends achieved equal scotes-retam a string wath at stire names, separssed by space in the order of input Examples inout Arin 16 Maris cinay Outbut tentan Input Oulput Whin ciany Ifisat Hotes - Hec elif andior neited 1f. - Be careful with the indentation 0 e. the spaoes before the blocks of code), especially in nessed af

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago