Create a Date class with integer data members for year, month, and day. Also, include a string data member for the name of the month. Include a method that returns the month name (as a string) as part of the date. Separate the day from the year with a comma in that method. Include appropriate methods. Create the To_String() method to display the date formatted with slashes () separating the month, day, and year. Create a second class that
/instantiates and test the Date class. Make UML Diagram Also
1)WAP to print the sum and product of digits of an integer.
2)Create a class Box containing length, breath and height. Include following
methods in it:
a) Decrement, Overload -- operator (both prefix & postfix)
b) Overload operator==(to check equality of two boxes), as a friend function
c) Overload Assignment operator
d) Check if it is a Cube or cuboid Write a program which takes input from the user
for length, breath and height to test the above class.
Write a java program that computes the area & perimeter of either a rectangle, a circle or a right-angled triangle. The program should display a menu that enables the user to select the type of figure whose area & perimeter he/she wants to compute. Depending on the users choice, the program should prompt for the dimensions and perform the computations. The output should be: - The type of figure, the dimensions, the area and the perimeter. (NB:The calculation should be for only one figure at any one time.)
using object oriented
Construct a class called Rectangle. A Rectangle has both a length and a width (both positive integers). Access to them should be only inside the class and within the inheritance hierarchy. Then implement the following:
A quadrilateral is represented by having Dimensions L and B units. Write a program to create two objects. Initialize one using default constructor and other using parameterized Constructor. Find out the perimeter of the quadrilateral and print it
Program to sort array elements in ascending order
As a form of quality control, the Pancake Kitchen has recorded, on a Pancake file, two measurements for each of its pancakes made in a certain month: the thickness in mm (millimetres) and the diameter in cm (centimetres). Each record on the file contains the two measurements for a pancake, thickness followed by diameter. The last record in the file contains values of 99 for each measurement. Design a program that will read the Pancake file, calculate the minimum, the maximum and the average for both dimensions, and print these values on a report.
Write a C++ program that will accept an input for the array size. Store the user input and sort array elements in ascending order.
Create a program that will prompt the user to enter a number in the range 1-100 to find my favorite number. If the number is less than favorite number, print “Too low...guess again: ”. If the number is greater than favorite number, print “Too high...guess again: ”. Otherwise, indicate that the number entered is the correct favorite number. (use a constant)