Write a c++ program which consists of two classes: 1. Date 2. Student First class Date...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a c++ program which consists of two classes: 1. Date 2. Student First class Date should contain three data members: Day Month Year Date also contain following member functions: Setter function. Getter function. showdate() Now second class Student should have following three data members: ST ID Name Ad date wwwwwwwww Where ID and Name are char pointer while Ad date (Date of Admission) type Date. Student class should contain two member functions: Display() setdate() Now in main function create an object of Class Student and call the member functions with it. Sample output: Name: ID: Admission Date: Ali is of BC020400000 12-08-2008 Write a c++ program which consists of two classes: 1. Date 2. Student First class Date should contain three data members: Day Month Year Date also contain following member functions: Setter function. Getter function. showdate() Now second class Student should have following three data members: ST ID Name Ad date wwwwwwwww Where ID and Name are char pointer while Ad date (Date of Admission) type Date. Student class should contain two member functions: Display() setdate() Now in main function create an object of Class Student and call the member functions with it. Sample output: Name: ID: Admission Date: Ali is of BC020400000 12-08-2008
Expert Answer:
Answer rating: 100% (QA)
include using namespace std class Date private int day int month int year ... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
The Kuwait Finance House (KFH) had the following transactions during the month of July 2015: 1) A customer withdraws KD 4,000 in cash from his saving account. 2) A customer deposited KD 7,000 to his...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
1. Identify 2 cultural or gender differences you may encounter in the field of policing 2. What impact might these differences have on the communication process? 3. What steps would you take to...
-
Within the context of the planning cycle, the planning that takes place at the highest levels of the firm is called: A. detailed planning and control. B. strategic planning. C. operational planning....
-
Power is generated at 24 kV at a generating plant located 56 km from a town that requires 55 MW of power at 12 kV. Two transmission lines from the plant to the town each have a resistance of 0.10 /...
-
Suppose a collection of five batteries is connected as shown. (a) What is the equivalent emf of the collection? Treat them as ideal sources of emf. (b) What is the current through the resistor if its...
-
Use the data in Exercise 22 in Section 13.1 for the following. a. Compute a point estimate of the mean diastolic pressure for people whose systolic pressure is 120. b. Construct a 95% confidence...
-
A table of data for a library is shown in the table for Problem. Normalize these data into the third normal form, preparing it for use in a relational database environment. The librarys computer is...
-
1) You've won the lottery and will receive ten thousand dollars per year, paid semiannually, for the next fifty years. I f the appropriate discount rate is 10%, what is the present value of your...
-
In a sample of 539 households from a certain Midwestern city, it was found that 133 of these households owned at least one firearm. Give a 99% confidence interval for the percentage of families in...
-
AS CHECKOUT LINES GROW MORE CUSTOMERS BUY ONLINE CWorawee Meepian/Shutterstock Have you ever walked into a large retail store and noticed that only three or four of the dozens of check-out lanes are...
-
7. Three polarizing disks whose planes are parallel and centered on common axis. The directions of their transmission axes relative to the vertical are respectively: 01 = 20, 02 = 40, and 03 = 55. A...
-
The following information is available for the pension plan of Crane Company for the year 2025. Actual and expected return on plan assets $15,300 Benefits paid to retirees 36,700 Contributions...
-
Fairpeter Manufacturing, a maker of twisted manila rope, is considering the replacement of its old fully depreciated twisting machine. Machine X cost $190,000 with a 3 year life and after tax cash...
-
The plates of a parallel-plate capacitor are 3.20 mm apart, and each has an area of 9.72 cm. Each plate carries a charge of magnitude 4.50x10-8 C. The plates are in vacuum. Part A What is the...
-
On the bunny hill at a ski resort, a towrope pulls the skiers up the hill with constant speed of 1.87 m/s. The slope of the hill is 10.9 with respect to the horizontal. A child is being pulled up the...
-
In the Case Study Evan is trying to calculate some of the alternatives in loan terms. This is shown in Table 2. Complete the Table with the missing payment information. Buy or Lease Buy Buy Buy Buy...
-
14. In testing the existence assertion, an auditor ordinarily works from the a. Financial statements to the accounting records. b. General journal to the general ledger. c. Supporting evidence to the...
-
Write a program that displays a circle of radius 10 pixels filled with a random color at a random location on a pane, as shown in Figure 15.29b. When you click the circle, it disappears and a new...
-
Write two overloaded methods that return the average of an array with the following headers: public static int average(int[] array) public static double average(double[] array) Write a test program...
-
Write a JSF page that displays a multiplication table as shown in Figure 33.26. O Display Multipication Table - Mozia Firefox Ele Edr yew Hgtory jookmarks Iook Hep Deply Mutpicatkon Tatle 3...
-
What information do CPAs request from a financial institution on the Standard Form to Confirm Account Balance Information with Financial Institutions?
-
The CPA firm of Hanson and Brown was expanding very rapidly. Consequently, it hired several staff assistants, including James Small. Subsequently, the partners of the firm became dissatisfied with...
-
Why was the Hochfelder v. Ernst decision considered a "victory" for the accounting profession?
Study smarter with the SolutionInn App