Create a derived class to store the age of the patients

Assignment Help C/C++ Programming
Reference no: EM131097474

Program

A Hospital wants to create a database regarding its indoor patients. The information to store include 

a) Name of the Patient
b) Date of Admission
c) Disease
d) Date of Discharge

Create a structure to store the date (year, month and date as its members). Create a base class to store the above information. The member function should include functions to enter information and display a list of all the patients in the database. Create a derived class to store the age of the patients. List the information about all the to store thje age of the patients. List the information about all the pediatric patients(less than twelve years in age)

Reference no: EM131097474

Questions Cloud

Make a class employee with a name and salary : Make a class Employee with a name and salary. Make a class Manager inherit from Employee. Add an instance variable, named department, of type string. Supply a method to tostring that prints the manager's name, Department and salary.
Probability of selecting two green marbles : Suppose you place 6 green, 8 blue, and 2 yellow marbles in a non-transparent bag. You then randomize the marbles by shaking them up thoroughly. Assume you then randomly select two marbles from the bag without replacement.
What is the size of its exchange rate intervention : Suppose that the demand for dollars curve in the foreign exchange market is QD=100-e(Peso/$) and the supply for dollars curve is given by QS=3e(Peso/$). What is the equilibrium exchange rate? Suppose that the Fed fixes the exchange rate at e(Peso/$) ..
Write a program that creates a binary file by reading the : Write a program that creates a binary file by reading the data for the students from the terminal. The data of each student consist of roll no., name ( a string of 30 or lesser no. of characters ) and marks.
Create a derived class to store the age of the patients : Create a structure to store the date (year, month and date as its members). Create a base class to store the above information. The member function should include functions to enter information and display a list of all the patients in the database. ..
Calculate the optimum transmit dl and ul power values : Explain the network behaviour if the channel gain of terminal 4 with base station 1 has decreased according to the shadowing effect = 120 dB.
Was national insurance justified in suspending erskine : Did Helen Barnett's actions invade James Erskine's right to privacy? Was National Insurance justified in suspending Erskine? What should be the key elements of an employee computer and Web use policy?
Price indexes-what is the inflation rate : Consider the following price indexes: 90 in 2008, 100 in 2009, 110 in 2010, 121 in 2011, and 150 in 2012. (show all work) What is the base year? How do you know this? What is the inflation rate between 2009 to 2010?
Compute the expected return-standard deviation : Compute the expected return, standard deviation, and value at risk for each of the following investments: Investment (A): Pays $100 three-fourths of the time and a $140 loss otherwise.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Reverse the order of the characters in the string

Write a program which will perform the following " using MARS - Assembly language"

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  Value of x after the following code is executed

What will be the value of x after the following code is executed?int x = 20, y = 30;while (y

  Design a menu driven program for a florist

Design a menu driven program for a florist. The first screen asks the user to choose indoor plants, outdoor plants, nonplants items, or quit. When the user chooses indoor or outdoor plants, list at least three appropriate plants of your choice.

  Solution to the naur text-processing problem

Design and implement a solution to the Naur text-processing problem using the language specified by your instructor. Execute it against test data and record the number of faults you find and the cause of each fault

  Programs written with inheritance

Many programs written with inheritance could be written with composition instead, and vice versa. Rewrite the classes Point3D, Sphere and Cylinder using composition rather than inheritance

  Function definitions of the pixel class constructor

Write client code to print out the current X and coordiantes and the status of the first pixel

  Search the maximum number from a list of numbers

Write a function to search the maximum number from a list of numbers:

  Why should stream operators be overloaded as friend function

Why should the stream operators and >> be overloaded as friend functions? Why should the arithmetic operators +, -, *, and / be overloaded as friend functions?

  Write a program to convert miles to kilometers

Write a program to convert miles to kilometers. (Recall that 1 mi = 1.6093440 km.) Write a program to convert pounds to kilograms. (Recall that 1 kg = 2.205 lb.) Write a program to compute the area of A of a circle with radius r.

  Table gives the number of pedestrians

The following table gives the number of pedestrians, classified according to age group and sex, killed in fatal road accidents in England in 1922.

  The size ofthe character array holding your filename

How to express for code "THE SIZE OF THE CHARACTER ARRAY HOLDING YOUR FILENAME >=1024 (or use strings), we need to use long file names when grading your code."

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