As you may know, we don't have your DS2000 grade stored on Canvas, because Laney hates...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
As you may know, we don't have your DS2000 grade stored on Canvas, because Laney hates it, but you can figure it out anytime you like and that's what we'll do for this homework! The input data file has the following format: Assignment Type (HW, Quiz, or Viz) Grade on that assignment Using a while loop, read in the contents of the file, and compute three things: Average HW score Average Quiz score Overall DS2000 number grade (a weighted average where homework is worth 75%, quizzes are worth 20%, and mini-viz is 5%) Print out each of these things to the user, rounded to 2 digits past the decimal place. For full documentation credit, write one test case in a comment at the top of your file using the format shown below (but with your own example.) Test case: HW grades 90, 85, 95. Avg = 90 Quiz grades - 100, 90. Avg = 95 Viz grade = 90 Overall average = (.75) (90)+(.20) (95) + (.05) (90) = 91 Assume that there could be any number of homeworks, any number of quizzes, but only one Viz grade. The input data file has some made-up data in it. But we encourage you to also use your code to figure out your own current average! HW 98.5 HW 92.4 Quiz 100 Quiz 90 Viz 95 HW 87 HW 91 Quiz 98 ds2000_grades.txt As you may know, we don't have your DS2000 grade stored on Canvas, because Laney hates it, but you can figure it out anytime you like and that's what we'll do for this homework! The input data file has the following format: Assignment Type (HW, Quiz, or Viz) Grade on that assignment Using a while loop, read in the contents of the file, and compute three things: Average HW score Average Quiz score Overall DS2000 number grade (a weighted average where homework is worth 75%, quizzes are worth 20%, and mini-viz is 5%) Print out each of these things to the user, rounded to 2 digits past the decimal place. For full documentation credit, write one test case in a comment at the top of your file using the format shown below (but with your own example.) Test case: HW grades 90, 85, 95. Avg = 90 Quiz grades - 100, 90. Avg = 95 Viz grade = 90 Overall average = (.75) (90)+(.20) (95) + (.05) (90) = 91 Assume that there could be any number of homeworks, any number of quizzes, but only one Viz grade. The input data file has some made-up data in it. But we encourage you to also use your code to figure out your own current average! HW 98.5 HW 92.4 Quiz 100 Quiz 90 Viz 95 HW 87 HW 91 Quiz 98 ds2000_grades.txt
Expert Answer:
Answer rating: 100% (QA)
It appears youre describing a programming task where you need to read data from a file compute avera... View the full answer
Related Book For
Foundations of Financial Management
ISBN: 978-1259024979
10th Canadian edition
Authors: Stanley Block, Geoffrey Hirt, Bartley Danielsen, Doug Short, Michael Perretta
Posted Date:
Students also viewed these programming questions
-
What advantages does Sales Planning provide for a better planning experience?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Example Problem for Declining Balance Depreciation Methods Historical cost of equipment A: $120,000, purchased on January 1, 2014. Estimated salvage value: $20,000; Estimated useful life: 5 years....
-
Define in your own words the terms constraint satisfaction problem, constraint, backtracking search, arc consistency, back jumping and mm-conflicts.
-
Based on sales over a six-month period, the five top-selling compact cars are Chevy Cruze, Ford Focus, Hyundai Elantra, Honda Civic, and Toyota Corolla (Motor Trend, November 2, 2011). Based on total...
-
From the point of view of each observer in Figure \(6.5,\) (a) is the energy of each cart constant? (b) Is the isolated system containing cart 1 closed? (c) Is the isolated system containing cart 2...
-
1. Using the four Ps of marketing, explain how luxury goods makers can enhance their effectiveness in marketing to Chinese consumers. 2. From an institution-based view, explain why Chinese luxury...
-
(a) Equity of KGF Ltd. (KGFL) is Rs. 410 Crores, its debt, is worth Rs. 170 Crores. Printer Division segments value is attributable to 74%, which has an Asset Beta (p) of 1.45, balance value is...
-
A feed pump of a binary vapour cycle is of centrifugal and delivers 20m at 750rpm against a dynamic head of 8m. Determine the power required to drive the motor, if the pump efficiency is 90%. If the...
-
Carole owns 100% of Carole Inc, and her spouse Carl owns 100% of Carl Inc (both CCPCs). Carole is considering purchasing 30% of the common shares of Carl Inc. Explain to Carole how this transaction...
-
Identify the factors likely to give rise to the misinterpretation of information as part of the perceptual process.
-
Discuss the importance of storytelling as a method to improve communication.
-
Can the nominal interest rate available to an investor be significantly negative? Consider the interest rate earned from saving cash under the mattress. Can the real interest rate be negative?...
-
Suppose you invest $101 in a bank account, and five years later it has grown to $136.14. a. What APR did you receive if the interest was compounded semiannually? b. What APR did you receive if the...
-
How have real and nominal airline prices changed over the past several decades?
-
We often use the Gauss-Jordan elimination method to determine a solution to a system of linear b. What process would you use to solve 0 for each i > j? Hint. How would a three-by-three system look...
-
Given find the value of k. es 1 e kx dx = 1 4'
-
Given the following information, calculate the weighted average cost of capital for Puppet Corporation. Percent of capital structure: Debt..............................................55% Preferred...
-
Todd Winningham IV has $4,000 to invest. He has been looking at Gallagher Tennis Clubs Inc. common stock. Gallagher has issued a rights offering to its common shareholders. Six rights plus $38 cash...
-
Assume Hogan Surgical Instruments Company has $2 ,000,000 in assets. If it goes with a low-liquidity plan for the assets, it can earn a return of 18 percent, but with a high-liquidity plan, the...
-
One growing concern regarding the U.S. economy is the inequality in the distribution of income. The data in Table 1 represent the distribution of household income for various levels of income in...
-
One growing concern regarding the U.S. economy is the inequality in the distribution of income. An economist wants to know if the distribution of income is changing, so she randomly selects 1500...
-
Test whether \(\mu_{1}
Study smarter with the SolutionInn App