Write a program to create a class Date with day, month and year as members. Write a member
function to validate the dates and display the invalid dates. Test the class with an array of Date objects.
Write a program to create a class HEIGHT with feet and inches as members. Write member
functions to READ, find the maximum height (MAX), find the minimum height (MIN) and
average height (AVG) for arrays of object.
Create a class called CarPark that has the members CarRegnno(int), ChargePerHour(int) and
ParkingDuration(float). Set the data and show the charges and parked hours of a car based on
CarRegnNo. Make two member functions for setting and showing the data. Member function should
be called from other functions.
Create a class called bMoney. It should store money amounts as long doubles. Use the function ms_to_ld() to convert a money string entered as input into a long double, and the function ld_to_ms() to convert the long double to a money string for display. You can call the input and output member functions getmoney() and putmoney(). overload the operators +,-,*,and / appropriately
Input format:
The first line contains of 4 space separated integers. N(1<=N<=10^3), M(N-1<=M<=(N(N-1)/2).T(1<=T<=10^3) and c(1<=C<=10^3). Next m line contains two integers each. U and V denoting that there is a bidirectional road between U and V.
Output format :
Print N integers, where i th denotes the number of routes which will take the minimum amount of time required to move from city 1 to city N passing through the city i
Time Converter:
In this assignment, let's build a Time Converter by applying the concepts we learned till now.
Following the above instructions, achieve the given functionality.
When values are entered in HTML input elements with ids hoursInput and minutesInput, the HTML button with id convertBtn is clicked.The converted time in seconds should be displayed in the HTML p element with id timeInSeconds.The HTML p element with id errorMsg should be empty.The HTML p element with id errorMsg should display an error message in the following cases.
When the HTML input element with id hoursInput is empty and convertBtn is clicked
When the HTML input element with id minutesInput is empty and convertBtn is clicked
When both the HTML input elements hoursInput and minutesInput are empty and convertBtn is clicked
Declare an array to store up to 10 integer percentage values
write a program that accepts an MxN matrix then do the following:
Find the sum of the main and opposite diagonal elements of an MxN matrix and adds the main diagonal of the matrix as well as the opposite diagonal of the matrix
write a program to find the median of a user-defined array using bubble sort
Write a program to find the median of a user-defined array using bubble sort