0% found this document useful (0 votes)
28 views3 pages

PF Assignment 03

Uploaded by

temporary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

PF Assignment 03

Uploaded by

temporary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Programming Fundamentals

Assignment#03

Instructions:
• Do Not Copy! Anyone caught being indulged in the act of plagiarism
would be awarded minus 100% marks in the assignment.
• Read the complete statement carefully before starting the implementation.
• Do not discuss with each other.
• Partial submission will be accepted and evaluated, therefore, submit what
is done by you without taking help from anyone.
• Submit on LMS and paste code and output of code on a word file and
submit its printed copy in class.
• Submission will not be allowed after deadline.
Submission Guidelines:
• Assignment submission in class (29th December 2022).
• Copy code on a word document along with output screenshot. Submit
word file on LMS and printed copy in class.
• Deadline of Assignment on LMS: 11:59 am 29th December 2022
Question 1: Design a C++ Program applying basic programming concepts to
calculate gross salary for a company. Write program to take a value from the user
as input the basic salary of an employee and calculate its gross salary according to
the following:
Basic Salary House Rent Allowance Dearness Allowance
<= 10000 20% 80%
<= 20000 25% 90%
>20000 30% 95%

Question 2: Design a C++ Program using if-else statement to calculate the total
number of notes in a given amount entered by user.
Sample: If amount is 1570 output should be:
1 notes of 1000
1 note of 500
1 note of 50
1 note of 20
Question 3: Design a C++ Program applying basic programming concepts to
calculate grades for a school system. Write program to take a value from user as
input marks of five subjects Physics, Chemistry, Biology, Mathematics, and
Computer. Calculate percentage and grade according to the following:
Percentage of total Grade
Marks
>=90% A
>=80% B
>=70% C
>=60% D
>=50% E
<40% F

Question 4: Design a C++ Program applying if-else statement to check whether the
alphabet is vowel or consonant. Take alphabet as input from user.
Question 5: Design a C++ Program applying basic programming concepts to check
number of days in a month. Write program using if-else statement and take month
number as input from user and print number of days in the month.
Question 6: Design a C++ Program of centimeter convertor applying basic
programming concepts. Convert centimeter entered by user into meter and
kilometer using if-else statement.
Question 7: Design a C++ Program applying basic programming concepts to check
whether it’s AM or PM. Take hours and minutes as input and show the output
accordingly. Sample:
Enter hours: 15
Enter minutes: 30
Output: Time is 3:30 PM
Question 8: Design a grade calculator for another school system by applying basic
programming concepts. The school has following rules for grading system. Ask user
to enter marks and, calculate and print the corresponding grade.
Marks Grade
<25 F
25-45 E
45-50 D
50-60 C
60-80 B
>80 A

You might also like