Assignment No. 1
CS201 Assignment 01 Solution Fall 2022
|Total Marks: 20
Due Date: 05th December 2022
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
Recommended tool to develop Assignment
• Dev C++
To enable students to understand and practice the concepts of:
Assignment Submission Instructions
You have to submit only .cpp file on the assignments interface of CS201 from your LMS account. Assignment submitted in any other format(like doc, docx, pdf, giff,jpg etc.) will be scaled with zero mark. So, check your solution file format before submission.
For any query related to assignment, please contact email@example.com.
Lectures: 1 to 10
|CS201 Assignment 01 Solution|
Write a C++ program to prompt the user to enter the Scale and then print the Employee’s Basic Pay, House Rent Allowance and Total Pay by using a function.
Calculations are given as:
Note: The scale should be between 1 and 3 otherwise the system will ask for the correct scale again.
As a result, you should have the following output:
The user enter 1:
If the user enter 2:
The user enter 3:
If the user enters input other than 1, 2 and 3. Then program should prompt the user to enter the correct scale of the employee again.
|Lectures Covered: 1 to 10
Due date: 05th December,2022