0% found this document useful (0 votes)
32 views1 page

Tutorial I - Slot C

The document describes two tutorials. The first tutorial involves creating a text file, checking if the characters are uppercase or lowercase, converting the case, and copying the converted text to a new file. The second tutorial involves defining a C++ class with private data members for flight number, destination, distance, and fuel. The class includes a public member function to input values, a private member function to calculate fuel based on distance, and a public member function to output all data members.

Uploaded by

asdfg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Tutorial I - Slot C

The document describes two tutorials. The first tutorial involves creating a text file, checking if the characters are uppercase or lowercase, converting the case, and copying the converted text to a new file. The second tutorial involves defining a C++ class with private data members for flight number, destination, distance, and fuel. The class includes a public member function to input values, a private member function to calculate fuel based on distance, and a public member function to output all data members.

Uploaded by

asdfg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Tutorial I

1. Create any text file. Check that entered character is in uppercase or lowercase character. If
entered is uppercase then convert it into lower case or vice versa. Copied the converted text
into different file.

2. Define a class in C++ with following description:


Private Members
• Flight number (integer)
• Destination( string)
• Distance( float)
• Fuel (float)
• A member function CALFUEL() to calculate the value of Fuel as per the following
criteria

Distance Fuel
<=1000 500
more than 1000 and <=2000 1100
more than 2000 2200
Public Members

 A function FEEDINFO() to allow user to enter values for Flight Number, Destination, Distance
& call function CALFUEL() to calculate the quantity of Fuel
 A function SHOWINFO() to allow user to view the content of all the data members

You might also like