CS506 Assignment No. 1 Announced

No Comments

Problem Statement:
You will be writing a simple result calculator. In your program first you will display your VU ID. Then you will ask user to enter Total marks, then you will take input for Obtained marks. After that you will calculate the percentage of marks and display Student Grade and Percentage. You will also perform exception handling in your code.
Details
First you will display your VU ID and Name











Then your program will ask user to enter total marks.









Then your program will ask user to enter the obtained marks










Then your program should display Percentage of marks on console and Grade obtained by student in Message Dialog Box











Here is the criteria to calculate grade
Obtained Marks >= 85% = A Grade
Obtained Marks <>= 75% = B Grade
Obtained Marks <>= 60% = C Grade
If obtained marks are less the 60% = F Grade
If user has input value other than number then your code should handle the exception. E.g. if user inputs abc
















Hints: 1) Keep all variables float so you could easily perform division.
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment