Create a class called Date that has separate int member data for day, month and year. One constructor should initialize this data to 0. and another should initialize it to fixed values. A member function should display it, in day/month/year format. Write a program to add Date of two objects by overloading '+' operator.
Create a console application for the department to record information for students who receive bursaries in the department. For each recipient you need to store the recipient’s name and the number of hours outstanding. Most new recipients start with 90 hours, but there are some exceptions. As recipients works in the department, the number of hours left needs to be updated (decreased) from time to time, based on hours already worked. Implement class Recipient which has private attributes for Name and Hours. Create two constructors, one with a default allocation of 90 hours for a recipient, and the other should accept the number of hours for a recipient. In addition to the constructors, the class should have the following methods:
public string getName()
//Returns the name of the recipient
public int getHours()
//Returns the hours outstanding
public void setHours(int H)
//Set the hours outstanding
public void displayRecipient()
//Display the name and number of hours left for a recipient
In the application class (main method in the program.cs file), do the following:
Create three instances of Recipient, for Xola, David and Sandy. Xola and Sandy will start
with 90 hours, while David starts with 60 hours.
Change the number of hours outstanding, after each have worked the following number of
hours
o Xola – 20 hours
o David – 10 hours
o Sandy – 16 hours
Use the displayRecipient() method to display the names and hours left for each
Recipient
Create a console application for the department to record information for students who receive bursaries in the department. For each recipient you need to store the recipient’s name and the number of hours outstanding. Most new recipients start with 90 hours, but there are some exceptions. As recipients works in the department, the number of hours left needs to be updated (decreased) from time to time, based on hours already worked. Implement class Recipient which has private attributes for Name and Hours. Create two constructors, one with a default allocation of 90 hours for a recipient, and the other should accept the number of hours for a recipient. In addition to the constructors, the class should have the following methods:
Create a class named 'Rectangle' with two data members- length and breadth and a function to calculate the area which is 'length*breadth'. The class has three constructors which are : 1 - having no parameter - values of both length and breadth are assigned zero. 2 - having two numbers as parameters - the two numbers are assigned as length and breadth respectively. 3 - having one number as parameter - both length and breadth are assigned that number. Now, create objects of the 'Rectangle' class having none, one and two parameters and display their areas.
1. Write a menu-driven program to perform the following operations in a single linked list by using suitable user-defined functions for each case.
a) Traversal of the list.
b) Check if the list is empty.
c) Insert a node at a certain position (at beginning/end/any position).
d) Delete a node at a certain position (at beginning/end/any position).
e) Delete a node for the given key.
f) Count the total number of nodes.
g) Search for an element in the linked list.
Verify & validate each function from main method.
2. WAP to display the contents of a linked list in reverse order
Create a C# program that uses array:
that accepts value and display.
Create a console application for a club to record their member information. For each member to need to store the member’s name and merit points. All new members starts with 0 merit points. Implement class Member which has private attributes for Name and Points. You need to create at a constructor method and the class also needs to have the following methods: public string getName() //Returns the name of the member public int getPoints() //Returns the points of the member public void setPoints(int P) //Sets the points of the member In the application class (main method in the program.cs file), do the following: Create two instances of Member, for John and Susan Assign merit points to each of them Use an if statement to display the name of the member with the highest points.
Create a windows application for a library which will request the user to input the number of books checked out and the number of days they are overdue. Your program should then calculate and displays the library fine, which is 20 cents per book per day for the first seven days a book is overdue, then 50 cents per book per day for each additional day.
Note: when submitting your solution to this task, you will also need to include an image of your form (interface) design.