nter player 1's jersey number: 84
Enter player 1's rating: 7

Enter player 2's jersey number: 23
Enter player 2's rating: 4

Enter player 3's jersey number: 4
Enter player 3's rating: 5

Enter player 4's jersey number: 30
Enter player 4's rating: 2

Enter player 5's jersey number: 66
Enter player 5's rating: 9

ROSTER
Player 1 -- Jersey number: 84, Rating: 7
Player 2 -- Jersey number: 23, Rating: 4

Implement a menu of options for a user to modify the roster. Each option is represented by a single character. Following the initial 5 players' input and roster output, the program outputs the menu. The program should also output the menu again after a user chooses an option. The program ends when the user chooses the option to Quit. For this step, the other options do nothing.

Ex:

MENU
a - Add player
d - Remove player
u - Update player rating
r - Output players above a rating
o - Output roster
q - Quit

Answers

Answer 1

Answer:

Explanation:

The following Java code implements the menu of options as requested. Only the quit option works as requested, the rest of the options do nothing. This menu continuous to reappear until the quit option is chosen, and only begins after the initial first five players are placed in the roster.

import java.util.Scanner;

import java.util.Vector;

class Brainly {

   static Scanner in = new Scanner(System.in);

   static Vector<Integer> jerseyNumber = new Vector<>();

   static Vector<Integer> ratings = new Vector<>();

   public static void main(String[] args) {

       for (int x = 0; x < 5; x++) {

           System.out.println("Enter player " + (x+1) + "'s jersey number:");

           jerseyNumber.add(in.nextInt());

           System.out.println("Enter player " + (x+1) + "'s rating:");

           ratings.add(in.nextInt());

       }

       boolean reloop = true;

       while (reloop == true) {

           System.out.println("Menu");

           System.out.println("a - Add player");

           System.out.println("d - Remove player");

           System.out.println("u - Update player rating");

           System.out.println("r - Output players above a rating");

           System.out.println("o - Output roster");

           System.out.println("q - Quit");

           char answer = in.next().charAt(0);

           switch (answer) {

               case 'a':

               case 'r':

               case 'd':

               case 'u':

               case 'o':

               case 'q': System.exit(0);

                  reloop = false;

                   break;

           }

       }

   }

}

Nter Player 1's Jersey Number: 84Enter Player 1's Rating: 7Enter Player 2's Jersey Number: 23Enter Player

Related Questions

Earth, Wind & Fire were NOT known for combining many different styles of music together.Required to answer. Single choice.
(1 Point)

True

False

Answers

Answer:

false

Explanation:

Cause I don't believe you can't use earth, wind,and fire to create music.

Write the simulate method, which simulates the frog attempting to hop in a straight line to a goal from the frog's starting position of 0 within a maximum number of hops. The method returns true if the frog successfully reached the goal within the maximum number of hops; otherwise, the method returns false. TheFrogSimulationclass provides a method calledhopDistancethat returns an integer representing the distance (positive or negative) to be moved when the frog hops. A positive distance represents a move toward the goal. A negative distance represents a move away from the goal. The returned distance may vary from call to call. Each time the frog hops, its position is adjusted by the value returned by a call to thehopDistance method. g

Answers

Answer:

Explanation:

The following code is written in Python. It creates the simulate method which takes in an argument for the max number of hops and the goal distance. Then it loops the number for the max number of hops and asks the user for a hop input using the hopDistance() method (which was not included so it was made, this can be removed if wanted). Then it updates position. If after the max hops goal was reached it returns True, otherwise it returns False.

def simulate(max, goal):

   position = 0

   print("Goal is " + str(goal))

   for x in range(max):

       hop = hopDistance()

       position += int(hop)

   if position >= goal:

       return True

   else:

       return False

def hopDistance():

   return input("Frog Hop Distance this hop: ")

print(simulate(4, 20))

What are the important points
concerning critical thinking?
(Select all that apply.)
You must evaluate information.
You should use your feelings.
You need to practice the right skills
You need to be well-spoken
You can learn it quickly
You need to use logic and reason
You need to be unbiased and unemotional

Answers

Answer:

You must evaluate information

Explanation:

