Write a Python program for each of the problems in this lab. Please use PyCharm to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Python program for each of the problems in this lab. Please use PyCharm to type and test your programs. Submit the Python files to Blackboard for credit. In this lab, you should submit 4 Python files, one for each problem. PROBLEM 1 A teacher wants a program to give extra points to students who fail a test. Write a Python program to do the following: (a) Ask the user to enter 5 test scores. Store the scores in a list. Display the list. (b) Copy all 5 test scores to another list. Use a loop to examine each test score in the new list. If the score is below 60, add 10 extra points to the score. Display the list. (c) Compare the old score and new score of each student. If the old score and new score are different, display the two scores. The following is an example. Enter a test score: 45 Enter a test score: 77 Enter a test score: 88 Enter a test score: 52 Enter a test score: 90 All scores: [45.0, 77.0, 88.0, 52.0, 90.0] Students who scored below 60 get 10 extra points. All scores: [55.0, 77.0, 88.0, 62.0, 90.0] Students whose scores have changed: Old score: 45.0 New score: 55.0 Old score: 52.0 New score: 62.0 Write a Python program for each of the problems in this lab. Please use PyCharm to type and test your programs. Submit the Python files to Blackboard for credit. In this lab, you should submit 4 Python files, one for each problem. PROBLEM 1 A teacher wants a program to give extra points to students who fail a test. Write a Python program to do the following: (a) Ask the user to enter 5 test scores. Store the scores in a list. Display the list. (b) Copy all 5 test scores to another list. Use a loop to examine each test score in the new list. If the score is below 60, add 10 extra points to the score. Display the list. (c) Compare the old score and new score of each student. If the old score and new score are different, display the two scores. The following is an example. Enter a test score: 45 Enter a test score: 77 Enter a test score: 88 Enter a test score: 52 Enter a test score: 90 All scores: [45.0, 77.0, 88.0, 52.0, 90.0] Students who scored below 60 get 10 extra points. All scores: [55.0, 77.0, 88.0, 62.0, 90.0] Students whose scores have changed: Old score: 45.0 New score: 55.0 Old score: 52.0 New score: 62.0
Expert Answer:
Related Book For
Auditing a risk based approach to conducting a quality audit
ISBN: 978-1133939153
9th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Create the GUI in Fig. 14.2 (you do not have to provide functionality). Figure 14.2 Printer GUI Ok Printer. Bugalicious X9000 O Image O Selection Cancel Text O Current page Code ComboBox Setup....
-
Molson Coors Brewing Company has a year end of December 31. Access the company's 2011 annual report from the company website (www.molsoncoors.com). Instructions (a) What types of per share...
-
Display the order IDs for customers who have not made any payment, yet, on that order. Use the set command UNION, INTERSECT, or MINUS in your query.
-
Africa offers a fast growing and exciting mobile phone market, with more than 50% growth per year since 2002. More than 28% of African consumers own mobile phones; a larger market than North America....
-
Vats Pizza is looking for a single central location to make pizza for delivery only. This college town is arranged on a grid with arterial streets, as shown in Figure. The main campus (A) located at...
-
What is the interest earned on $350 invested 4 years at a 5% simple interest?If I put $1500 into my savings account and earned $180 of interest at 4% simple interest, how long was my money in the...
-
An IVP ordinary differential equation is called well-posed if a small change in the data of the problem leads to only a small change in the solution. Select one: True False
-
Spend some time studying Nila, the subject of the You Be the VC 8.1 feature. Given the nature of its business, what financial management issues should Nila be most attentive to and why?
-
The You Be the VC 1.1 feature focuses on Windspire, a company thats making wind turbines to generate electricity that can be used by businesses and home owners. If the founder of Windspire asked you...
-
Make a list of 10 prominent entrepreneurs who post frequently on Twitter. Also, make a list of five prominent entrepreneurshiprelated blogs. Is it a good use of a student entrepreneurs time to follow...
-
a. Complete the motion diagram by adding acceleration vectors. b. Write a physics problem for which this is the correct motion diagram. Be imaginative! Dont forget to include enough information to...
-
Moonbacks Inc. grants Howard Schmidt 10,000 NSOs on January 1, Year 1 (the "grant" date). Each NSO grants the holder the right to buy 1 share of Moonbacks stock for $100 over the next 10 years. The...
-
Earth may be considered a sphere with a diameter of 8000 mi and an average specific gravity of 5.5. What is its mass? What is its weight? Explain your answer.
-
As long as we can't lose any money, we have a risk-free investment." Discuss this comment. Q2: Both investing and gambling can be defined as "undertaking risk in order to earn a profit." Explain how...
-
Read the facts of the case in Problem 2-51 to become familiar with the fraud involving Koss Corporation. From the Company's October 7, 2009, proxy statement (Def 14A filing with the SEC), we know the...
-
What is the directional relationship between the risks of material misstatement (inherent and control risk) and both audit risk and detection risk? In other words, if the risks of material...
-
Locate and read the article listed below and answer the following questions. Acito, A. A., J. J. Burks, and W. B. Johnson. 2009. Materiality Decisions and the Correction of Accounting Errors. The...
-
Discuss the importance of validity and research design. Next, choose one type of validity (internal, external, construct, or statistical conclusion) and discuss its relevance to experimental, quasi...
-
Explain from a technical viewpoint why it is important to distinguish a method, research, approach, and design. Next, briefly discuss how understanding each term individually in addition to how these...
-
Define the two major types of sampling strategies .
Study smarter with the SolutionInn App