1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New to C++. Can u please help me write this program?

Discussion in 'C++' started by nuyurk, Aug 3, 2009.

  1. nuyurk

    nuyurk New Member

    Joined:
    Aug 3, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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).
     

Share This Page