468,770 Members | 2,404 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,770 developers. It's quick & easy.

I Need Help Asap!!!!! Please Help Me

I need help with my problem I am stuck and I don't know what to do!!! The problem is:
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 of each type 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).

Based on the following input:
3 current 3 others...total cost is 12.00
2 current 2 others...total cost is 12.00
4 current 4 others.....totak cost is 18.00

I started to work it out but now i'm stuck and I don't know how to calculate the formula for the current releases and old dvds with the 3rd one free. Also I don't know how to calculate the 3rd dvd of every kind. This is what I have so far

using namespace std;
int main()
double total_cost;
int dvds;
int user_choice;

cout<<"How many DVD's would you like to rent"<<endl;
else if((dvds<3)&&(dvds=new_dvds))
else if((dvds>=3)&&(dvds=old_dvds))


cout<<"Your Total cost is"<<total_cost<<endl;

return 0;

please help me out its due 11:59 to night. I need some free advice I can't afford to pay. thank you
Oct 6 '06 #1
0 1328

Post your reply

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

Similar topics

6 posts views Thread by mike | last post: by
2 posts views Thread by bryan | last post: by
reply views Thread by alaa123 | last post: by
reply views Thread by [Cool staff!||Hi! I think this need for || Help me | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.