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.
create a class called person
populate the class with below private fields
1.First name as an String
2.Last name as an String
3.email id as string
4.Dateofbirth as DateTime
Add a constructor that accept Firstname,Lastname,Email,DateBirth as Parameter
Add read only properties that return the following computer information
1.Isadult a bool- Whether or not the person is over 18
2.Sunsing as string - the traditional western sun sign of the person
3.Isbirthday as bool - wether or not today is the persons birthday
4 ScreenName as string - a default screeb name that you might seen being offered to a first time user of gmail or yahoo(e.g. hari joe born on may 25th,1980 might be hdoe525 or haridoe052580)
Create a class classed employee which should be driven from person class. employee class should add the following properties
1. Salary as double
in the main method created object of employee class and test
the behavior by calling read-only properties
You are designing a spherical tank, as shown in figure below, to hold water for a sonll village in
a developing country. The volume of liquid it can hold can be compuned as
V=pi*h2*
(3R-h)/3
where V is the volume of water in the tank in m3, b is the height of water in the tank in m, R is
the radius of tank in m. If R is 3m and V is 30 m.
Formulate the equation in terms of height (h), from above generalized equation, representing the
present situation
Use the correct built-in function in MATLAB to determine all possible values of height (h) that
will satisfy the formulated equation i.e. determine all possible roots of the formulated equation.
From those values height (h) which one is the correct and why?
Write a python program to calculate the average of five numbers passed by users using function.
Write a program to gets 10 numbers from the user and counts how many of those numbers are greater than 10.
write a program to print the product of given two numbers.
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.