Assignment for PF Section A1 & A2 || Deadline 8/11/2019 Total Marks=25
Concepts for Assignment Solution:
* If-else
* While loop
Submission Rule:
*The deadline for the Assignment is coming Friday-8/11/2019 no late submission.
* you are instructed to submit Assignment in Hard form. your solution contains screenshots of the output of the task.
* Assignment should be well structured and present in the transparent file.
Assignment Tasks:
Marks=10
Q1. write a program in C++ your program should take infinite inputs and it will terminate only if the user enters odd numbers?
Hint: break statement is used for loop breaking.
Example output:
Enter number:2
Enter number:4
Enter number:5
program terminated
Marks=5
Q2. write a program in C++ your program should print A-Z (All letters) if the user enters 'a' and a-z (All letters) if the user enters 'A'?
Hint: use the Ascii table only.
Marks=10
Q3. write a program in C++ you are instructed to create a calculator which performs multiple operations such as + for addition, - for minus, * for multiplication,/ for division, % for the remainder. your program should print the menu on the console then take 2 numbers from the user and take which operation user wants to perform on the input then print the results on the console?
Marks=5
Q3 part Bonus Marks:
* your program should be user-friendly it only stops when the user enters 0.
Best of luck
This comment has been removed by the author.
ReplyDeletePost a Comment