Saturday, November 23, 2013
Friday, November 22, 2013
Thursday, November 21, 2013
Wednesday, November 20, 2013
Tuesday, November 19, 2013
Write a C++ Program in Which There Are Two Functions:One That Receives Marks Received By a Student in Three Subjects and Returns the Average and the Second Calculates the Percentage of these marks. Call the Function Average From main( ) and Call the Function for Percentage Calculation in the Function Average and Print the Results in main( ).
Write 2
functions: 1 that receives marks received by a student in three subjects and
returns the average and the second calculates the percentage of these marks.
Call the function average from main( ) and call the function for percentage
calculation in the function average and print the results in main( ).

Monday, November 18, 2013
Sunday, November 17, 2013
Saturday, November 16, 2013
C++ Program to Help the Car Buyer Analyze the Expected Price of Driving Her New Car
Write a C++ program to help the car buyer analyze the expected price of driving her new car. This program presents the user with a list of five cars (Corolla, City, Civic, Vitz, Swift ) and their expected miles per gallon (mpg) is provided for each car.
Select two cars
i. enter the number of miles driven each year
ii.enter the average price for a gallon of petrol
i. enter the number of miles driven each year
ii.enter the average price for a gallon of petrol
i.The program then displays the yearly total number of gallons required by the 2 cars selected
ii.total cost of fuel per year
iii.shows the difference in cost between the two vehicles selected
ii.total cost of fuel per year
iii.shows the difference in cost between the two vehicles selected
The five cars are: Corolla, City, Civic, Vitz, Swift
Friday, November 15, 2013
C++ Program That Converts the Distance Values Input by the User
Write a C++ program that converts distance values. The program should give the user three outputs:
Convert:
i.Whole number of inches to feet &inches (80 inches = 6 ft, 8 in)
ii.Feet and inches to decimal feet (5 feet, 6 inches = 5.5 feet)
iii. Feet and inches to inches (4 feet, 2 inches = 50 inches)
ii.Feet and inches to decimal feet (5 feet, 6 inches = 5.5 feet)
iii. Feet and inches to inches (4 feet, 2 inches = 50 inches)
(1 foot = 12 inches)
Labels:
Basics of C++,
C++,
C++ program that converts distance values,
decimal feet,
feet,
inches,
whole number
Thursday, November 14, 2013
Subscribe to:
Posts (Atom)


