please I want from you help to do this home wrok
hello every body here
I am student in university and I need help for this home work because this homework
my teacher he will give me big mark if I did it very well and I need for this mark to pass
I tried to solve this home work but it very difficult for me I can't do it please I need the
answer for this questions below:
1-Write a program that prompts the user to enter the number of required lines to draw an incrementing series of stars. The user should stop if 0 is entered.
Notice the stars are drawn after an indent of aproximately 2 taps.
2-A parking garage charges a $2.00 minimum fee to park for up to three hours.
The garage charges an additional $0.50 per hour for each hour or part of hour in excess of three hours. The maximum charge for any given 24 hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three customers who parked their cars in this garage yesterday.
You should enter the number of hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday's receipts. The program should use a function calculateCharges to determine the charge for each customer. Your output should appear in the following format:
Enter the hours parked for three cars: 1.5 4.0 24.0
Car Hours Charge
1 1.5 2.00
2 4.0 2.50
3 24.0 10.00
TOTAL 29.5 14.50
Press any key to continue....
• Use a for loop to prompt the user for the number of hours parked for each of the three customers.
• Declare variables to store the total number of hours and the total charges for each customer.
• The variables for all charges and numbers of hours should be of type double.
Function calculateCharges should use a nested if/else structure to determine the customer charge.
I wait you......