Explain how overloading a unary operator is almost similar to overloading a binary operator with necessary examples and include main() function to demonstrate. Mention the differences between these two in terms of number of operands they deal with.
Student Record Management System
Write a C++ program which perform following operations:
Insert student record in a csv file comma separated value.
Insert at Start
Insert at End
Insert at Specific Position
Update student record (update name) in a csv file comma separated value.
Delete student record (delete by name) in a csv file comma separated value.
Student records consist of Name, age and contact number (comma separated data).
Each row of file contains a record of the student.
Example:
StudentInfo.txt
Ali ahmad,19,0333-1234567
Bilal malik,21,0321-1234567
Write a menu base program with the following menu:
Press 1 for insert student record in a csv file comma separated value
Press 2 for update student record in a csv file comma separated value
Press 3 for delete student record in a csv file comma separated value
Press 4 for display all student records of a csv file comma separated value
Press 5 for terminate the program
What is the discounted value of $350000 paid at the end of every six months for 5 years if interest is 8% compounded quarterly?
Two dices are tossed together, what is the probability of having a multiple of 12.
write a program to add three find factorial using class
Write a program to overload operators in the same program by writing suitable operator friend functions for following expression:
O7=((O1>=O2) +(O3 && O4) *(O5<O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]
Using an appropriate diagram: Discuss Gates & Flip Flops in Microprocessors
Write a program to perform class to basic conversion [Such as: Class is: Triangle with data members base and height(float), and basic type is float(area of triangle)].
8. A 75% efficient cooling tower has a water entering at 45o C and wet bulb temperature of air entering at
25 oC. Find the water exit temperature of water.
A. 32oC B. 30oC C. 34.34oC D. 23.44oC
7. A 6 x 5 x 4 m room has a pressure of 101 kpa and temperature of 30oC (Psat = 5 kpa). If percent
relative humidity is 65%, find the mass of vapor (RV = 0.423 KJ/kgoK).