Adam is so good at playing arcade games that he will win at every game he plays. One fine day as he was walking on the street, he discovers an arcade store that pays real cash for every game that the player wins - however, the store will only pay out once per game. The store has some games for which they will pay winners, and each game has its own completion time and payout rate. Thrilled at the prospect of earning money for his talent, Adam walked into the store only to realize that the store closes in 2 hours (exactly 120 minutes). Knowing that he cannot play all the games in that time, he decides to pick the games that maximize his earnings
Sample game board at the arcade GAME COMPLETION TIME (in minutes) PAYOUT RATE Pac-man 90 400 Mortal Kombat 10 30 Super Tetris 25 100 Pump it Up 10 40 Street Fighter II 90 450 Speed Racer 10 40
An acceptable solution is the one where it still picks the best earnings even when the list of games or completion times or payout rates change.
Question:
Write code in Java/Scala/Python to help Adam pick the sequence(s) of games that earn him the most money?.
Then, assume you have a variable list of games and their payout rates. What is the best way to pick the games that earn you the most?
Input Explanation
The first line of input is always an integer denoting many lines to read after the first line. In our sample test case, we have 6 in the first line and 6 lines after the first line, each having a game, completion_time and payout_rate.
In each data line, the game, completion_time and payout_rate are separated by a ','(comma).
The games board may change but the store still closes in 120 minutes.
Input
6
Pac-man,80,400
Mortal Kombat,10,30
Super Tetris,25,100
Pump it Up,10,40
Street Fighter II,90,450
Speed Racer,10,40
Output Explanation
Print the game names that earn him the most into the standard output in alphabetical order
Output
Mortal Kombat
Pump it Up
Speed Racer
Street Fighter II

Answers

Answer 1

Answer:

ask it to ur teacher boiiiiii


Related Questions

The Register Set that stores temporary results related to the computations are

Answers

Answer:

ooh Bhai sahab

Explanation:

ooh Bhai Yaar Mata tyo gari sanisanisanisani

When an organizatin needs a program to do a very specific job, it mayhire someone to write _____ software.​

Answers

Code sofware your welcome

The U.S. military's standard for computer security is known as
DCS-3000.
TEMPEST.
Daubert standard.
Carnivore.

Answers

Answer:

TEMPEST.

Explanation:

TEMPEST is an acronym for Telecommunications Electronics Materials Protected from Emanating Spurious Transmissions and it is a secret (classified) project of the government of the United States of America that originated with its military in the 1960s based on the study of security with respect to telecommunication devices emitting Electromagnetic Radiation (EMR).

Hence, the U.S. military standard for computer security is known as TEMPEST.

The main purpose of the Telecommunications Electronics Materials Protected from Emanating Spurious Transmissions (TEMPEST) is to prevent the theft, compromise or interception of informations that are being transmitted on various telecommunications devices through the use of Electromagnetic Radiation (EMR).

dumb question but...for christmas should i get the animal crossing switch or the forrnite one which has a lot and a colored doc? ​

Answers

Answer:

Its your decision but I would go with animal crossing!

Which feature should be used prior to finalizing a presentation to ensure that audience members with disabilities will be able to understand the message that a presenter is trying to get across?

Compatibility Checker
Accessibility Checker
Insights
AutoCorrect

Answers

Answer:

Accessibility Checker

Answer:

answer is accessibility checker or B on edge

A junior account manager owns an account and creates a new opportunity to manage a complex deal. She needs the help of the product specialist and solution engineer.
Given the size of this deal, she knows the account is likely to be reassigned to a senior Account manager in the near future.

What is the optimal way for the Junior Account manager to share the opportunity, given the private sharing model?

Manual share on the account
Opportunity Team
Manual share on the opportunity
Create owner-based sharing rule

Answers

Answer:  I'd say She should share by Email, Text, or call.

I WILL MARK BRAINLEST FOR THAT FIRST ANSWEr that is CORRECT!!!!!!!!!!!!
Which option lists the correct steps to apply a style?

1 Select the text, click the Home tab, and in the Styles Gallery, click to select a style to apply.
2 Select the text, click the Insert tab, and in the Formatting Gallery, click to select a style to apply.
3 Select the text, click the Home tab, and in the Font group, select a font, font size, and type to apply.
3 All of the options listed above are correct.

