Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This course has many different types of assignments, all of which are weighted differently. Using the syllabus as a guide, do the following: Design the
This course has many different types of assignments, all of which are weighted differently. Using the syllabus as a guide, do the following:
Design the function finalpercentage, which will compute a student's final percentage given the unweighted percentages from each category listed in the syllabus. Inputs must follow the same order as given in the syllabus and will all be decimal numbers in the range of to If your algorithm receives a value outside that range, it should "clamp" the number to the nearest bound. For example, clamping the values would produce the result Hint: It might be beneficial to divide this problem and design another algorithm as a helper. Make sure to test!
After calculating the weighted percentage, you should display this value as a native percentage in the range with an attached percent symbol For example, the value displays as and not If you get stuck here, look into your notes on how we've shown how to display data. Your algorithm should return the calculated weighted percentage as a decimal with the same bounds as the inputs.
In addition to the tests that you write, you can use the following examples to build confidence in your code:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started