by CodeChum Admin
Multiplying two numbers is a piece of cake, but how about multiplying three of them, either being a negative of positive number? With programming and proper code, these tasks are easy to handle.
We want to store the information of different vehicles. Create a class named Vehicle with two data member named mileage and price. Create its two subclasses
*Car with data members to store ownership cost, warranty (by years), seating capacity and fuel type (diesel or petrol).
*Bike with data members to store the number of cylinders, number of gears, cooling type(air, liquid or oil), wheel type(alloys or spokes) and fuel tank size(in inches)
Make another two subclasses Audi and Ford of Car, each having a data member to store the model type. Next, make two subclasses Bajaj and TVS, each having a data member to store the make-type.
Now, store and print the information of an Audi and a Ford car (i.e. model type, ownership cost, warranty, seating capacity, fuel type, mileage and price.) Do the same for a Bajaj and a TVS bike.
Write down a recursive routine to count all even number in an array?
A car customer want to buy a car, he/she will tell the owner his/her requirements and in result the car will be shown to her along with price. For instance engine should be patrol, car cc will be 100-1299, type will be hatchback and there should be 3 colors say white, black and blue. You are required to make a program where there will b atleast 3 different make for example Toyota, honda and Suzuki. If exact match couldn’t find then your program will tell user similar to the match.
Make above program using C++ functions
Write a c++ program to receive integer number and convert equivalent to binary, octal, hexadecimal number
Write the program that will compute for and display the sum of all numbers divisible by 3 from 1 to 1000.
Write a program that a the user to enter a number n display the first and odd number example if N is equal to five the first five odd numbers are 1,3,5,7,and 9.
Write a c++ program to define a base class for account, derive two classes namely saving account and current account.
define member of all three classes accordingly.
Account-> acct_no, customer name, customer_address,withdrawal, deposition
Saving Accout-> fd
Current account-> checque book issue, deposition, withdrwal
Calculate a customer's bill for a local cable company. There are two types of customers: residential and customers.
business. There are two rates for calculating a cable bill: one for residential customers and one for business
Using singly and doubly linked lists do the following :
(1)create a class that implements the following :
a->abdullah->ali
b->ball->bill
c->cat->cute
d->dark->dog
Note:
a, b, c and d are connected using doubly links and rest of the links are all singly links.
(2)no global declarations are allowed
(3)run test the code in main
(4)make a menu