Wednesday, November 20, 2013

C++ Program That Converts Any Given Year Into Its Roman Equivalent Using Functions

 Write a general-purpose function to convert any given year into its roman equivalent. The following table shows the roman equivalents of decimal numbers:

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( ).

Sunday, November 17, 2013

C++ Hotel Program Which Asks the User Room type,Number of People,Number of Night Stay, Guests and Prints The Total Cost

Write a Program That asks the user
A)room type
B)number of People
C)number of additional guests
D)number of night stays
E)Prints Total cost

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.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
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)
 (1 foot = 12 inches)