Unit 2  Program #1

Pass Fail Program

 

 

 

Write a program where the user enters a test score and enters what the test was out of… The program should then calculate the % of the test and then display a message saying “You passed” or “You failed” depending on whether they were over 50%.  If might look like the example below

 

 

Example

 

Enter you test score   ___30______

 

Enter what the test was out of ____40____

 

You got 75%

 

You Passed