Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Function Declarations

MinimumPatient Count( int no1, int no)//returns maximum count

int MaximumPatientCount (int no1,int no2)//returns minimum count

int TotalPatient Count (int patientArray int size);//eturns total count

float PatientCount (int returns the next week's predicted count)

Wite a function using C++ statement called PrintCovidSummary() which takes three integer aarrays (value1, value2 , value3)represent 3 disticts and an integer( as the size of the array) as parameters. The method points the report as given below
Output
Day col gam kalu min max
Monday 445 135 36 36 445
Tunday 397 50 136 50 397
​wednesday 444 75 19 19 444
thursday 309 104 119 104 309
​friday 259 79 164 79 259
Totalpatient count 1854 443 474
Next week prediction 2596 620 664

write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize 

this data to 0 and another should initialize it to fixed values .another member function should display it The final member function 

should add two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one 

should contain today's date andanother one should contain your date of birth) and one that isn’t initialized. Then it should compare 

the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this 

third variable. Make appropriate member functions const. 


write a program for conversion from decimal to binary ,octal and hexadecimal .the program should be developed as follows:


(a).the base class convert has two variables initial and result in which initial is a number before conversion and result is 

after conversion.


(b). it has two member functions getinit() and getconv() which return the initial value and converted value respectively.


(c). write a function compute which is a pure virtual function that actually does the conversion.


(d). separate derived classes for hexadecimal ,binary, octal, does the conversion by implementing the function compute.


(e). create the objects for each class using new operator.


(f). use the convert class type pointer to call the compute functions of the derived classes.


Using the code stub below, write a statement that assigns numCoins with numNickels + numDimes. E.g.,: 5 nickels and 6 dimes results in 11 coins.Note: These activities may test code with different test values. This activity will perform two tests: the first with nickels = 5 and dimes = 6, the second with nickels = 9 and dimes = 0.#include <iostream>using namespace std;int main() {  int numCoins;  int numNickels;  int numDimes;  numNickels = 5;  numDimes = 6;  


Create a class called InputData. It has two private data members data_a (int) and data_b (int). Write a function input() to get input for the attributes from the user and a function display() to display the values of the attributes. The values of these two data members can be returned by using two public functions get_a() and get_b().


*Derive a class called Arith_Unit from InputData. It contains the functions add(), sub(),mul(), div() to perform arithmetic operations on data_a and data_b.


*Derive a class Logic_Unit from InputData. It contains the functions and(), or() and xor() to perform bitwise operations on data_a and data_b.

Write a main() to test functionalities of the Arith_unit and Logic_unit classes.


Create a class called DISTANCE with data members as feet (int) and inches (float), use parameterised constructor to get the input values of the data members. Write a function to display the output. Create another class called DIST_KM with a data member kilometre (float). Use a parameterized constructor to assign input and a function to display it. In the main function, write a menu-driven program with 1. Convert feet and inches into kilometres 2.Check whether both the distances are equal or not. For option 1, write the conversion function in the source class. For option 2, create a separate object to assign the kilometres and check the equality of distances by overloading the operator (==).  [Note: 1 feet=0.00305km]


Design four classes: Student, Exam ,Sports and Result.  The Student class has data members such as reg. number, name. Create Exam by inheriting the Student. The Exam class adds data members representing the marks scored in 3 subjects. Create Sports by inheriting the Student. The Sports class adds data members representing the marks scored in indoor and outdoor games. Derive the Result from the Exam , Sports and Result  has its own data member of Total mark. Write an interactive program with appropriate member functions to model this relationship.


write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize 

this data to 0 and another should initialize it to fixed values .another member function should display it The final member function 

should add two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one 

should contain today's date andanother one should contain your date of birth) and one that isn’t initialized. Then it should compare 

the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this 

third variable. Make appropriate member functions const.


write a program for conversion from decimal to binary ,octal and hexadecimal .the program should be developed as follows:


(a).the base class convert has two variables initial and result in which initial is a number before conversion and result is 

after conversion.


(b). it has two member functions getinit() and getconv() which return the initial value and converted value respectively.


(c). write a function compute which is a pure virtual function that actually does the conversion.


(d). separate derived classes for hexadecimal ,binary, octal, does the conversion by implementing the function compute.


(e). create the objects for each class using new operator.


(f). use the convert class type pointer to call the compute functions of the derived classes


Write a Python program that reads an integer representing a month of the year, and
then print the name of the month. Your program must include validation and error
handling code. Thus, if the user enters a value outside the range of 1-12; or characters
that cannot be converted to an integer, your code must print the appropriate
message and continue without crashing. (Hint: You may NOT USE any 'if' statements.)
Examples:
# Input: -5 Output: Please enter a number between 1 and 12:
# Input: gkl Output: Please enter numbers only
# Input: 6 Output: June [40]
LATEST TUTORIALS
APPROVED BY CLIENTS