Programming Online Morning Sem Final 2024
Programming Online Morning Sem Final 2024
1. Calculate the sum of a five-digit number where the input is provided through the
keyboard. (Solve this using simple I/O operation. Do not use Loop-control,
Function or Array).
3. Determine total fare of a CNG Auto Rickshaw ride according to the provided fare
chart where the distance traveled is input through keyboard. The fair calculation also
takes a one-of waiting time into consideration:
For first 05 kilometers Tk. 50/km
For next 10 kilometers Tk. 45/km
For next 30 kilometers Tk. 40/km
For waiting time above 10 Minutes an additional surcharge of 15% is added to the
total fare. (Solve using the concepts of conditional branching)
1
World University of Bangladesh
Department of Computer Science and Engineering
Semester Final Examination
Course title: Introduction to Programming, Course code: CSE 06131209
4. The minimum wage of a country today is TK. 25,000 per month. The minimum wage
has increased steadily at the rate of 3% per year for the last 10 years. Write a
program to determine the minimum wage at the end of each year in the last decade.
(Solve using the concepts of loop controls)
5. Write a function that receives 2 integers to calculate the sum, average and multiplication
of these numbers. Call this function from main () and print the results in main (). (Solve
the problem using the concepts of functions)
6. Create an array of N length. Receive the elements of the array as user input and store
them in the array. Now put the even & odd elements of the array in 2 separate
arrays and print the two array to show the odd and even elements of the array.