0% found this document useful (0 votes)
2 views

Programming I Assignment

Debre Berhan University has assigned a programming task for Computer Science students, requiring groups of up to 5 to complete various programming exercises. The tasks include checking divisibility of numbers, calculating average scores, summing digits of integers, managing employee details with tax calculations, and projecting tuition fees over five years. The submission and presentation date for the completed programs is set for September 24, 2017 E.C.

Uploaded by

bisratengda613
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)
2 views

Programming I Assignment

Debre Berhan University has assigned a programming task for Computer Science students, requiring groups of up to 5 to complete various programming exercises. The tasks include checking divisibility of numbers, calculating average scores, summing digits of integers, managing employee details with tax calculations, and projecting tuition fees over five years. The submission and presentation date for the completed programs is set for September 24, 2017 E.C.

Uploaded by

bisratengda613
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/ 1

DEBRE BERHAN UNIVERSITY

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:

salary salary<=150 salary>150 salary>600 salary>=2000 Salary>3000


& & &
salary<=600 salary<2000 salary <=3000
Percentage 0% 5% 10% 20% 35%

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.

You might also like