Write a program that accepts dates written in numerical form and outputs in complete form
class List{
public:
int item;
int pos;
List* nextNode;
};
Task:
1)create the following functions
void Insert_Element_at(int X, int pos),
bool Delete_Element(int X),
bool is_Empty()
void Empty_List(),
void Copy_List(…)
2)Call the functions in main by makeing menu for them using switch_case statement and while loop.
Create a class named Horse that includes data fields that hold the name, color, and birth year. Include only a non-default constructor that initializes all of the data fields, and a function that displays detailed information about the Horse. Create another class, RaceHorse which inherits from Horse. RaceHorse has an additional data field that holds the number of races won. Include a constructor that will initialize races won, and a method that displays detailed information about the RaceHorse. Write a main() function demonstrating that classes and functions work correctly. Save the file as Horse.cpp
Write a C++ program to check for the not-eligible donor by throwing a custom exception.
The class Donor has the following protected variables.
Data TypeVariablestringnameintageintweightstringbloodGroup
In the Donor class, define the following function.
MethodDescriptionbool validateDonor(Donor donor)This method validates donor eligibility. Validate the donor details with the following conditions.
1.Age must be greater than 30 then the donor is eligible.
2.If the age is less than 30 then throw an exception and check the weight should be greater than 44 kg in catch block,
If the weight is also less than 44 then the donor is not eligible and rethrow the exception to the main method.
If the weight is greater than 44 then the donor is eligible.
In the Main method, read the donor details from the user and create corresponding objects.
Validate the donor to check the donor is eligible or not.
You have been asked to write a simple question and answer programme. There is only one question to answer: "What is the capital of France".
The programme should ask the user this question, then prompt for a response.
The user then types in an answer.
If the answer is correct, the programme should tell the user that their answer was correct.
If the answer is incorrect, the programme should tell the user that their answer was wrong.
Write a program that has both height restrictions and an age restriction . To gain admission to the ride you need to be 0.6 feet and your age should be 5 or above
How can i store a funktion display that test a prime, next prime, previous prime display prime, and exit. Then add function call to display_menu in main function.
Construct a C++ program to store the data in column X as an array, then process the data to obtain the data as in column Y and Z. Store the data as an array as well.
Question 2 Construct a C++ program to store the data in column X as an array, then process the data to obtain the data as in column Y and Z. Store the data as an array as well. X Y Z 0 100 95 2 98 93 4 96 91 6 94 89 8 92 87 10 90 85 … … … … … … 100 0 -5