Coding Activities by Usairim Kamal

Armstrong number

Write a program to check if the number entered by the user is an Armstrong number or not?

Infinity

Write a program to check the infinite loop?

Sum of Natural Numbers

Write a program to find the sum of natural numbers.

reverse order

Write a program to print the numbers in reverse order beginning from the number entered by the user.

reverse order

Write a program to print the numbers in reverse order beginning from the number entered by the user.

Reverse a String

Write a program to reverse the string entered by the user.

Sum of whole numbers

Write a program to calculate the sum of whole numbers.

Customise your ride

Write a program to select a ride according to your preference. The ride is divided into two major categories: 1. Bike 2. Car And further, bikes and cars are divided into 2 subcategories. To give the user better selection options.

Electricity bill

Write a program to calculate the electricity bill. The bill is calculated by checking the number of units consumed. Suppose the user is consuming less than 50 units. The per-unit cost will be 2.60, and the tax on that bill will be 25. If a user is consuming more than 50 but less than 100. Then the per-unit cost will be 3.25, and the tax on that bill will be 35 If the user is coming more than 100 and less than 200. Then the per-unit cost will be 5.26, and the tax will be 45 And above 200, the cost of the unit is 8.45, and the tax is 75.

Exam Eligibility Check

Write a program to check whether the student can take an exam or not. Students will be allowed only in two conditions: If they have a medical cause (‘Y’ for yes and ‘N’ for no). If yes, then they will be allowed. If No, then check attendance If attendance is above 75, then allowed; otherwise, not allowed.

Average speed

Three cyclists are riding at the speed of 10,20,30 km/h. find the average and compare which cyclist is riding slower than the average speed?

Mean Value

The mean of 40 numbers is 38. Later on, I detected that I misread the number 56 as 36. Find the correct mean of given numbers.