← Back to User Input
Question 203
Weighted Course Mark
Weighted Course Mark
Read an assignment mark, a midterm mark and a final exam mark, each a decimal number out of 100 on its own line with no prompts. The assignment counts for 30 percent, the midterm for 30 percent and the final for 40 percent. Print four lines with one decimal each using :0.1f: Assignments: <assignment times 0.3>, Midterm: <midterm times 0.3>, Final: <final times 0.4> and Course mark: <the three contributions added>. Input: three lines in that order.
Expected Output:
Assignments: 25.5 Midterm: 21.0 Final: 36.0 Course mark: 82.5
= newline. The output ends with a newline — print one after the last line.
Hints4 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.