Questions: 11 448

Answers by our Experts: 10 707

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

Create a program that will display a different output based on the user input. If the user entered a number more than 50, it will display "The number is greater than 50". Otherwise, it will display "The number is lesser than what I expected."

How to implement this using vector



#ifndef __ROCKPAPERSCISSOR_H__


#define __ROCKPAPERSCISSOR_H__



enum ObjectType { ROCK, PAPER, SCISSOR };



void displayRules();



ObjectType retrievePlay(char selection);



bool validSelection(char selection);



void convertEnum(ObjectType object);



ObjectType winningObject(ObjectType player, ObjectType computer);



void gameResult(ObjectType player, ObjectType computer, int &winner);



void displayResults(int g_count, int w_count1, int w_count2);



#endif



For you to be allow to participate in on going convocation,you must have meet up with the school criteria and completed your registration. If any of these conditions are not met , you can not be eligible to graduate with the present graduating students. Write a c++ program for the automation of this system

Pls help me to implement this program





#include <iostream>



using namespace





struct NameType



{





string first;



string middle;



string last;





};





struct AddressType



{





string address1;



string address2;



string city;



string state;



string zip;





};





struct DateType



{





int month;



int day;



int year;





};





struct ContactType



{





string phone;



string cellphone;



string fax;



string pager;



string email;





};





struct EmployeeType



{





NameType name;



string emp_id;



AddressType address;



DateType hireDate;



DateType quitDate;



ContactType contact;





};




Write a two dimensional arrays that searches a number and

display the number of times it occurs on the list of 12 input

values.

Sample input/output dialogue:

Enter twelve numbers:

15 20 12 30 35 40 16 18 20 18 20

Enter a number to search: 20

Occurrence(s): 3


First, read in an input value for variable numInput. Then, read numInput integers from input and output each on the same line with the character ": " between each value. End with a newline.

Note: ": " should not be at the beginning or end of the output.

Ex: If the input is 4 -40 -30 -100 40, the output is:

-40: -30: -100: 40


Which of the following apply to the while loop only? To the do...while loop only? To



both?



a. It is considered a conditional loop.



b. The body of the loop executes at least once.



c. The logical expression controlling the loop is evaluated before the loop is



entered.



d. The body of the loop may not execute at all.




Pls help me to implement this program


#include <iostream>

using namespace


struct NameType

{


string first;

string middle;

string last;


};


struct AddressType

{


string address1;

string address2;

string city;

string state;

string zip;


};


struct DateType

{


int month;

int day;

int year;


};


struct ContactType

{


string phone;

string cellphone;

string fax;

string pager;

string email;


};


struct EmployeeType

{


NameType name;

string emp_id;

AddressType address;

DateType hireDate;

DateType quitDate;

ContactType contact;


};


Write a c++ program for the World Bowling Competition. An input file, score.txt, contains the name of each player, the name of the player's team and each player's individual score. There will only be two teams(Blue and White). Read the data from the input file into three parallel arrays.The program must accumulate the total score for each team and then output the name of the winning team and the player's names and score of the winning team. Assume there is no chance of a tie. Use functions to:

1) Read the data from the input file into parallel arrays,

2) Determine the winning team,

3) Display the winning team's player names and scores


Mark the following statements as true or false.



a. All members of a struct must be of different types.



b. A function cannot return a value of type struct.



c. A member of a struct can be another struct.



d. The only allowable operations on a struct are assignment and member selection.



e. An array can be a member of a struct.



f. In C++, some aggregate operations are allowed on a struct.



g. Because a struct has a finite number of components, relational operations are



allowed on a struct.




LATEST TUTORIALS
APPROVED BY CLIENTS