top of page
  • Pinterest
  • Facebook
  • Instagram

Final Mark

  • Writer: Lim Long Teck
    Lim Long Teck
  • May 11, 2021
  • 1 min read

Updated: Jun 24, 2021

Write a program that calculates the final mark PRG1 module is calculated based on 30% of common test, 30% of assignment and 40% of continuous assessment.


Program:

ct = float(input('Enter common test result: '))

a = float(input('Enter assignment result: '))

ca = float(input('Enter assessment resullt: '))

final = ct*(30/100) + a*(30/100) + ca*(40/100)

print('Your final mark for PRG1 module is', final)


Output:

Enter common test result: 60

Enter assignment result: 75

Enter assessment result: 80

Your final mark for PRG1 module is 72.5

Recent Posts

See All
CountLetters

Write a Python program to - Prompt user to input a sentence - Count the occurrence of each letter in the input sentence - Save the result...

 
 
 
BirthdayParadox

The Birthday Paradox asks the question, “If you asked random people their birthday, how many people do you expect to ask before you find...

 
 
 
ChristmasTree

Write a program to prompt the user for a character and a number, and then print a Christmas tree accordingly. Program: char =...

 
 
 

Comments


bottom of page