

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This assignment is for Computer Programming course. It was assigned by Prof. Anurag Negi at KIIT University. It includes: Ada95, Else, If, Programming, Value, Code, Prompt, Function, Case, Copy
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


IF x >= 0 THEN IF x >= 0 THEN x:= x+1; x := x + 1; ELSIF x >=1 THEN END IF ; x := x + 2; IF x >= 1 THEN END IF ; x := x + 2; END IF ;
Turn in a hard copy of your code listing and an electronic copy of your code.
Turn in a hard copy of your algorithm and code listing, and an electronic copy of your code. Hint : Use a case statement to select the required function/ procedure from the package.
Your Name’s Program to Implement Simple Math Functions
Please Enter Your Choice (1-3):
Figure 1 : Menu Display
If the numbers are First_Number and Second_Number,
If the User Selects 1, the output should be:
Adding First_Number and Second_Number: First_number + Second_Number = Sum
If the User Selects 2, the output should be
Multiplying First_Number and Second_Number: First_number * Second_Number = Sum
Figure 2 : Displaying Outputs