By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,406 Members | 982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,406 IT Pros & Developers. It's quick & easy.

Help with C++ Programming

P: 2
These problems have been given me troble for a couple of days please help me!!!
problem 1:

This program calculates the charges for DVD rentals where current releases cost $3.5 and all others cast $2.50. If a customer rents several DVDs, every third one is free. You need to tell the user what their total cost of rental whould be based on the amount of Dvds the user enters(decides to rent).

problem 2:

Write a program that asks the user to enter a number within the range of 1-10. Use a switch statement to display the Roman Numeral version of that number.Please submit your program using blackboard and ensure that you submit the .cpp file not the .exe file.

Input Validation. Do NOT accept a number less than 1 or greater than 10.

problem 3:

Write a program that calculates how much pennies a person earns in a month if the salary is one penny for the first day, 2 for the second, four for the third, eight for the fourth, the number doubling for every extra day worked.
The program should display a table showing how much the salary was for each day worked, as well as the total pay earned for the period. The output should be displayed in dollars with 2 decimal places, not in pennies. Hint: You should print out the particular day's earnings as soon as you calculate what it should be. After you displayed every day then you display the total.

Input validation: Do no accept a number less than 1 or more than 31 for the number of days in the month.

I NEED YOUR HELP
Oct 3 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
These problems have been given me troble for a couple of days please help me!!!
You have described the problems you are trying to solve but not the problems you have had trying to solve them.

If you have code post it.

If you are getting compile or runtime errors post them.

If you are getting unexpected behaviour post to say what it is (making sure you also tell us what the expected behaviour is)
Oct 3 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.