In this assignment, you are to write a Python program that (1) continuously asks the user...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this assignment, you are to write a Python program that (1) continuously asks the user to enter an integer score until a 'q' is entered; (2) computes the average score; (3) computes a letter grade based on the average score, and (4) prints the number of scores entered, the average score and the letter grade. Note the letter grade is determined as: (1) If the average score is greater than or equal to 90, the letter grade is A; (2) If the average score is greater than or equal to 80 but less than 90, the letter grade is B; (3) If the average score is greater than or equal to 70 but less than 80, the letter grade is C; (4) If the average score is greater than or equal to 60 but less than 70, the letter grade is D; (5) If the average score is less than 60, the letter grade is F.> For example, if the scores entered are: 100 80 30 q Your program should report something like: The number of scores entered is 3, the average is 70.0, and the letter grade is C. Please submit your .py file in Canvas. In this assignment, you are to write a Python program that (1) continuously asks the user to enter an integer score until a 'q' is entered; (2) computes the average score; (3) computes a letter grade based on the average score, and (4) prints the number of scores entered, the average score and the letter grade. Note the letter grade is determined as: (1) If the average score is greater than or equal to 90, the letter grade is A; (2) If the average score is greater than or equal to 80 but less than 90, the letter grade is B; (3) If the average score is greater than or equal to 70 but less than 80, the letter grade is C; (4) If the average score is greater than or equal to 60 but less than 70, the letter grade is D; (5) If the average score is less than 60, the letter grade is F.> For example, if the scores entered are: 100 80 30 q Your program should report something like: The number of scores entered is 3, the average is 70.0, and the letter grade is C. Please submit your .py file in Canvas.
Expert Answer:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
Best Buy Ltd is planning to launch a wide range of personal computers to serve the market for many types of users. The main objective to launch the product is to maximize the company's profit. So,...
-
Cash budget. Jim Zeeman Clinic provided the financial information in Exhibit 5.14. Prepare a cash budget for the clinic for the quarter ending March 20X1. ANNEX 5.14 JIM ZEEMAN CLINIC Data Income and...
-
Principles of Community Engagement "Principles of Engagement, Second Edition" The fourth principle discusses "community empowerment". What does this term mean to you? Why is "empowerment" an...
-
Name the following compounds.
-
Deer Track Park is a private camping ground near the Lathom Peak Recreation Area. It has compiled the following financial information as of December 31, 2012 Instructions(a) Determine Deer Track...
-
If F(x) = f(3f(4f (x))), where f(0) = 0 and f'(0) = 2, find F'(0).
-
(a) Figure P7.21 shows initial and final energy bars for a closed system. Adjust the height of any two energy bars in the final version, on the right, so that the diagram does not violate what we...
-
At the end of 2013, Seiford Enterprises' Accounts Payable balance was $341,053; at the end of 2014, it was $160,094. Assume that the company purchased $1,951,523 of inventory during 2014 and that...
-
A fish's mass increases at a linear rate. The table shows the relationship between time and mass. Use the table to predict the mass of the fish, in grams, on day 4. Time (days) Mass (grams) 0 50.5 1...
-
This problem continues the process of preparing the Kipley Company's Employee Payroll Register for the pay period ending January 8th, 20--. In previous chapters, gross wages were computed for each...
-
Particle deposition rate J on a wafer that is parallel to airflow is given by J= nu, where n is the particle density and u is the sum of gravitational and diffusive settling velocities, - 5 x 10-cm/s...
-
3. Consider the following set of functional dependencies on the relation schema R = (A, B, C, D, E, F): A BCD a) Compute D+ BC DE AB CD D A b) Find the candidate keys for R B D c) Remove...
-
In the 1960s, Chicano/a activists embraced a nonwhite identity-often calling themselves Indians or mestizos, and denounced Anglo America culture's emphasis on imperialism, militarism, commercialism,...
-
You have a project that is scheduled to be completed in 10 days at a budgeted cost of $100,000. At the end of day 6 you do an analysis and you determine the job is 70% complete and you have spent...
-
The Optical Scam Company has forecast a sales growth rate of 20 percent for next year. Current assets, fixed assets, and short-term debt are proportional to sales. The current financial statements...
-
Accountants spend a considerable amount of time on the ETL process. Some estimate that almost 80% of the total time spent analyzing data is dedicated to the ETL process. The goal of ETL is to extract...
-
A) What is the third variable problem and how does the partial correlation technique help with this problem? B) And explain how curvilinear relationships can be a problem when interpreting...
-
The roof of a refrigerated truck compartment is of composite construction, consisting of a layer of foamed urethane insulation (t2 = 50 mm, ki = 0.026 W/m K sandwiched between aluminum alloy panels...
-
Write a method that accepts a String object as an argument and returns a copy of the string with the first character of each sentence capitalized. For instance, if the argument is hello. my name is...
-
The startsWith, endsWith, and regionMatches methods are members of this class. a. String b. Char c. Character d. Wrapper
-
The East Coast sales division of a company generates 62 percent of total sales. Based on that percentage, write a program that will predict how much the East Coast division will generate if the...
-
In this chapter, we noted that the Hilbert space of the harmonic oscillator corresponds to all those states that can be accessed from the ground state through action by an anatic function of...
-
We happen to find that the ground state of the harmonic oscillator (and the coherent states in general) is a minimum uncertainty state, but can we do the converse? That is, can we directly determine...
-
We had shown that any state \(|\psiangle\) on the Hilbert space of the harmonic oscillator is described by some analytic function \(f\left(\hat{a}^{\dagger} ight)\) of the raising operator acting on...
Study smarter with the SolutionInn App