Question: Exercises loop 1. Develop a program that outputs the integers from 2 to 14. 2. Develop a program to calculate the sum of all decimal

 Exercises loop 1. Develop a program that outputs the integers from
2 to 14. 2. Develop a program to calculate the sum of

Exercises loop 1. Develop a program that outputs the integers from 2 to 14. 2. Develop a program to calculate the sum of all decimal integers from 20 to 30. 3. Develop a program to add all even numbers from 10 to 20. 4. Develop a program that will display the first 10 integers (Oto 9), with their squares and cubes (the cube of 2 is 2 which is equal to 2*2*2 or 8). 5. Develop a program that outputs the integers from 10 to 1. 6. Develop a program that outputs the integers from 1 to 10 except 5. 7. Develop a program that will output the multiplication table for 7 as shown below: 1x 7 = 7 2 x 7 = 14 11 x 777 12 x 7 - 84 8. Develop a program that will output the multiplication table for 7 and 8 as shown below: 1x 7 = 71x8=8 2 x 7 = 142 x 8 = 16 3 x 7 = 21 3 x 8 = 24 10x 7 = 70 10 x 8 = 80 11 x 7 = 77 11 x 8 = 88 12 x 7 = 84 12 x 8-96 9. Develop a program that reads temperatures for a week from a user and displays the average of the temperatures. 10. Assume that a car consumes 10 gallons of fuel every 400km. Also assume that the cost of a gallon of fuel is 6.25 AED. Write a program to ask the user to enter the length of daily trips over a 7-day week and calculate and display the total week's cost. Dw acer 10. Assume that a car consumes 10 gallons of fuel every 400km. Also assume that the cost of a gallon of fuel is 6.25 AED. Write a program to ask the user to enter the length of daily trips over a 7-day week and calculate and display the total week's cost. Hint: number of gallons consumed per trip = triplength * 1/40 11. Salem bought a new Rahal card that has been credited with 300 AED. Write a program to ask Salem to enter each day's fuel cost for a whole week and calculate and display the total week's cost and the amount of credit left in the card

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!