Reference no: EM13702233
Answer the following questions and also justify your answers with appropriate examples
Question 1: Write a program to determine statistics for a video game tournament.
The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.
You have to implement these functions:
- Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:
- InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.
- DisplayPlayerData(): Displays each player's name and score.
- CalculateAverageScore( ): Calculates the average score and returns it by value.
- DisplayBelowAverage( ): Displays the names and scores of players who scored below average
Question 2: Write a program to alphabetize a list of last names. The user will input an undetermined number of last names.
The program will display the number of names entered and alphabetized lists of the names in ascending (A-Z) and descending (Z-A) order.
Your program will store the names in an ArrayList object. It will use various ArrayList properties and methods to implement the program needs.
Hcl is slowly added to a solution that is 0.250m in pb2+
: Question- HCl is slowly added to a solution that is 0.250M in Pb2+ and 0.00150M in ag+. Which precipitate forms first,PbCl2 or AgCl? Show your calculation. At what Cl- ion concentration will the precipitate first. Appear? Ksp for PbCl2 is 1.6*10^-..
|
Design a class named magazinesubscription
: Design a class named MagazineSubscription that has fields for a subscriber's name, the magazine name, and number of months remaining in the subscription.
|
How many grams of silver sulfate can be dissolved in 450
: Question- How many grams of silver sulfate can be dissolved in 450. ml of .200M sodium sulfate solution? (ksp for Ag2SO4 is 1.2* 10^-5)
|
What would like to web page to do
: What would like to web page to do? Who is my audience and What do I want it to look like? How simple do I want it? How complex?
|
Determine statistics for a video game tournament
: Write a program to determine statistics for a video game tournament and write a program to alphabetize a list of last names. The user will input an undetermined number of last names.
|
Write the algorithm and find out the time complexity
: Write the algorithm and find out the time complexity for the algorithm (in terms of n and m). Note that given two locations (x1, y1) and (x2, y2), distance between them can be calculated by the subsequent formula: ? (x2 - x1)2 + (y2 - y1)2.
|
Create a simple command line program
: Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.
|
Construct the arraylisttype class application
: Construct the Student Class Student.h and Student.cpp student class should add a Student.h header file for your class definitions and a Student.cpp implementation file comprised of first name, last name, ram id
|
Importance of monitoring system performance
: Describe in your own words the purpose of all user interfaces, whether command or menu driven and explain the importance of monitoring system performance and why Windows make this information available to the user.
|