The first step to thinking critically is to accept information only after evaluating it. Whether it's something read or heard, critical thinkers strive to find the objective truth. In doing this, these employees evaluate by considering possible challenges and solutions. This process of vetting new information and considering outcomes is called evaluation.

Which of the following does PXE use?
a) USB
b) DVD-ROM
c) CD-ROM
d) NIC

Answers

Answer:

The answer is d) NIC.

Explanation:

PXE Stands for Preboot Execution Environment and a PXE uses an NIC also know as Network Interface Controller. For an example: If you have a DELL Inspiron 8500 and you couldn't get it to work you would need to go through all boot-up system including a Preboot Execution Environment in the booting code protocols it would say connecting to NIC after 6 seconds it would say NIC connected then it would search for a boot device after a few munities since the DELL Inspiron 8500 is obsolete you would get this message:

No Boot Device found

You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???

Along with the encrypted copy, some mysterious person has also given you the following documents:

helloworld.txt -- Maybe this file decrypts to say "Hello world!". Hmmm.

hints.txt -- Seems important.

In a file called pa11.py write a method called decode(inputfile,outputfile). Decode should take two parameters - both of which are strings. The first should be the name of an encoded file (either helloworld.txt or superdupertopsecretstudyguide.txt or yet another file that I might use to test your code). The second should be the name of a file that you will use as an output file. For example:

decode("superDuperTopSecretStudyGuide.txt" , "translatedguide.txt")

Your method should read in the contents of the inputfile and, using the scheme described in the hints.txt file above, decode the hidden message, writing to the outputfile as it goes (or all at once when it is done depending on what you decide to use).

Hint: The penny math lecture is here.

Another hint: Don't forget about while loops...

Mac hint: use encoding="utf-8" in your file open functions, like this:

Mac hint: use encoding="ascii" in your file open functions, like this:

fin = open(input_file,"r",encoding="ascii")

Answers

Answer:

You use a decoder

Explanation:

You can find one on an internet browser

Please Fix This For Me


print ("Please enter a number between 1 and 100")
n = input

if = n < 1 and n > 100:

