C++ Answers

Questions answered by Experts: 9 913

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

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.


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.


Write a C++ program to find maximum and minimum element of an array. The minimum element is the lowest value in the array and the maximum is the largest value in the array. Your program should accept N elements, all integer values then the program should display the minimum and maximum element in the array with their corresponding index number.

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


This assignment requires a C++ program be written to perform a vote counting and tallying procedure to gauge favorite holiday destinations of individuals. It should present the user with the question and a “ballot” of 5 holiday destinations and an exit/quit option. Once the program is started, it should allow the user to vote multiple times (same as in multiple users using the program to vote). The program should start with a program title and brief instructions on how to vote. It should then ask the user to select an item (vote) from a group of items that are presented. You should use your own choice of holiday destinations. After a vote is cast, incorporate a loop that will allow a new vote to be cast. Keep counters for valid and invalid votes as well as for individual item votes. Print a message informing the user whether that the vote was valid or invalid (No second chance provided to a voter even if the vote is invalid)


LATEST TUTORIALS
APPROVED BY CLIENTS