Programming I Assignment
Programming I Assignment
College of computing
Department of Computer Science
General Instruction:
Make a group of maximum 5 students in each group
Write a complete program for each of below program
Submission and Presentation Date:24/09/2017 E.C
Document type required for submission: Softcopy
1. Write a program that accepts two positive numbers from the user and check if one positive
integer is divisible by another.
2. Write a program that keep on accepting the subject score of computer programming from
the user and the program quits when the user entered -1 as input. The program also counts
and display the number of students who have scored more than the average score of
students’ marks?
3. Write a program that reads a five-digit integer from the user and prints the sum of its digits
4. Write a program using function that read a number X and N from the user inside the main
function and display the sum of the following series in your defined function. Assume N is
a positive number entered from the keyboard? [3pts]
Sum
5. Assume that XYZ Company wants to manage Employe details like employee full name,
salary, net pay and educational levels. Write a c++ program that will accept employee full
name, salary, education level from the keyboard and display employee’s full name,
salary, net_pay and education level. Note that the net pays of the employee computed
after deducting the tax based on the following tax percentage:
6. Assume that at ABC college, the tuition for a full-time Regular student is 2,000 birr per
semester. The college deliver courses two Semester per year. It has been announced that
the tuition will increase by 3 percent each year for the next 5 years. Write a C++ program
that displays the projected semester tuition amount for each year, and the total Gross
payment of the student for the next 5 years.