Answers

Answer:

Explanation:

Maybe all of the options listed above are correct

2or3 I would reckon hope this helps

Why is it important to proofread your work even after using the Spelling and Grammar tool?

To make sure you have the correct word count
To make sure your document layout is correct
To print your document correctly
To catch mistakes the spelling and grammar check will not catch

Answers

Answer:

To catch mistakes the spelling and grammar check will not catch.

Explanation:

Grammar and spelling check is not always perfect!

It is the 4th one, to catch mistakes the spelling and grammar check will not catch.

how do you evaluate the use of the navigational aids and technology

Answers

Explanation:

A navigational aid or AtoN or navaid is any sort of marker that guides to mark safe waters and also help mariners in determining their position with respect to land or any navigational hazard or hidden danger. Traditionally aids to navigation have been physical aids such as lighthouses, buoys and beacons

Below is an ERD showing the 1:M relationship between Department and Employee entity types. This relationship is modeled as a Department JSON object as:Department: deptID,deptName,deptRoom,{deptPhone},{employee: empID, empName,empPhone,{empEmail}}Where {} indicates multi-valued.Part 1: Open the mydb database we created earlier and create a new department table with two fields:documentid (as an integer field) Jsondocument (as a JSON field)And add around 3 departments and each with 2 or 3 employees.Part 2: Use SQL to answer the following questions:Q1: Select all the records in the table.Q2: List the department names with their phones.Q3: A query to show the deptName and number of employees of the department.Q4: A query to show all the employees of a department of your choice using deptName as criteria.USE MYSQL

Answers

Answer:

hi

Explanation:

Before we can use the PS Session to remotely manage a target system, there are certain tasks we must perform, such as create exception in Firewall and enable WinRM. PowerShell has a cmdlet that can perform all of these tasks at once.
A. Start-PSRemoting.B. Enable-PSRemoting.C. Enable-PSSession.D. Get-PSRemoting.

Answers

Answer:

B. Enable-PSRemoting.

Explanation:

Powershell is a command-line interface software used in windows operating system to manage the operations of the system. It is similar to the bash terminal scripting language in Linux and has some of the command prompt features.

The PS session is used to manage remote systems connected wirelessly to the administrative system. The command used to enable this process is "Enable-PSRemoting".

describe the impact of technology in your life . how does it affects your human relations with other people .​

Answers

Answer:

Technology has a huge impact on my life, it has helped me visit places, talk to people, and captivate me. For example, using a car I have visited my friends and family. This is making a stronger bond with those people I visited. And, using my phone I can call and text people. this has led to making lots of friends and stronger relationships. Technology is important for human contact unless you want to ride carriages around the streets.

Which of the statements below does not describe how to print a document?
O Click on Print in the system tray.
Click on Print from the dialog box,
Select Print from the File menu.
O Click on the Print icon at the top of the screen.

Answers

Answer: system tray is what carries the papers

Explanation:

Answer:

yeeeeeeer

wwww

w

w

w

w

w

w

w

Explanation:

wwww

If there is a need to write code in order to help the player move through the game, which team member would create this code?

Answers

Answer:

the main programmer

Explanation:

or the person who studies the algorithm and writes the code

hence, the programmer or main programmer

A software engineer is somebody who develops, creates, maintains, tests, and evaluates software using principles of software development. The term "programmer" is sometimes used as a synonym, although it may also imply a lack of engineering degrees or abilities.

Software developers, sometimes known as software architects, collaborate closely with clients to plan and develop software. Most software engineers do not start coding, they do establish a strong foundation in programming skills in order to communicate successfully with programmers.It must cover the full software development, commencing with only an analysis of the needs and ending with the design, test, and development of the technology to suit these goals.

Therefore, the answer is "Software Engineer".

Learn more:

brainly.com/question/23661471

Which Excel function or tool will you use to display the cells that are referred to by a formula in the selected cell

Answers

Answer:

Trace Precedent

Explanation:

Trace Precedent is a Microsoft Excel tool that is mostly used in auditing work to evaluate the connection or linkage between the cells in a spreadsheet. It is used to display the cells that are referred to by a formula in the selected cell. This is to locate the basis of an error in knowing how the formulas are adapted.

