Implement a base class appointment and derived classes

Assignment Help Programming Languages
Reference no: EM131307759

Derive a class Programmer from Employee. Supply a constructor Programmer

Exercise 1: Derive a class Programmer from Employee. Supply a constructor Programmer (string name, double salary) that calls the base-class constructor.

Supply a function get_name that returns the name in the format "Hacker, Harry (Programmer)".

Exercise 2: Implement a base class Account and derived classes Savings and Checking. In the base class, supply member functions deposit and withdraw. Provide a function daily_interest that computes and adds the daily interest. For calculations, assume that every month has 30 days. Checking accounts yield interest of 3 percent monthly on balances over $1,000. Savings accounts yield interest of 6 percent on the entire balance. Write a driver program that makes a month's worth of deposits and withdrawals and calculates the interest every day.

Exercise 3: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, "see the dentist") and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

Exercise 4: Improve the appointment book program of Exercise 3. Give the user the option to add new appointments. The user must specify the type of the appointment, the description, and the date and time.

Reference no: EM131307759

Questions Cloud

What does this statement mean : People will work to achieve equity! Remember this statement because you will need to manage such perceptions of your employees. What I want you to think about is what does this statement mean? How will an employee achieve equity in their compe..
Create class to encapsulate the data and behavior of product : Create a class to encapsulate the data and behavior of a product in a store's inventory. The class should have the following data for an inventory item.
If disaster happen in us would organization respond : In what countries around the world is that organization working right now? If a disaster happened in the United States, would that organization respond? Why or why not?
Explain what is meant by acclimatization : Imagine that you coach a track team. You have three athletes who compete in the shot-put event. All three have good technique and achieve similar trajectory angles. One can put the shot farther than the others. Using the concepts of energy, work, ..
Implement a base class appointment and derived classes : Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, "see the dentist") and a date and time.
Goal of emergency management in regards to terrorism threat : What are the five groups that must be fully engaged in the nation's war on terrorism?- What is the goal of emergency management in regards to the terrorism threat?
Develop policies that are compliant with employment laws : Develop policies that are compliant with employment laws.Evaluate an organization's physical environment and determine criteria that ensure occupational safety.Use technology and information resources to research issues in employment law.
Write the expression for the angular momentum : Classical Mechanics - show that the ellipsoid of inertia of a cube of uniform density having an edge of length a, is a sphere for a set of axes whose origin is at the cube's center. What is the magnitude of the radius?
What were the names of the original five dhs directorates : What has been the most significant result of the September 11 attacks for state and local emergency managers?- What were the names of the original five DHS Directorates? Which of these still exist today?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

  Write a number guessing game program

Write a number guessing game program. The program will first generate a random number from 1 to 100. Then, the user guesses a number and the game will report whether the guess is too low or too high.

  Develop program for concrete class in hierarchy

Develop program which reference objects of each concrete (non-abstract) class in hierarchy. Write down abstract method "display" which determines whether displayed shape is TwoDimensionalShape.

  Write a program that iterates the given numbers

Write a program that iterates through numbers from 0 to 113 using a loop. Print the numbers, one number per line. As you print each number, say x.

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

  Draw a gui to create objects

Draw a GUI that will create the objects and provide access to each object's processing methods. Use the drawing tool in Microsoft Word.

  Logic for a program that performs arithmetic functions

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables. Prompt the user for values for the variables

  Give a pseudo-code description

Give a pseudo-code description of the o(n)- time algorithm for computing the power function P(x,n). Also draw the recursion trace of this algorithm for computation of p(2,5)

  Develop a calendar and scheduling system

Develop a calendar and scheduling system, This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the evaluation of your assignment...

  Write program which simulates checkout queue object

Write program which simulates checkout line at supermarket. Line is queue object. Customers (i.e., customer objects) arrive in random integer intervals of 1-4 minutes.

  Write program to calculate how much person earns

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd