Docsity

Function Menu, Gotoxy Function-Computer Fundamentals-Assignment, Exercises of Computer Fundamentals

Toggle sidebar
bg1
Computing Fundamental
Assignment-5
Write a function menu() that would display the following options on the output screen
Choose the options by pressing the corresponding number
1-Enter The Numbers
2-Perform Addition
3-Perform Subraction
4-Exit
Write functions add(), subtract(), input() to be called when the desired option is selected
Write a program that will display the menu, will allow the user to enter the choice, will show the
results and will display the menu again.
Hint: Use do while loop, switch statement, getch( ) and clrscr( ) functions
Write a menu driven program that will display the following menu
[A suitable title for the program]
Choose the options by pressing the corresponding number
1- Enter the student Name and Roll No.
2- Enter the marks of subjects
3- Display the Marks sheet
4- Change the marks
5- View grades
6- Exit
If option 1 is selected the following should be displayed
Name :
Roll No. :
If option 2 is selected the following should be displayed on the screen
MARKS OUT OF 100
1- PHYSICS :
2- CHEMISTRY :
3- MATHS :
4- BIOLOGY :
5- COMPUTER :
6- URDU :
7- ENGLISH :
8- ISLAMIAT :
The input of each subject’s marks should be entered against printed title of the subject
Hint: Use gotoxy( ) function
Option 3 should display a detailed marks sheet that is to be devised by you. Option 3 should
allow you to re-enter the marks of any desired subject, the exact format of the text need to be
displayed for the user and the format of getting input is to be defined by you. The program should
exit if number against the option exit is pressed
Docsity.com

Partial preview of the text

Download Function Menu, Gotoxy Function-Computer Fundamentals-Assignment and more Exercises Computer Fundamentals in PDF only on Docsity!

Computing Fundamental

Assignment-

Write a function menu() that would display the following options on the output screen

Choose the options by pressing the corresponding number 1-Enter The Numbers 2-Perform Addition 3-Perform Subraction 4-Exit

Write functions add(), subtract(), input() to be called when the desired option is selected

Write a program that will display the menu, will allow the user to enter the choice, will show the

results and will display the menu again.

Hint : Use do while loop, switch statement, getch( ) and clrscr( ) functions

Write a menu driven program that will display the following menu

[A suitable title for the program]

Choose the options by pressing the corresponding number 1- Enter the student Name and Roll No. 2- Enter the marks of subjects 3- Display the Marks sheet 4- Change the marks 5- View grades 6- Exit

If option 1 is selected the following should be displayed

Name : Roll No. :

If option 2 is selected the following should be displayed on the screen

MARKS OUT OF 100

1- PHYSICS :

2- CHEMISTRY :

3- MATHS :

4- BIOLOGY :

5- COMPUTER :

6- URDU :

7- ENGLISH :

8- ISLAMIAT :

The input of each subject’s marks should be entered against printed title of the subject

Hint: Use gotoxy( ) function

Option 3 should display a detailed marks sheet that is to be devised by you. Option 3 should allow you to re-enter the marks of any desired subject, the exact format of the text need to be displayed for the user and the format of getting input is to be defined by you. The program should exit if number against the option exit is pressed

Docsity.com