C++ Answers

Questions answered by Experts: 9 913

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

  1. Input two integer values. The first one shall accept any integer from 0-9 and the other one shall take a non-zero positive integer.
  2. Using a while loop, count how many of the first integer (0-9) is present in the digits of the second inputted integer and print the result (see sample input and output for example).
  3. Tip #1: You have to use your knowledge from the previous problems in looping through the digits of a number: % 10 to get the rightmost digit, while / 10 to remove the rightmost digit. Make sure to solve the previous problems first.


Input


Power Trio

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.


You're a programmer, right? Then code this one for me!

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


LATEST TUTORIALS
APPROVED BY CLIENTS