This can be done by clicking on the Formulas tab, then click on Formulas Auditing, then click on Trace Precedents.

Hence, in this case, the correct answer is TRACE PRECEDENTS.

For this exercise, you are going to write a recursive function that counts down to a Blastoff!
Your recursive function will not actually print. It will return a String that can be printed from the main function. Each recursive call will add on to that string.
In your main function, prompt the user for a starting value, then print the results.
Sample Output
Please enter a number to start:
5
5 4 3 2 1 Blastoff!
import java.util.Scanner;
public class Countdown
{
public static void main(String[] args)
{
// Start here
}
public static String countdown(int number)
{
// Base case - return Blastoff!
// Recursive call
}
}

Answers

Answer:

import java.util.Scanner;

public class Countdown {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

int n;

System.out.print("Please enter a number to start: ");

n = input.nextInt();

System.out.print(countdown(n));

}

public static String countdown(int number) {

if(number>0) {     return " "+number+countdown(number-1);    }

   else    {        return " Blastoff!";    }

}

}

Explanation:

The main method begins here

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

This declares an integer variable n

int n;

This prompts user for a number

System.out.print("Please enter a number to start: ");

This gets user input n

n = input.nextInt();

This calls the countdown function

System.out.print(countdown(n));

}

The countdown function begins here

public static String countdown(int number) {

This is the base case where input number is greater than 0

if(number>0) {     return " "+number+countdown(number-1);    }

This ends the recursion

   else    {        return " Blastoff!";    }

}

GIVEING BRAINLIST TROLL ANSWERS GET REPORTED Don't worry about making a vid 100 POINTS IF U DONT KNOW DONT ANSWER UNIT 2
Lab

Each lab includes instructions or questions requiring the use of the internet to complete the task. Please use complete sentences and appropriate headings where applicable. If included, refer to the rubric below to see how you will be graded. Note that links open a new browser window.


Submit your work as a file attachment using the dropbox tool.


This lab is worth 10 points.


UNIT 2 LAB

Chemistry Matters

Subjects that we learn in school can lead us down all kinds of different career pathways. In these three cases, watch how an interest in chemistry helped some people find the perfect career. Note how each of these chemistry enthusiasts ended up in different career clusters.


Career Connections: Food Scientist


Career Connections: Chemical Engineer


Career Connections: Chemist


Now imagine that you are a reporter. Your local high school has decided to do away with chemistry class because no one seems to want to take it. You have been asked to do a five-minute news segment on the ways that keeping the chemistry class can positively impact the community. To prepare for the segment, watch the above videos and consult the Bureau of Labor Statistics’ Occupational Outlook Handbook.


In your video, answer the following questions:


How did chemistry prepare each of these people for their career?

What opportunities was each person able to take advantage of as a result of their background in chemistry?

What is the career outlook for each of these careers?

How you get into the field (Hint: See the “How to become…” section of the Occupational Outlook Handbook)

Typical pay (Hint: See the “Pay” section of the Occupational Outlook Handbook)

How fast this career is expected to grow (Hint: See the “Job Outlook” section of the Occupational Outlook Handbook)

How does each person’s work benefit the community? (This will help people understand the importance of offering chemistry to those who are still in school.)

It’s up to you to convince your viewers that chemistry can be useful in planning their career paths! Create and upload a five-minute video of your news segment.


TABLE Grading Rubric

Video Mechanics Video Content

Full Credit

Student has submitted a video that is clear and five minutes long.


Student has discussed all three careers and answered all four questions.


Partial Credit

Student has submitted a video that is unclear OR that is less than five minutes long.


Student has discussed one or two of the careers OR student has not adequately answered all four questions for each career.


Little Credit

Student has not submitted a video OR student’s video is unclear.


Student has not discussed the three careers OR student has not answered the questions.


?

Answers

How did chemistry prepare each of these people for their career?

All of their jobs are related with some form of Chemistry. Food Scientists work with different foods, and working on making better ones. Chemical Engineers focus on finding new and innovative uses for different elements. And Chemists focus on different breakthroughs in the periodic table. It all came from the first Chemistry Course they took in high school.

What opportunities was each person able to take advantage of as a result of their background in chemistry?

