Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   New to C++. Can u please help me write this program? (http://www.go4expert.com/forums/cpp-help-write-program-t18799/)

nuyurk 3Aug2009 20:59

New to C++. Can u please help me write this program?
 
Write a program for The Department of Motor Vehicles (DMV) to calculate the registration fees for automobiles. The DMV classifies automobiles as type 1 for luxury or as type 2 for all others. The registration fee for an automobile is $35.00. If the automobile is a luxury vehicle, add a surcharge of $15.00. The DMV also classifies automobiles as city vehicles (class 1) or non-city vehicles (class 2). An automobile that is registered in the city of Metropolis must pay an additional surcharge of $20.00, no matter what its type. Your program should prompt the user for the luxury type (either 1 or 2) and for the city class (either 1 or 2) of the automobile. The program should display the total registration fee for the vehicle. Design the program to process any number of automobiles.

xpi0t0s 9Aug2009 00:48

Re: New to C++. Can u please help me write this program?
 
Write it yourself. When you're stuck, post the code you've got so far and explain where it's all going wrong. Hint: try just writing the first part of the program and get that working before adding more features, for example try just prompting the user for the luxury type and displaying back to them what they entered (I usually start with something like that).


All times are GMT +5.5. The time now is 04:04.