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

  Features of object oriented programming

Write a 200- to 300-word short-answer response to the following: Describe the main features of Object Oriented Programming - Encapsulation, Inheritance and Polymorphism

  Implement an extension to the system

Implement an extension to the system in part(i) in which several name/value pairs are passed from the server and displayed on the client interface.

  Design logic that continuously prompt user for numeric value

Design the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number

  Create program to determine the median grade

Modify that program to determine the median grade along with the average and the highest and lowest grades

  Create an application that manipulates a billboard sign

Create an application that manipulates a billboard sign. The program must include a Billboard class (separate from the main program class) that is capable of storing the text to display.

  Write program to perform arithmetic operations on fractions

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

  Compare and contrast database connectivity in vb and c#

Compare and contrast database connectivity in VB® and C#. If you studied database connectivity in Java®, include Java® in the comparison. In which language do you find it easiest to implement a connection to a database? Why

  Subdividing address block among four different customers

The ISP needs to subdivide the address block among four different customers, requiring 29, 28, 27, and 26 hosts respectively.

  Write a program that converts english units to metric

Write a unit conversion program that converts English units to Metric using the conversion table given above. Ask the user from which unit they want to convert ( oz, lb, in, ft, mi) and which unit they want to convert to (g, kg, cm, and km).

  Determine the hidden cost if a recursive algorithm is

question 1 explain which one you should choose memoized-cut-rod or cut-rod. defend your decision by explaining the

  Write a program to find solutions to the n-queens puzzle

Write a program to find solutions to the n-queens puzzle for various valuesof n. To be specific, test your program for n =4 and n =8.

  Provide pseudocode of your overall design

our final project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as function and subprogram calls and uses arrays. ..

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