السلام عليكم ورحمه الله وبركاته
انا طالبه هندسه في السنه الاولى, واجد صعوبه في حل بعض الاسئله لماده ++C ,,, ارجو مساعدتي في ايجاد الحل ولكممممم جزيل الشكر
Q1-
The input to this program is some number of dollars . you are to calculate the number of twenty ,five and one dollar bills needed for the amount input ,using the fewest number of bills. (Ten dollar bills have been intentionally omitted.) A sample dialog for program is shown below:
Enter dollar amount: 79
Number of Twenties = 3
Number of Fives = 3
Number of Ones = 4
Q2:
Write a c++ program containing a loop to print all the integers from 200 to 300 that have a remainder of four (4) when divided by eight (8).
Q3:
Write a function volume ( ) which returns the volume of a cylinder.
V=πr2h
Q4:
Write a program to convert given amount in US$ to Omani Riyals by reading the amount in US$ from a file and write the equivalent amout in Omani Riyal to another file.
1 OMR= 2.597 US$.
Q5 -
Write a program that should first read in two values from the keyboard a starting value and an ending value. it should sum all the even numbers between those two values including the endpoints and display the sum . If the ending point is less than the starting point the sum should be 0.
A sample dialog for this program looks as follows:
Enter starting and ending: 12 15
Sum of evens =26