As said previously, they all studied chemistry from College (Maybe even High School.) If they never took these courses, they would be behind and it would be much harder for them to pursue any of these careers.

What is the career outlook for each of these careers?

All of these careers make $72,610  per year, as of 2015. This is a whole $6,050 per month, $1,512 a week. Plenty of influential people were Chemists, included Alfred Nobel, Marie Curie, and Louis Pasteur.

How you get into the field (Hint: See the “How to become…” section of the Occupational Outlook Handbook)

To enter the field, you need to start studying Chemistry. There are many paths of Chemistry, such as Biochemistry and Chemistry. These each branch out in several different ways. Think of it like a tree.

Typical pay (Hint: See the “Pay” section of the Occupational Outlook Handbook)

As said in an earlier segment, the average Chemist makes $72,610 per year, as of 2015, and the average Chemical Engineer makes up to 90k per year.

How fast this career is expected to grow (Hint: See the “Job Outlook” section of the Occupational Outlook Handbook)

This is a career that will always be needed. Discovering new elements for the periodic table is extremely important. No matter where we live, whether in America, in Europe, even on another planet, this job will always be a necessity.

How does each person’s work benefit the community? (This will help people understand the importance of offering chemistry to those who are still in school.)

Each person's work is extremely beneficial, because without this branch, and every chemist's work, we would not have:

1. Clean Water

2. Gasoline

3. Antibiotics or Vaccines

4. Electricity

5. Plastic

And many other things would not exist.

Write an algorithm and draw a flowchart to enter the length and width of any room then check if length and width are equal find area and circumference of the square room. Otherwise, find the area and circumference of the rectangle room.

Answers

Answer: i have no clue

Explanation:

Explain the consequences of using bits to represent data.

Answers

Answer:

Each description of a PC needs to clarify how the PC handles data: numbers, text, pictures, sound, films, directions.

Using bits to represent data implies that the computer has to use a lot of memory since every character has a group of bits representing it.

The PC is an electronic gadget. Every one of its wires can either convey electric flow or... not convey current. Thus, similar to a light switch, it sees just two states. Incidentally, this is sufficient to make the entire thought work. Indeed, any framework that can speak to in any event two states can speak to data. Take, for instance, the Morse code that is utilized in telecommunication. Morse is a sound transmission framework that can convey a short signal (spoke to by a dab) and a long beeeeeep (spoke to by a scramble). Any letter or number can be spoken to by a mix of these two images. Snap here to see a Morse interpreter.

Explanation:

