Write a program that asks the user to input the number of students of a class...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that asks the user to input the number of students of a class named BIS 1003. The program then will ask the user to input: the ID, Assignment 1 marks, Assignment 2 marks and Final Exam marks for every student. The program needs to validate the marks out of 100. Use a dictionary to store the ID and marks of the students. After the user finishes entering the students' info, the program should display the student ID and their marks. The program should be able to handle exceptions. Modify your code for question 1 to calculate the Final Marks by adding the weighted marks of the assignments and the Final Exam. Weight of Assignment 1, Assignment 2 and Final Exam can be 25%, 25% and 50%, respectively. The program should display the final result as follows: Student ID Assignment 1 Assignment 2 1 2 70 80 80 90 Final Exam 85 90 Final Result (Weighted) 80 88 The program should be able to handle exceptions. Modify the program for question 2 to remove a student from the BIS1003 class. The program should ask the user to enter the Student ID who wants to be removed from the class. The program should display the student's information and then display the remaining students list from the dictionary after removing the students. The program should be able to handle exceptions. Write a program that asks the user to input the number of students of a class named BIS 1003. The program then will ask the user to input: the ID, Assignment 1 marks, Assignment 2 marks and Final Exam marks for every student. The program needs to validate the marks out of 100. Use a dictionary to store the ID and marks of the students. After the user finishes entering the students' info, the program should display the student ID and their marks. The program should be able to handle exceptions. Modify your code for question 1 to calculate the Final Marks by adding the weighted marks of the assignments and the Final Exam. Weight of Assignment 1, Assignment 2 and Final Exam can be 25%, 25% and 50%, respectively. The program should display the final result as follows: Student ID Assignment 1 Assignment 2 1 2 70 80 80 90 Final Exam 85 90 Final Result (Weighted) 80 88 The program should be able to handle exceptions. Modify the program for question 2 to remove a student from the BIS1003 class. The program should ask the user to enter the Student ID who wants to be removed from the class. The program should display the student's information and then display the remaining students list from the dictionary after removing the students. The program should be able to handle exceptions.
Expert Answer:
Answer rating: 100% (QA)
The required program for given question def calculateweightedaverageassignment1 assignment2 finalexa... View the full answer
Related Book For
Posted Date:
Students also viewed these operating system questions
-
The following are trial balance of Clarissa Amanda Sdn. Bhd. as at 31st December 2021. Debit RM Credit RM Opening stock, 1 Jan 2021 16,000 Purchases 75,000 Sales return 5,000 Carriage inwards 1,500...
-
A regular language is a language that can be defined by a regular expression. 0 2 . 1 Complete the unshaded cells of Table 1 to show which of the statements about regular languages are true and which...
-
WESTON ENTERPRISES 2019 and 2020 Partial Balance Sheets Assets 2019 2020 Current assets $1,193 $1272 Net fixed assets 5,722 6,023 WESTON ENTERPRISES 2020 Income Statement Sales Costs Depreciation...
-
Refer to all of the facts in Problem 12-6A. Problem 12-6A. The income statement for Pluto Inc. for 2017 is as follows: .................................................................For the Year...
-
In Problem use the transition diagram to find S 1 and S 2 for the indicated initial state matrix S 0 . S 0 = [1 0 0] B .8 A .2 C .5
-
Define the auditor's 'desired level of assurance'. Explain how this relates to the auditor's desired level of audit risk.
-
Dell Inc., headquartered in Austin, Texas, is the global leader in selling computer products and services. The following is Dells (simplified) balance sheet from a recent year. DELL INC. Balance...
-
Laura mentions that employees will come back from tea break on time because they know it will let down their fellow work mates if they don't. Imagine an employee named David frequently does not...
-
In the production of X-rays, the term "bremsstrahlung" refers to which of the following? A. The cut-off wavelength, Amin, of the X-ray tube B. The discrete X-ray lines emitted when an electron in an...
-
What is the doctrine of res ipsa loquitur and how does it help plaintiffs?
-
What must a plaintiff show to prove negligence per se?
-
What is the status of automobile-guest statutes today?
-
How does custom affect the evaluation of reasonableness?
-
Under what circumstances will the courts find an unforeseeable intervening cause not to be a superseding cause?
-
Appraise the appropriateness of the consolidation of consolidation method versus the indirect interest method for performing consolidation for the group. Please note: [In your answer, you have to...
-
You are maintaining a subsidiary ledger account for Police-Training Expenditures for 2013. The following columns are used: Inventory purchases are initially recorded as expenditures. Record the...
-
The new coordinates (X,, Y,) of a point in the x-y plane that is rotated about the z axis at an angle e (positive is clockwise) are given by Xr, = X0cos- Y0sin Yr, = X0sin + Y0cos where (X0, Y0) are...
-
A resistor R (R = 0.4) and an inductor L (L = 0.08 H) are connected as shown. Initially, the switch is connected to point A and there is no current in the circuit. At t = 0 the switch is moved from A...
-
Write a user-defined function that determines the polar coordinates of a point from the Cartesian coordinates in a two-dimensional plane. For the function name and arguments, use [th rad] =...
-
The materials which exhibit the same elastic properties in all directions are known as: (a) Homogeneous (b) Isotropic (c) Isentropic (d) Inelastic
-
In a reaction steam turbine, steam expands: (a) In nozzle only (b) In moving blades only (c) Partly in nozzle partly in blades (d) None of the above
-
In impulse turbines, pressure on the two sides of the moving blades: (a) Increases (b) Decreases (c) Remains same (d) None of the above
Study smarter with the SolutionInn App