Write a program to print the area of a rectangle by creating a function 'Area' taking the values of its length and breadth as parameters of its constructor and having a function named 'returnArea' which returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard. And return the area of rectangle.
Write a C++ program by creating an 'Employee' having the following functions and print the
final salary.
1 - 'getInfo()' which takes the salary, number of hours of work per day of employee as
parameters
2 - 'AddSal()' which adds $10 to the salary of the employee if it is less than $500.
3 - 'AddWork()' which adds $5 to the salary of the employee if the number of hours of work per
day is more than 6 hours.
Write a C++ program to calculate product of digits of a number.
Write a C++ program and flowchart to calculate sum of digits of a number.
Write a C++ program and flowchart to swap first and last digits of a number.
Write a C++ program and flowchart to find first and last digit of a number
Write a C++ program and flowchart to count number of digits in a number
Prepare a text file contains the name, age, id number, programme and coursework marks for each student in a class of at most 10 students.
Write a menu-driven program that allows entering queries as many times as he or she wishes. The menu should offer the following options:
Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).