Essentially with PCs. To speak to a number, we utilize the parallel number-crunching framework, not the decimal number framework that we use in regular day to day existence. In the double framework, any number can be spoken to utilizing just two images, 0 and 1. (Morse is nearly, yet not exactly (because of the delays between letters) a paired framework. A framework firmly identified with Morse is utilized by PCs to do information pressure (more about this later).

A bit  which is also called a binary digit is the smallest unit of data. A combination of two or more bits is regarded as bytes.

A bit is usually processed by the electrical parts of a computer system. Internet speed is measured in bits and it reflects two opposite commands which could be either yes/no , on/off etc.

The consequence of using bit to represent data is due to the advantages which includes:

Easy computation : Due to the simplicity and it involving less complex calculations, the bits gives room for less errors.

Ease of Coding: The bits is the simplest and smallest unit of data which makes it less stressful when used in coding operations.

Ease of Operation: Devices which operates with the bits system makes it easier for humans to operate when compared to other complex forms.

Read more on https://brainly.com/question/19667078

Proper answer=brainliest

Answers

Answer:

hehe

Explanation:

Mary is writing an article about the animal kingdom. She wants to place an image below the text. Which menu should Mary choose for this
purpose?
Mary needs to choose the _________
menu in order to place the text in a desired fashion around the image

Plato btw

Answers

Answer:

she needs to choose the insert menu

Amber is working as an intern at a local law firm to learn all she can about the field of law. She is having a difficult time completing her work on time because she doesn't understand everything. What can Amber do?

Ask her manager for help.
Look for another internship.
Look up information online.
Stay late to finish the work.

Answers

Answer:

i think c

Explanation:

not sure

Answer:

A . ask her manager for help.

Explanation:

Consider the following code:
a = 3
b = 2
print (a ** b)
What is output?
A.9
B.8
C.1
D.6

Answers

Answer:

C

Explanation:

*i'm really bad at explaining* the letters is going up like- a b c d e f g and the numbers are going down like- 3 2 1 0

Answer:

A. 9

Explanation:

the symbol (**) means to put to the exponent to. So in this case, 3**2 is the same as 3^2 or 3 squared, 3x3=9. So that is the answer.

which port is used for RDP

Answers

Answer:

RDP servers are built into Windows operating systems; an RDP server for Unix and OS X also exists. By default, the server listens on TCP port 3389 and UDP port 3389. Microsoft currently refers to their official RDP client software as Remote Desktop Connection, formerly "Terminal Services Client".

Explanation:

Usually using TCP port 3389, the Remote Desktop Technology (RDP) is a Microsoft-exclusive protocol that permits remote connections to other computers.

What is RDP?

RDP stands for remote desktop protocol. It is defined as a proprietary protocol created by Microsoft that offers a graphical user interface for connecting to another machine over a network connection Using the Remote Desktop Protocol, remote users can access and utilize Windows on a device in a different location (RDP).

The server often listens on both UDP port 3389 and TCP port 3389. It makes use of port 443, which employs an SSL tunnel to send data. In order to increase network security, port 3389, which is used for Remote Desktop connections, is restricted.

Thus, usually using TCP port 3389, the Remote Desktop Technology (RDP) is a Microsoft-exclusive protocol that permits remote connections to other computers.

To learn more about RDP, refer to the link below:

https://brainly.com/question/3895875

#SPJ2

Page
U what is a common language that computers use
to talk with one another on- a network?
a. client b. Adapter
c. protocol d. operating
System​

Answers

I think it’s protocol
The computers use a set of protocols. Therefore, the answer is C. Protocol. I hope this helps.

April is worried that she is not a "good speller" so she plans to let the spelling checker correct all her mistakes. What would be the most helpful advice for April?​

Answers

Answer:

Likely, the best option would be to use the "auto-correct" function found on Microsoft Word or Google Docs. There are other forms of spell-checking such as Grammarly or by using a dictionary.

Explanation:

They have tools meant for checking for grammatical errors and can be used to better enhance your overall writing.

explain the major innavotions made from the establishment of abacus​

Answers

Answer:

The major innovations made from the establishment of abacus​ is explained below in details.

Explanation:

Industrial Age - 1600

John Napier, a Scottish aristocrat, and statesman dedicated much of his relaxation time to the knowledge of mathematics. He was particularly involved in devising ways to aid calculations. His greatest offering was the discovery of logarithms. He recorded logarithmic measures on a set of 10 boarded rods and thus was capable to do multiplication and division by equaling up numbers on the sticks. These enhanced identified as Napier’s Bones.

If any one has mincraft on ps4 bedrock we can finish building a BIG city world all we need to put is a shop and money dispensers thx

Answers

Answer:

cool i want a ps5

Explanation:

C++

Write a program that reads in at most 100 integers that are between 1 and 100 and counts the occurrence of each number in the list. Assume the list ends when a zero is inputted.

Answers

Answer:

#include <iostream>

#include <map>  

using namespace std;

int main()

{

   map<int, int> numbers;

   cout << "Enter numbers, 0 to finish" << endl;

   int number;

   while (true) {

       cin >> number;

       if (number == 0) break;

       numbers[number]++;

   }

   for (pair<int, int> element : numbers) {

       std::cout << element.first << ": occurs " << element.second << " times" << std::endl;

   }

}

Explanation:

One trick used here is not to keep track of the numbers themselves (since that is not a requirement), but start counting their occurrances right away. An STL map< > is a more suitable construct than a vector< >.

The New Slide command on the Ribbon lets you choose ________.
Question 3 options:

slide dimensions

print settings

slide layouts

transitions

Answers

Answer: slide layouts

Explanation:

Just took the test hope this helps ❤️✨

The New Slide command on the Ribbon lets you choose slide layouts. Thus, option C is correct.

What is  New Slide?

Make your arrangement selection in the New Slide message box for your new presentation. Study slide layouts in more detail. Choose Add Slide. That new slide has now been added, allowing you to start adding information by clicking within a placeholder.

You may select slide patterns using Ribbon's New Slide command. To have the new slide display just below the selected slide there in the slide window, click on that slide. On the Insert tab, in the Slides grouping, choose the New Slide option.

The fresh slide needs to be displayed beneath the current slide. Select the initial of the two rolls and initiatives Slide to insert a new slideshow seen between existing ones. Therefore, option C is the correct option.

Learn more about  New Slide, here:

https://brainly.com/question/1372598

#SPJ2

Other Questions
Which statement identifies a healthy way to improve nutrition in a diet? A phosphodiester bond is used to:A. Join glycerol to fatty acidsB. Join two nucleotides into a polynucleotide C. Join two glucose molecules D. Join two amino acids into a polypeptide Can S1 help pls and ty In the first paragraph, what does ingenious mean 1. Provide two examples of why coral reefs are important ecosystems on Earth.2. Some corals in the warm pools off Ofu Island can withstand temperatures of 32 to 34 C without bleaching. So, the researchers set up a controlled laboratory experiment to try to determine why these corals survive in such excessive heat. With regard to the experimental design, provide two reasons why Dr. Palumbi devised a standardized test for the corals. 10 points6. Which passage from the text most strongly supports the answer toQuestion 5? *A. Mrs. Song never figured out which neighbor blabbed."B. Mrs. Song hadn't felt any pity for the woman. 'The traitor probably deserved whatshe got,' she'd said to herself."C. "When he returned home, he got a tongue-lashing from his wife that was almostharsher than the interrogation. It was the worst fight of their marriage."D. "Chang-bo's offhand remark was precisely the kind of thing that could result indeportation to a prison camp in the mountains if the offender didn't have a solidposition in the community." Grace has two part time jobs. At one job, she worksas a cashier and makes $8 per hour. At the secondjob, she works as a tutor and makes $12 per hour.One week she worked 6 hours and made $56. Whichof the following systems could be used to find thenumber of hours she worked at each job? Twenty-four halls were rented all over the Lower East Side. Each shop was to have its own meeting room, with separate rooms for Yiddish, Italian, and English groups wherever possible.Which historical detail can best help clarify a readers understanding of the information in the excerpt?Immigrant factory workers who spoke the same language were separated from each other at work.Immigrant factory workers who spoke the same language were known to talk too much at work.Immigrant factory workers had to pay rent for their chairs and the supplies they needed at work.Immigrant factory workers were crowded into unsafe buildings with locked doors and fire escapes Explain the compromises that helped shape the constitution!! GIVING BRANLIEST PLEASE HELP HELP IM IN CLASS DOING IT RIGHT NOW The absolute value of any number is always positive. True False 3What is the decimal equivalent of 3/9? (5 points)0.20.3.40.5 can someone help me ! "Political risk is the possibility that political events in a particular country will influence the economic well-being of a firm operating in that country. Multinational firms need to anticipate and manage political risk. In order to do that, the firm must understand the differing types of risks and their likelihood of occurrence. The political risks facing a multinational firm can be categorized as" Im asking for you're help Citizen I have a question for you Me Jeff and Riley were married for 35 years when Riley died in July of 2016. The couple have two children who are 6 and 10 years old. Which of the following applies to Jeff regarding filing status?a) Jeff can file using any status he wants for the next 3 yearsb) Since Jeffs spouse died during the year, he may be entitled to the special qualifying widower with dependent child benefits for tax year 2017 and 2018c) Since Jeffs spouse died during the year, he may be entitled to the special qualifying widower with dependent child benefits for tax year 2016 onlyd) Since Jeffs spouse died during the year, he may be entitled to the special qualifying widower with dependent child benefits for tax year 2017 only A liquid is 45C. The temperature needs to be reduced by 3/8 of the current value. What does the new temperature need to be? plssss help asappppp Rogers friends are trying to get him to smoke cigarettes raj knows how about smoking will be for his health what type of barrier is Raj facing the situation lb = 64 oz Helppppppppppppp me[tex]5[/tex] This vegetation zone is dry and has little grassland. Plants that grow there provide barely enough food for people and animals.mountainssaheltropical forestgrassland