if = (n // 2 == 0):
print (n, "is even")

if = (n // 3 == 0):
print (n, "is odd")

else:
print("You have not entered a number between 1 and 100.")

Answers

Answer:

The correction is as follows:

n = int(input("Please [tex]enter\ a[/tex] [tex]number\ between\ 1[/tex] and 100: "))

if n < 1 or n > 100:

   print("You [tex]have\ not[/tex] entered a [tex]number\ between\ 1[/tex] and 100.")

elif n % 2 == 0:

   print (n, "is even")

else:

   print (n, "is odd")

Explanation:

See attachment for explanation

True or false you cannot get a computer virus is you instal antivirus

Answers

Answer: F

Explanation: There are many ways hackers can get into your computer, and many ways can bypass an antivirus so it is False

This is true because if you instal antivirus is no way the computer get virus then

63. Name the 4 main lights & and their primary purpose.

Answers

I don’t know this !!

Write a class called MonetaryCoin that is derived from the Coin class presented in Chapter 5 (the source code for Chapter 5 examples is available via Moodle). [6 pts] Store one integer and one float in the MonetaryCoin that represent its value and weight in grams, respectively. Add a third variable of your choice (related to a coin, of course) and use self-descriptive variable names for all three variables. Pass the values to the constructor in MonetaryCoin and save them to your variables.

Answers

Answer:

Explanation:

The following Java code creates the MonetaryCoin class that extends the Coin class. It then creates three variables representing the MonetaryCoin object which are its value, weight, and coinYear. These are all passed as arguments to the constructor and saved as instance variables.

public class MonetaryCoin extends Coin {

   

   int value;

   float weight;

   int coinYear;

   

   public void MonetaryCoin(int value, float weight, int coinYear) {

       this.value = value;

       this.weight = weight;

       this.coinYear = coinYear;

   }

}

how many stages needed to have powerful amplifier?​

Answers

Power amplifier stages in a real circuit. Circuit diagram of a three stage practical audio power amplifier is shown in the figure below. Small signal transistor Q1 and its associated components form the voltage amplification stage.

Answer:

Generally you should pick an amplifier that can deliver power equal to twice the speaker's program/continuous power rating. This means that a speaker with a “nominal impedance” of 8 ohms and a program rating of 350 watts will require an amplifier that can produce 700 watts into an 8 ohm load.

The hostel in which you plan to spend the night tonight offers very interesting rates, as long as you do not arrive too late. Housekeeping finishes preparing rooms by noon, and the sooner guests arrive after noon, the less they have to pay. You are trying to build a C program that calculates your price to pay based on your arrival time. Your program will read an integer (between 0 and 12) indicating the number of hours past noon of your arrival. For example, 0 indicates a noon arrival, 1 a 1pm arrival, 12 a midnight arrival, etc. The base price is 10 dollars, and 5 dollars are added for every hour after noon. Thankfully the total is capped at 53 dollars, so you'll never have to pay more than that. Your program should print the price (an integer) you have to pay, given the input arrival time.

Answers

Answer:

Answered below

Explanation:

// Python implementation

incrementAmount = 5

basePrice = 10

price = 0

arrivalHour = int(input("Enter arrival hour 0-12: ")

if arrivalHour < 0 or arrivalHour > 12:

print ("Invalid hour")

if arrivalHour == 0:

price = basePrice

else:

price = arrivalHour * incrementAmount

totalPrice = price + basePrice

if totalPrice > 53:

totalPrice = 53

print ("Your bill is $totalPrice")

When identifying who will send a presentation, what are the two types of audiences?

Answers

Answer:

Explanation:Demographic audience analysis focuses on group memberships of audience members. Another element of audience is psychographic information, which focuses on audience attitudes, beliefs, and values. Situational analysis of the occasion, physical setting, and other factors are also critical to effective audience analysis.

Ralph and his team need to work together on a project. If they need a device that will provide shared storage with access to all team members, which of these devices would work best? *

USB Flash Drive
2 TB HDD installed on one of their computers
BD-RW installed on one of their computers
Network attached storage appliance

Answers

You will need a network attached storage appliance

Hubs connect network hosts in which configuration?

Answers

Answer:

A high availability hub is not required to enable or use the self-describing agent. You can optionally configure a high availability hub for improved availability and recovery if the hub fails. Network Layer – The network layer is responsible for creating a routing table, and based on the routing table, forwarding the input request. Some of the Devices used in the Network Layer are, Routers: A router is a switch-like device that routes/forwards data packets based on their IP addresses.

Explanation:

(hope this helps can i plz have brainlist :D hehe)

A real estate office handles 50 apartment units. When the rent is $600 per month, all the units are occupied. However, for each $40 increase in rent, one unit becomes vacant. Each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximise the profit?

What is the code for Python?

Answers

Answer:

452

Explanation:

Using a tag, set the color to green for all tags.

Answers

Answer:

<style>

p {

background-color: rgb(255, 0, 0);

}

h1 {

background-color: rgb(0, 255, 0);

}

ol {

background-color: rgb(97,51,47);

}

</style>

Explanation:

Put this at the top of your code. It should target the paragraph tag, the header h1 tag, and the Ordered List (OL) tag individually and set their background colors respectively.

It's been a while since I've done CSS so you might have to tweak the syntax a bit, but it should look something like that.

NO LINKS
write a shell script to find the sum of all integers between 100 and 200 which are divisible by 9​

Answers

Answer:

#!/usr/bin/env bash

for num in {100..200}

do

   if [ $((num % 9)) -eq 0 ]

   then

       ((sum += num))

   fi

done

echo $sum

Explanation:

The output will be 1683.

ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP​

Answers

Answer:

13.c

14.d

15.b

16.a

17.c

Explanation:

please brainleist please ☺️♨️

Which element adjusts the space around the data in each cell of a table? adjusts the space around the data in each cell of a table.

Answers

Answer:

Increase/decrease indentation

Explanation:

Answer:

(Cellpadding) is actually the correct answer.

Explanation:

Cellpadding and cellspacing are two important features of an HTML table. Cellpadding sets the space around the data in each cell. Cellspacing sets the space around each cell in the table.

What career opportunities are available within the floral industry?

Answers

Answer: The floral industry has quite an array of possible occupation pathways. You can do flower production, design, publishing, marketing, home design, engineering, retailing, commercial, research, and lots more.

Do exercises as follows:

a. Enter a whole number from keyboard, a while loop should calculate a sum of all numbers from one to that number that you entered
b. Enter a numeric score - grade of a test, your program should print a corresponding letter grade that matches the score.

For example, if you enter 89.3, the program should display "B", and if you enter 95.7, then the program displays "A"

Answers

Answer:

Explanation:

The following Java program asks the user for a number to be entered it and uses a while loop to sum up all the numbers from 1 to that one and print it to the console. Then it asks the user for a grade number and prints out the corresponding letter grade for that number.

file = open('text.txt', 'r')

total_rainfall = 0

for line in file:

   line = line.replace('\n', '')

   info = line.split(' ')

   info = [i for i in info if i != '']

   print(info[0] + " will have a total of " + info[1] + " inches of rainfall.")

   total_rainfall += int(info[1])

average = total_rainfall / 3

print("Average Rainfall will be " + str(average) + " inches")

what can a user modify on a business card using the Edit Business card in the dialog box?​

Answers

Answer: layout,image,font,background color,

Consider the following method:
public static String joinTogether(int num, String[] arr)
{
String result = "";
for (String x : arr)
{
result = result + x.substring(0, num);
}
return result;
}

The following code appears in another method in the same class:
String[] words = {"dragon", "chicken", "gorilla"};
int number = 4;
System.out.println(joinTogether(number, words));

What is printed when the code above is executed?
a. dragonchickengorilla
b. drachigor
c. dragchicgori
d. dragochickgoril
e. There is an error in the program, it does not run

Answers

Answer: b.

Explanation:

Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine object that performs the following operations:

Purchases input number of drinks Restocks input number of bottles.
Reports inventory Review the definition of "VendingMachine.cpp" by clicking on the orange arrow.
A VendingMachine's initial inventory is 20 drinks.

Ex: If the input is: 5 2
the output is: Inventory: 17 bottles

Answers

Answer:

In C++:

#include <iostream>

using namespace std;

class VendingMachine {

 public:

   int initial = 20;};

int main() {

 VendingMachine myMachine;

   int purchase, restock;

   cout<<"Purchase: ";  cin>>purchase;

   cout<<"Restock: ";  cin>>restock;

   myMachine.initial-=(purchase-restock);

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

Explanation:

This question is incomplete, as the original source file is not given; so, I write another from scratch.

This creates the VendingMachine class

class VendingMachine {

This represents the access specifier

 public:

This initializes the inventory to 20

   int initial = 20;};

The main begins here

int main() {

This creates the object of the VendingMachine class

 VendingMachine myMachine;

This declares the purchase and the restock

   int purchase, restock;

This gets input for purchase

   cout<<"Purchase: ";  cin>>purchase;

This gets input for restock

   cout<<"Restock: ";  cin>>restock;

This calculates the new inventory

   myMachine.initial-=(purchase-restock);

This prints the new inventory

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

How SPARQL 1.1 has advantage over SPARQL 1.0??​

Answers

SPARQL 1.0 became an official W3C Recommendation on 15 January 2008. On 26 March 2013, the SPARQL Working Group has produced a new W3C Recommendation SPARQL 1.1 that introduces more features to 2008 version. SPARQL is emerging as the de facto RDF query language. Prior to SPARQL, there were some other popular RDF query languages, such as RQL, SeRQL, TRIPLE, RDQL, and so on. The comprehensive...

What is the molar mass of AuCI2

Answers

Answer:267.8726

Explanation:

Which are characteristics of Outlook 2016 email? Check all that apply.

The Inbox is the first folder you will view by default

While composing an email, it appears in the Sent folder.

Unread messages have a bold blue bar next to them.

Messages will be marked as "read" when you view them in the Reading Pane.

The bold blue bar will disappear when a message has been read.

Answers

Answer: The Inbox is the first folder you will view by default.

Unread messages have a bold blue bar next to them.

Messages will be marked as "read" when you view them in the Reading Pane.

The bold blue bar will disappear when a message has been read

Explanation:

The characteristics of the Outlook 2016 email include:

• The Inbox is the first folder you will view by default.

• Unread messages have a bold blue bar next to them.

• Messages will be marked as "read" when you view them in the Reading Pane.

• The bold blue bar will disappear when a message has been read.

It should be noted that while composing an email in Outlook 2016 email, it doesn't appear in the Sent folder, therefore option B is wrong. Other options given are correct.

Answer:

1

3

4

5

Explanation:

just did it on edge

Which of the following is not part of the four ways you can avoid problems with email communication?
a.
Be brief.
b.
Proofread your message.
C.
Reply right away after you get an email.
d.
Seek other ways to relay your message

Answers

Answer:

d is the correct answer for this problem

What is one advantage of using the Option Group Control for data validation? It works best with fields that use the date data type. It alerts the user when the database is about to close. It applies to numeric fields only, eliminating text errors. The data entry is restricted to specific fields, reducing errors.

Answers

Answer:

The Data Entry is Restricted to Specific Fields, Reducing Errors

Explanation:

Answer:

D

Explanation:

edge2021

Create a C++ program to input a list of positive numbers
from the keyboard and find the average. The list is terminated with the value -99 (Sentinel
input value).​

Answers

Answer:

can you help me please? https://brainly.com/question/23169922

Explanation:

Other Questions
Maddy has planned a short informational article for her neighborhood website on how people can safely live side by side with the wild animals that still inhabit in the area. These are the notes shes made for her first sentence.Intro: wild animals are natives; how to live with themAs Maddy drafts her article, which opening sentence should she use to BEST engage her readers while clearly introducing her topic? A. Read on to learn how we can safely share our neighborhood with our wild animal friends! B. This article will tell you how to safely live alongside the wildlife native to our neighborhood. C. Theres no need to be afraid of the coyotes, skunks, opossums, and raccoons that visit your garden; just follow these simple tips. D. It can be quite an unpleasant surprise to open the back door and come face to face with a grouchy raccoon, but there are a few simple steps you can take to coexist safely with our native wildlife. Which is a universal theme from the passage? A. the power of love B. the ill effects of unchecked ambition C. the abuse of authority D. the quest for knowledge and truth what is the equation of the line that passes through the point (3,4) and has a slope of -2/3 Look at the picture and tell me a short story (5-6 sentences) about what happened to the girl. Penelope is going to the carnival to ride the rides. It costs $20 to get into the carnival and ride tickets are $0.50 each. How many rides did Penelope get to ride if she spends $35 in all. pls answer right now its going to be 12:00 where I live and after that I cant turn anymore assignments in to my teacher! ( I dont wanna fail, I dont think any of us do either lol)Make a T chart identifying 4 aggressive actions by both the U.S. and the Soviet Union in the post-war era.(u dont actually have to make a t chart, just tell me ^^) 4. Who sends for Hamlet after the play?A. ClaudiusB. HorationC. GertrudeD. Ophelia I need help!!!!! Its urgent Rewrite the phrases below to form a complete sentence (or sentences) without fragments or run-ons: while riding to school Freda had to change her tire it was flat from running over a nail. PLEASE HELP NOW!!!fill in "always", "sometimes", or "never" to make a correct statement. if you add a multiple of 4 and a multiple of 7, the sum is ____ a multiple of 7 Can someone help find what C is? IM really struggling on these math problems can anyone help and help me how to show the WORK! PLEASE 6. A radio station that carries news, features, and editorial opinions aboutyour area is which type of public? *A) financiarOB) mediaC) citizen-actionD) localE) government Help, its urgent!!!!!!!!!!!!!!!!!!! CAN SOMEONE TELL ME THE NOTES PLEASE ON CLARINET How does population growth Affect mineral resource extractiona. Higher population lower mineral extractionb. Does not effect extractionsc. Higher population more mineral extrationd. Lower population more mineral extraction Wahoo Inc., a calendar year taxpayer, leases equipment to a customer for $4,500 monthly rent. On November 27, 2020, Wahoo received a $36,000 rent payment for the eight-month period beginning on December 1. Required: How much of the payment must Wahoo recognize as 2020 taxable income assuming that Wahoo uses the cash method of accounting for tax purposes What is the median of the following set? 28, 45, 12, 34, 36, 45, 19, 20 28 34 3135 A baker makes a total of 5 loaves of bread in 2.5 hours. At that rate, how many loaves of bread could the baker make in 7 hours? Explain. Enter the correct answers in the boxes. ? loaves5 loaves2.5 hours = ? loaves per hour 7 hours = ? Can someone tell me what ill intent mean ? like for a person taking a oath ...