You want to buy a new car, but you have not made a buying decision with respect to the type of vehicle that would be the best fit for your needs. You visited the auto dealer in your area, and the dealer offered you a test drive of different types of cars, such as sedan, minivan, crossover, coupe, and convertible. Based on this information,
do the following: Write a C++ program that takes the type of vehicle as an input and then lists the features of each vehicle type using the concept of inheritance.
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
// string carlist=["sedan", "minivan", "crossover", "coupe",
"convertible"];
class properties{
public:
string bodyMetal="steel";
string steeringSide="right";
string windows="glass";
bool bulletProof="false";
};
class cars:public properties{
public:
string color="";
string price="";
bool bulletProof="";
cars(string name){
if(name=="sedan"){
color="green";
price="2000k";
}
if(name=="minivan"){
color="red";
price="2000k";
bulletProof=true;
}
if(name=="crossover"){
color="black";
price="2500k";
}
if(name=="convertible"){
color="blue";
price="4000k";
}
if(name=="coupe"){
color="red
stripped black";
price="5000k";
}
}
};
int main(){
string carName;
cin>>carName;
cars car(carName);
cout<<"color:
"<<(car.color)<<endl;
cout<<"price:
"<<(car.price)<<endl;
cout<<"windows:
"<<(car.windows)<<endl;
cout<<"bodyMetal:
"<<(car.bodyMetal)<<endl;
cout<<"bulletProof:
"<<(car.bulletProof)<<endl;
cout<<"steeringSide:
"<<(car.steeringSide)<<endl;
}
You want to buy a new car, but you have not made a buying decision with...
After deciding to buy a new Mercedes-Benz C Class sedan, you can either lease the car or purchase it on a three-year loan. The car you wish to buy costs $35,000. The dealer has a special leasing arrangement where you pay $99 today and $499 per month for the next three years. If you purchase the car, you will pay it off in monthly payments over the next three years at a 6 percent APR compounded monthly. You believe you...
After deciding to buy a new Mercedes-Benz C Class sedan, you can either lease the car or purchase it on a three-year loan. The car you wish to buy costs $35,000. The dealer has a special leasing arrangement where you pay $99 today and $499 per month for the next three years. If you purchase the car, you will pay it off in monthly payments over the next three years at a 6 percent APR compounded monthly. You believe you...
Suppose you want to buy a new car that costs $32,800. You have no cash – only your old car, which is worth $4000 as a trade-in. The dealer says the interest rate is 4% add-on for 5 years. Find the monthly payment.
Suppose you want to buy a new car that costs $32,700.You have no cash-only your old car, which is worth $3000 as a trade-in. The dealer says the interest rate is 3% add-on for 5 years. Find the total amount to be repaid.
When you purchase a car, you may consider buying a brand-new car or a used one. A fundamental tradeoff in this case is whether you pay repair bills (uncertain at the time you buy the car) or make loan payments that are certain. Consider two cars, a new one that costs $15,000 and a used one with 75,000 miles for $5,500. Let us assume that your current car’ s value and your available cash amount to $5,500, so you could...
Suppose you are interested in buying a new Lincoln Navigator or Town Car. You are standing on the sales lot looking at a model with different options. The list price is on the vehicle. As a salesperson approaches, you wonder what the dealer invoice price is for this model with its options. The following data are based on a random selection o these cars of different models and options. Let y be the dealer invoice in thousands of dollars) for...
Solve it by using DecisionTools software
When you purchase a car, you may consider buying a brand-new car or a used one. A fundamental trade-offin this case is whether you pay repair bills (uncertain at the time you buy the car) or make loan payments that are certain. Consider two cars, a new one that costs $15,000 and a used one with 75,000 miles for $5,500. Let us assume that your current car's value and your available cash amount to...
Choose one of the following, and imagine you would be planning to buy it: A tube of toothpaste A smartphone A financial service A new car Choose one of the buyer decision behavior types listed above, and act in your discussion postings accordingly. Remember, this is a role-playing exercise, so it might be useful for you to choose a type which is the least typical of you. Role-play is an activity when you either put yourself into somebody else's shoes...
Question if business law and i want full explanation
from the side of defense and plaintiffs..Please.
This question is of Business Law...A case of comtact
and remedies ..I want a 1 page explaintion from the side of
defense.
mal Pare charged by skill ding contractor himself bie's account. He stated ld manufacture kitchen shape of those made by He offered Trebic 6800 CASE 7 Kenya Marsh d not only provide h shall wished to purchase an automobile that only provide...
JAVA You have been scrimping and saving and are now looking to buy a new car. You decided you want to buy a Honda Civic because of its good gas mileage, good trade in value and available features. Now you get to choose a package of options. Base price: $17,950 The car comes with these different option packages: Option ‘P’ includes: auto transmission, power windows and locks, stereo sound system. Cost: base + 1200 Option ‘L’ includes: all of the...