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....
-
Compare and contrast the methods that can be used in accounting for investments. How does a company choose a method? What are the advantages and disadvantages of each?
-
At the end of the current year, the following information is available for both Pulaski Company and Scott Company. Required 1. Compute the debt-to-equity ratios for both companies. 2. Comment on your...
-
Using specific examples, explain the concepts of inbound and outbound calls.
-
Brooks Enterprises has never paid a dividend. Free cash flow is projected to be $80,000 and $100,000 for the next 2 years, respectively, and after the second year it is expected to grow at a constant...
-
Three brothers, Joseph, Myer, and Samuel Sugarman, owned equal amounts of the shares of Statler Tissue Corporation. Over time, Myer's son Leonard became the majority shareholder of the corporation:...
-
Cyprus Citrus Cooperative ships a high volume of individual orders for oranges to northern Europe. The paperwork for the shipping notices is done in the accompanying layout. Revise the layout to...
-
familiarize you one viewpoint of the American Political Landscape allow you to explore your own political value system provide an opportunity to think critically about a problem and attempt to solve...
-
.c.3. Debt management ratios Continuing from the previous questions, calculate Bayside's 2018 TIE ratio. Round to one decimal place. 2017 Industry average Bayside's TIE ratio 2.6 4.0 Note how...
-
What item can sell to a larger company with many competitiors. ( such as selling a shoe fitting duffle bag to Nike) Company profile. Provide a description of the company you are selling your product...
-
1. Give an example of how a company might use A/B testing during the concept validation phase. 2. What are the three building blocks of trust? 3. What groups constitute a company's stakeholders? 4....
-
1) What is a executive summary of Under Armour a true summary of the opportunity for growth with the chosen market and produce opportunity and benefit for Under Armour. SECTION 5: PRODUCT STRATEGY...
-
This is a google analytics report over the google march shop. Provide a report can be used to build a picture of what else people are interested in. This report is should be an analysis over these...
-
The parents of a 5-year-old child notice that he is not as active as other children his age. During the past 9 month thechild has had several episodes of respiratory difficulty following exertion. On...
-
At Glass Company, materials are added at the beginning of the process and conversion costs are added uniformly. Work in process, beginning: Number of units Transferred - in costs Direct materials...
-
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 critical elements are important to support the planning process?
-
What are impediments to planning, both at the beginning of a project and throughout the project?
-
Since the bar chart is ineffective as a planning and scheduling tool, why is it still widely used in the construction industry?
Study smarter with the SolutionInn App