hi! i'm a beginner in using turbo c can anyone help we with these problems?
help will be very very very very very much appreciated
C PROGRAM # 13: INCLUSIVE VALUES
Write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two values.
C PROGRAM # 14: ADDING UP INTEGERS
Write a program that adds up integers that the user enters. First the program asks how many numbers will be added up. Then the program prompts the user for each number. Finally it prints the sum.
How many integers will be added?:
Enter an integer 1:
Enter an integer 2:
Enter an integer 3:
Enter an integer 4:
Enter an integer 5:
The sum is 7
C PROGRAM # 15: SUM OF 1/N
Write a program that computes the following sum:
sum = 1.0/1 + 1.0/2 + 1.0/3 + 1.0/4 + 1.0/5 + .... + 1.0/N
N will be an integer limit that the user enters.
Sum is: 2.08333333333
C PROGRAM #16: ADDING UP SQUARES AND CUBES
Write a program that adds up the squares and adds up the cubes of integers from 1 to N, where N is entered by the user:
The sum of Squares is 55
The sum of Cubes is 225
C PROGRAM #17: POWER OF A NUMBER
Write a program that computes XN where X is a floating point number and N is a positive integer. The program informs the user that N must be positive if the user enters a negative value. Of course,
XN = X * X * X * ... * X
The user dialog will look something like this:
1.3 raised to the power 5 is: 3.71293
N must be a positive integer.
PROGRAM # 18: WEDGE OF STARS
Write a program that writes a wedge of stars. The user enters the initial number of stars, and the program writes out lines of stars. Each line has one few star than the previous line:
Initial number of stars:
PROGRAM #19: MILES PER GALLON
Write a program that calculates miles per gallon for a list of cars. The data for each car consists of initial odometer reading, final odometer reading, and number of gallons of gas. The user signals that there are no more cars by entering a negative initial odometer reading.
Miles per Gallon Program
Miles per Gallon: 25.0
Miles per Gallon: 30.0
C PROGRAM #20: IN-RANGE ADDER
Write a program that asks the user for the low and high integer in a range of integers. The program then asks the user for integers to be added up. The program computes two sums:
• The sum of integers that are in the range (inclusive),
• and the sum of integers that are outside of the range.
The user signals the end of input with a 0.
Low end of range:
High end of range:
Sum of in range values: 100
Sum of out of range values: 151
Even with just one problem or two..