For our homework we have to listen__ a podcast​

Answers

Answer 1

Answer:

For our homework we have to listen to a podcast


Related Questions

You are working with a client who wants customers to be able to tap an image and see pricing and availability. As you are building the code in Java, what will you be using?


graphical user interface

icon public use

graphical public use

icon user interface

Answers

Answer:

A. Graphical user interface

Explanation:

In Java the graphical user interface is what manages interaction with images.

Answer: A.)

Explanation:

The answer is A because

I was born to rule the world

And I almost achieved that goal

(Giovanni!)

But my Pokémon, the mighty Mewtwo,

Had more power than I could control

(Giovanni!)

Still he inspired this mechanical marvel,

Which learns and returns each attack

(Giovanni!)

My MechaMew2, the ultimate weapon,

Will tell them Giovanni is back!

There'll be world domination,

Complete obliteration

Of all who now defy me.

Let the universe prepare,

Good Pokémon beware,

You fools shall not deny me!

Now go, go, go, go!

It will all be mine,

Power so divine

I'll tell the sun to shine

On only me!

It will all be mine,

Till the end of time

When this perfect crime

Makes history

Team Rocket! This is our destiny!

Listen up, you scheming fools,

No excuses, and no more lies.

(Giovanni!)

You've heard my most ingenious plan,

I demand the ultimate prize

(Giovanni!)

Now bring me the yellow Pokémon

And bear witness as I speak

(Giovanni!)

I shall possess the awesome power

In Pikachu's rosy cheeks!

There'll be world domination,

Complete obliteration

Of all who now defy me.

Let the universe prepare,

Good Pokémon beware,

You fools shall not deny me!

Now go, go, go, go!

It will all be mine,

Power so divine

I'll tell the sun to shine

On only me!

It will all be mine,

Till the end of time

When this perfect crime

Makes history

Team Rocket! This is our destiny!

To protect the world from devastation

To unite all peoples within our nation

To denounce the evils of truth and love

To extend our reach to the stars above

Jessie!

James!

There'll be total devastation,

Pure annihilation

Or absolute surrender.

I'll have limitless power,

This is our finest hour

Now go, go, go, go!

Snippet 1: check_file_permissions.c #include
1
#include
#include
int main (int argc, char* argv[])
{ char* filepath = argv[1];
int returnval;
// Check file existence returnval = access (filepath, F_OK);
if (returnval == 0) printf ("\n %s exists\n", filepath);
else { if (errno == ENOENT) printf ("%s does not exist\n", filepath);
else if (errno == EACCES) printf ("%s is not accessible\n", filepath);
return 0; }
// Check read access ...
// Check write access ...
return 0;
}
0.
(a) Extend code snippet 1 to check for read and write access permissions of a given file
(b) Write a C program where open system call creates a new file (say, destination.txt) and then opens it. (Hint: use the bitwise OR flag)
1. UNIX cat command has three functions with regard to text files: displaying them, combining copies of them and creating new ones.
Write a C program to implement a command called displaycontent that takes a (text) file name as argument and display its contents. Report an appropriate message if the file does not exist or can’t be opened (i.e. the file doesn’t have read permission). You are to use open(), read(), write() and close() system calls.
NOTE: Name your executable file as displaycontent and execute your program as ./displaycontent file_name
2. The cp command copies the source file specified by the SourceFile parameter to the destination file specified by the DestinationFile parameter.
Write a C program that mimics the cp command using open() system call to open source.txt file in read-only mode and copy the contents of it to destination.txt using read() and write() system calls.
3. Repeat part 2 (by writing a new C program) as per the following procedure:
(a) Read the next 100 characters from source.txt, and among characters read, replace each character ’1’ with character ’A’ and all characters are then written in destination.txt
(b) Write characters "XYZ" into file destination.txt
(c) Repeat the previous steps until the end of file source.txt. The last read step may not have 100 characters.

Answers

Answer:

I don't know  you should figure that out good luck

Explanation:

good luck

What is IP address ?explain​

Answers

Answer:

An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network.

Explanation:

IP addresses provide a way of doing so and form an essential part of how the internet works.

Answer: An Internet Protocol address is a number which is unique to. each device connected to the label. It is used for identification and location.  

Explanation:

Write a program that reads a file called 'test.txt' and prints out the contents on the screen after removing all spaces and newlines. Punctuations will be preserved. For example, if 'test.txt' contains: This is a test file, for chapter 06. This a new line in the file! Then, your program's output will show: Thisisatestfile,forchapter06.Thisanewlineinthefile! Hint: Consider using the 'strip()' and 'replace()' functions.

Answers

Answer:

I don't know  you should figure that out good luck

Explanation:

good luck

What two devices in a computer are black boxes

Answers

Answer:

the hdmi and hardrive

Explanation:

an algorithm to display multiplication table a number up to 12​

Answers

Explanation:

Explanation:They are

Explanation:They are 1) start the process

Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed

Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 10

Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T

Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for

Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for6) Stop the process

Write a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first five letters of the last name, followed by the first letter of the first name, and then the last two digits of the number (use the % operator). If the last name has less than five letters, then use all letters of the last name. Hint: Use the to_string() function to convert numerical data to a string.

Answers

Answer:

In C++:

#include <iostream>

#include <string>

#include <sstream>

using namespace std;

int main(){

   string lname, fname,stringnum;    int num; string login, pwd;

   cout<<"Last Name: ";    cin>>lname;

   cout<<"First Name: ";    cin>>fname;

   cout<<"Four-digit integer: ";    cin>>num;

   stringnum = to_string(num).substr(0,4);

   stringstream geek(stringnum);    geek>>num;

   num = num%100;

   pwd = to_string(num);

   if(lname.length()<5){ login = lname+fname.substr(0,1);    }

   else{ login = lname.substr(0,5)+fname.substr(0,1);    }

   cout<<"Login Name: "<<login<<endl;

   cout<<"Password: "<<pwd<<endl;

   return 0;

}

Explanation:

This declares all necessary variables

   string lname, fname,stringnum;    int num;     string login, pwd;

This prompts the user for last name

   cout<<"Last Name: ";    cin>>lname;

This prompts the user for first name

   cout<<"First Name: ";    cin>>fname;

This prompts the user for a four digit integer

   cout<<"Four-digit integer: ";    cin>>num;

This converts the input number to string and gets only the first four integer

   stringnum = to_string(num).substr(0,4);

This converts the string back to an integer

   stringstream geek(stringnum);    geek>>num;

This gets the last two of the four digit integer

   num = num%100;

This gets the password of the user

  pwd = to_string(num);

This gets the login name of the user.

This is executed if the length of the first name is less than 5

   if(lname.length()<5){ login = lname+fname.substr(0,1);    }

This is executed if otherwise

   else{ login = lname.substr(0,5)+fname.substr(0,1);    }

This prints the login name

   cout<<"Login Name: "<<login<<endl;

This prints the password

   cout<<"Password: "<<pwd<<endl;

Suppose we are now working with memory words of length 8. We have already calculated that we need 4 check bits, and the length of all codewords will be 12. We now receive the following code word: 0 1 0 1 1 1 0 0 1 1 1 1 Is this a legal codeword, assuming even parity? If not, where is the error?

Answers

Answer:

12

Explanation:

and it is also an error

a technique for printing text images or pattern which originated in china as a method for printing on paper​

Answers

Answer:

Woodblock printing or block printing is a technique for printing text, images or patterns used widely throughout East Asia and originating in China in antiquity as a method of printing on textiles and later paper. As a method of printing on cloth, the earliest surviving examples from China date to before 220 AD.

how are keyboards applied in the real world

Answers

Keyboards are used to type on electronics in the real world.

how can you best explain server side caching with web pages​

Answers

Answer:

Server side web caching typically involves utilizing a web proxy which retains web responses from the web servers it sits in front of, effectively reducing their load and latency.

Explanation:

what is the use of printer​

Answers

Answer:

To print stuff

Explanation:

Answer:

well um

Explanation:

ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

to print things (⌐■_■)

Given the mass of an airplane, the amount of forward force produced by its propellers, and the mass of the TWO gliders it is towing (airplane connected to first glider and the first glider is connected to the second glider), calculate the resulting tension on each cable connecting the aircraft and the acceleration of the glider. Vertical forces and air resistance are not considered. . Your program must accept input and produce output that matches exactly to the given executions. Note that the width modifier used for the tension values is calculated as the number of digits in the force input plus six. Example Execution #1 (eleven spaces after colon character for tension output): Enter mass of airplane (kg) -> 15000 Enter mass of glider #1 (kg) -> 5000 Enter mass of glider #2 (kg) -> 4500 Enter force produced by propellers (N) -> 75000 Acceleration: 3.06 m/s^2 -=-=-= Resulting tension on cable #1: Resulting tension on cable #2: 29081.63 Newtons 13775.51 Newtons

Answers

Answer:

Follows are the code to this question:

#include <stdio.h>//header file

int main() //main method  

{

int plane, g1, g2, f;//defining integer variables

float m,a,t1,t2; //defining float variables

printf("Enter mass of airplane (kg)-> ");//print message for input value

scanf("%d", &plane);//input value

printf("Enter mass of glider #1 (kg)-> ");//print message for input value

scanf("%d", &g1);//input value

printf("Enter mass of glider #2 (kg)-> ");//print message for input value

scanf("%d", &g2);//input value

printf("Enter force produced by propellers (N) -> ");//print message for input value

scanf("%d", &f);//input value

m= plane + g1 + g2;//use float variable m to calculate Mass

a=f/m;//use float variable a to calculate Acceleration

printf("\nAcceleration: %.2f m/s^2", a);

printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");//use print method for design

t1 = (g1 + g2) * a;//using the t1 variable to calculate tensions

printf("\nResulting tension on cable #1: %.2f Newtons", t1);//print tension value

t2 = g2 * a;//using the t1 variable to calculate tensions

printf("\nResulting tension on cable #2: %.2f Newtons", t2);//print tension value

printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");//use print method for design

return 0;

}

Output:

Please find the attached file.

Explanation:

In this code four integer variable "plane, g1, g2, and f" and four floating-point variables "m, a, t1, and t2" is declared, in which the integer variable is used for input the value from the user-end.

In the next step, the "m" variable is used, which adds the "plane, g1, and g2" integer value to calculate mass, and in the "a" variable it calculates the acceleration, and in the "t1 and t2" variable it calculates the tension and prints its value.

A local company is expanding its range from one state to fifteen states. They will need an advanced method of online communication and someone to design an advanced and thorough database to store a lot of information. Who should they hire to assist with both these goals?

a Database Architect and a Computer System Analyst who focuses in interactive media
a Computer Hardware Engineer and a Software Developer who focuses in interactive media
a Software Developer and a Web Developer who focuses in programming and software development
a Web Administrator and a Computer System Analyst who focuses in information support and services

Answers

Answer:

the answer is C,a a Software Developer and a Web Developer who focuses in programming and software

Brainlist me if im right

Answer:

C is correct

Explanation:

What were Roman Capitals first used for?

Answers

Answer:

Square capitals were used to write inscriptions, and less often to supplement everyday handwriting. When written in documents this style is known as Latin book hand. For everyday writing the Romans used a current cursive hand known as Latin cursive. Notable examples of square capitals used for inscriptions are found on the Roman Pantheon, Trajan's Column, and the Arch of Titus, all in Rome. Square capitals are characterized by sharp, straight lines, supple curves, thick and thin strokes, angled stressing and incised serifs. These Roman capitals are also called majuscules, as a counterpart to minuscule letters such as Merovingian and Carolingian.

used to write inscriptions

What is the major difference between the intranet and extranet?
Question 36 options:

Intranets hold more importance

The major difference between the two, however, is that an intranet is typically used internally.

Extranets improve internal communications

None of the above

Answers

Explanation:

The major difference between the two, however, is that an intranet is typically used internally.

The major difference between the intranet and extranet is that The major difference between the two, however, is that an intranet is typically used internally.

What is an Intranet?

Traditionally, an intranet is the concept of as a non-public and confined inner Web-primarily based totally web website online and/or community this is best handy to customers inside an organization.

An intranet is a non-public community contained inside an agency this is used to soundly proportion business enterprise facts and computing assets amongst employees. An intranet also can be used for operating in corporations and teleconferences. Intranets inspire communique inside an organization.

Read more about the communications:

https://brainly.com/question/26152499

#SPJ2

Write a program that:

a. asks user to input the temperature in Fahrenheit.
b. It converts the inputted temperature into Celsius.
c. Calculates the speed of sound in meters per second and in feet per second. The program should display user's inputs and print the results in both m/s and ft/s

Answers

Answer:

sucks to suck

Explanation:

Which TWO of the following are input devices that are parts of a laptop computer?

display screen
touch pad
scanner
mouse
keyboard

Answers

Answer:

Mouse and Keyboard.

its actually keyboard and touchpad!!

Trace the output of this code

Answers

Answer:

The output is 5

Explanation:

Given

Dim x As Integer

x = 5

If x <=5 Then x = x + 1

Label1.text = x -1

Required

The output

On the second line of the code, x=5

The third line is an if condition which checks if x<=5

So, we have:

5 <= 5 ....This is true

So, x = x + 1 will be executed

[tex]x = 5 + 1[/tex]

[tex]x = 6[/tex]

The last line of the program subtracts 1 for x and outputs the result on Label1

Label1.text = x -1

Label1.text = 6 -1

Label1.text = 5

Hence, the output is 5

When preparing a photo for a magazine, a graphic designer would most likely need to use a program such as
-Microsoft Excel to keep track of magazine sales.
-Microsoft Word to write an article about the photo.
-Adobe Photoshop to manipulate the photo.
-Autodesk Maya to create 3-D images that match the photo.

Answers

Answer:

C. Adobe Photoshop To Manipulate The Photo.

Explanation:

:)

Answer:

C

Explanation:

how do i create a a BASIC program to triple the salary of frontline workers?​

Answers

Answer:

In Latin America and the European Union, for example, 12 and 37 percent of health workers are public sector employees, respectively. Hence wage increases may reduce funding available for other critical medical supplies and equipment, particularly in developing countries with limited fiscal resources. Wage increases for one category of workers, however well justified, can also trigger demands from other workers, particularly in countries with strong trade unions. Temporary salary increases or supplementary payments also tend to become permanent, thereby creating long-term distortions and problems of fiscal sustainability. The first step, then, is to quickly assess the level and structure of health worker compensation to quantify the amount of additional wages that should be paid. Health facility staff consists of frontline medical staff (doctors, nurses, community health workers) as well as non-medical administrative and support staff. In many World Bank client countries, the total gross wages of health workers will consist of:

1.Basic salary. This is based on pay grades in civil service pay laws, or wage legislation for public health workers.

2.Overtime allowance or compensation for overtime work. This is usually in the form of a percentage of basic pay for additional hours worked beyond what is normally specified.

3.Hazard allowance or harmful work conditions allowance. These will be allowances as a percentage of pay for working conditions that are considered risky to the individual.

Other allowances.

4.Other allowances. These typically factor in seniority, additional training, or educational qualifications, as well as working in rural areas or remote locations

5.Performance pay. These are additional payments conditional on either inputs (e.g., working hours), outputs (e.g., patients treated), or outcomes (e.g., patient satisfaction).

6.Per diems or salary supplements. These are usually for attending workshops or training and can be a significant (more than 10 percent) proportion of gross wages.

Cross-national data on health worker wages is very limited. The data that the World Bank has for 10 countries in Latin America and 27 in the European Union shows that while health care workers do enjoy a premium over workers in other sectors of the economy, the premium decreases with country income levels. For countries in the upper income category, they experience a penalty compared to similar workers in lower-income countries (controlling for sex, education, and location). These averages, however, hide variations across different categories of health workers (medical workers represent between 20 and 50 percent of all health care sector workers for countries in Latin America and the European Union).

How do you change the slide layout?​

Answers

Answer:

1) In Normal view, on the Home tab, click Layout.

2) Pick a layout that best suits the content of your slide.

3) On the View tab, click Slide Master.

4) The slide layouts appear as thumbnails in the left pane below the slide master.

5) Do one or both of the following:

- Click the layout you want and customize it. You can add, remove, or resize placeholders, and you can use the Home tab to make changes to fonts, colors, and other design elements.

- Click Insert Layout to add a new slide and format it.

6) Click Close Master to stop editing layouts.

-Your revised slide layout will be available to insert as a new slide anywhere in your presentation.

7) Click Design and point to any theme.

8) Click the down arrow under that appears under the themes panel.

9) Click Save Current Theme, give the theme a name, and click Save. Your new theme will contain your newly revised slide layout and will be available in Themes gallery.

Write a program that uses while loops to perform the following steps:

a. prompt the user to input two integers: firstNum and secondNum
b. Output all odd numbers between firstNum and secondNum.
c. Output the sum of all even numbers between firstNum and secondNum.
d. Output the number and their squares between 1 and 10
e. Output the sum of the square of the odd numbers between firstNum and secondNum.
f. Output all uppercase letters.

Answers

Answer:

Explanation:

//Include the required header files.

#include<iostream>

using namespace std;

//Define the main function.

int main()

{

//Define the variables.

int i, sum = 0, sqSum = 0, firstNum = 1, secondNum = 0;

char ch;

//Check for valid input.

while (!(firstNum < secondNum))

{

cout << "Enter starting number: ";

cin >> firstNum;

cout<<"Enter ending number(must be > startingNumber): ";

cin >> secondNum;

}

//Store first number in i

i = firstNum;

//Dispaly the number.

cout << "The odd numbers between " << firstNum

<< " and " << secondNum << " are:\n";

//Iterate between first and second number.

while (i <= secondNum)

{

//Check for even numbers.

//Store the sum

if (i % 2 == 0)

sum = sum + i;

//Print the odd numbers

//Evaluate the square of sum of odd number.

else

{

cout << i << " ";

sqSum = sqSum + i * i;

}

//Increase the value of i.

i++;

}

//Dispaly the sum of even numbers.

cout << "\n\nThe sum of the even numbers is:"

<< sum << endl << endl;

//Dispaly the sum of square of odd number.

cout << "The sum of squares the odd numbers is:"

<< sqSum << endl;

//Set i to 1.

i = 1;

//Dispaly the message.

cout << "\nNumber Square\n";

//Iterate and print number between 1 andd 10

//along with the sum.

while (i <= 10)

{

cout << " " << i << "\t " << i * i << endl;

i++;

}

//USe for visual studio.

system("pause");

//Return the value 0.

return 0;

}

Explanation:

The program code will perform the function listed below using loop.

Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). Output all odd numbers between firstNum and secondNum. Output the sum of all even numbers between firstNum and secondNum. Output the numbers and their squares between 1 and 10. Separate the numbers using any amount of spaces. Output the sum of the square of the odd numbers between firstNum and secondNum. Output all uppercase letters.

Hope this helps!

List 5 ways by which Artificial intelligence (AI) can be used to drive our business.​

Answers

Answer:

start a website

Explanation:

true

1) Who invented C Language.?
A) Charles Babbage
B) Grahambel
C) Dennis Ritchie
D) Steve Jobs​

Answers

Answer:

Dennis Ritchie is the answer

Why is hydroelectricity counted as a conventional source of energy.. People say conventional sources of energy is the same as non-renewable energy sources

Answers

People have been using the energy of flowing or falling water for centuries before electricity was developed into a practical means of transporting energy. The first hydroelectric plant (at least in the U.S.) was built at Niagara Falls in 1895. Many areas of the world still get the majority of their power from hydro facilities.

Hydro is also “conventional” in the sense that it can be controlled in more or less the same way as thermal plants — its output can be adjusted over a wide range to match demand. Wind and solar, on the other hand, only produce when the wind blows or the sun shines. Of course, hydro can only produce as long as there’s rain or snowmelt to supply the reservoirs, but that’s on a much longer time scale; over hours or days, hydro capacity is very predictable.

What are some study habits that you practice? Check all that apply.
studying with friends
studying on a regular schedule
taking breaks while studying
getting good sleep
studying in a quiet area

Answers

Answer:

studying in quiet place

Taking breaks

Reading from notes

good sleep

eating healthy foods

group study

studying on regular schedule

revision

Some study habits that you should practice are studying with friends, studying on a regular schedule, taking breaks while studying, getting good sleep, and studying in a quiet area. All options are correct.

What are good studying habits?

Effective study techniques can be used by someone who wants to get good scores. Summarizing, limiting distractions, taking breaks, and memorization are some good study techniques.

Several good study practices include: When studying, summarize your notes, avoid studying when you're sleepy, memorize your notes, limit distractions, and take breaks.

Study habit is an action such as reading, taking notes, holding study groups which the students perform regularly and habitually in order to accomplish the task of learning.

Therefore, the correct options are a, b, c, d, and e.

To learn more about studying habits, refer to the link:

https://brainly.com/question/14735769

#SPJ5

In 2019, the tuition for a full time student is $7,180 per semester. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected semester tuition for the next 7 years. You may NOT hard code each years tuition into your program. Your program should calculate the tuition for each year given the starting tuition in 2019 ($7, 180) and the rate of increase (3.5%). You should then display the actual year (2020, 2021, through 2026) and the tuition amount per semester for that year

Answers

Answer:

In Python:

tuition = 7180

year = 2019

rate = 0.035

for i in range(2019,2027):

   print(str(year)+": "+str(round(tuition,2)))

   tuition = tuition * (1 + rate)

   year = year + 1

   

Explanation:

This initializes the tuition to 7180

tuition = 7180

This initializes the year to 2019

year = 2019

This initializes the rate to 3.5%

rate = 0.035

This iterates through years 2019 to 2026

for i in range(2019,2027):

This prints the year and tuition

   print(str(year)+": "+str(round(tuition,2)))

This calculates the tuition

   tuition = tuition * (1 + rate)

This increments year by 1

   year = year + 1

7 steps in infographic design​

Answers

Answer:

Step 1: Choose your topic and research your audience. Before looking at your data, think about a topic and an audience with whom it can resonate.  

Step 2: Take a look at your data and consolidate it.  

Step 3: Craft the copy.  

Step 4: Design!  

Step 5: Review, review, review.

Step 6: Publish and promote.  

Conclusion.

Explanation:

Process infographics are a specific type of infographic, designed to visualize, summarize and simplify processes. They're perfect for visualizing marketing strategies, new employee onboarding, customer journey maps, product guides, recipes and more.

Help a brother out


Write a java program with these specifications.





playRps – This method plays 24 rounds of rps and returns the total points earned. For each of the 24 rounds, player1’s hand
gesture will be based on calling the nextInt method of the given Random object. If the next integer is even, player1 will play
rock. If it is odd, player1 will play paper. Player1 never plays scissors. Player2 will play rock in the first round, paper in the
second round, scissors in the third round, and repeat the cycle starting with rock again in the fourth round. The method will sum
the return values for the 24 calls to rps and return the total. Note, since an invalid input is never passed in to an rps call using
playRps, your return value should always be a non-negative number.

Answers

Answer:

import java.util.*;  

class Main {

 private enum RPS { Rock, Paper, Scissors };

 private static RPS[] options = { RPS.Rock, RPS.Paper, RPS.Scissors };

 private static String[] names = {"Rock", "Paper", "Scissors"};

 // Return 1 if player 1 beats player 2, 0 otherwise

 static public int rps( RPS p1, RPS p2 ) {

   if (p1 == RPS.Rock && p2 == RPS.Scissors) return 1;

   if (p1 == RPS.Scissors && p2 == RPS.Paper) return 1;

   if (p1 == RPS.Paper && p2 == RPS.Rock) return 1;

   return 0;

 }

 static public int playRps() {

   Random rnd = new Random();      

   int totalPoints = 0;

   

   for(int round = 0; round < 24; round++) {

     int randomNumber = rnd.nextInt(2);  

     RPS player1 = options[randomNumber];      

     RPS player2 = options[round%3];

     String name1 = names[randomNumber];

     String name2 = names[round%3];

     int score = rps(player1, player2);

     if (player1 == player2) {

       System.out.printf("%d. Both players %s. Draw.\n",  round+1, name1);

     } else if (score == 0) {

       System.out.printf("%d. %s does not beat %s, player 1 loses.\n",  round+1, name1, name2);

     } else {

       System.out.printf("%d. %s beats %s, player 1 wins.\n", round+1, name1, name2);

     }      

     totalPoints += score;

   }

   return totalPoints;

 }

 public static void main(String[] args) {

   System.out.println("Playing RPS.");

   int total = playRps();

   System.out.printf("Player 1 earned %d points.\n", total);

 }

}

Other Questions
Find all the zeros of the equation.-x^3-x^2=11x+11 Marisas mother is driving her to a doctors appointment in a town 75 mi. away. If they travel at a constant rate of speed of 50 mph, how long will it take to get to the doctors office? A. 1 hr. B. 1.5 hr. C. 2.5 hr. D. 3 hr. What effect does the transfer of matter and energy have on organism and theirenvironment? 2y = x - 12, solve for X negative 5x plus 4y equals 3 i need x and y please Find the value of m. Quarts 0 1 2 e G 0 Gallons =0 In 2009 the Ford Motor Company announced plans to spend $490 million onbuilding a third car assembly plant in ChinaBriefly explain two likely reasons why the Ford Motor Company plans to builda third car assembly plant in China Answer all of dem Free BRAINIEST ON THE ROLL I NEED HELP PLEASE HELPWrite an argument in which you state and defend a claim in response to the following question: are the needs of people ever more important than the needs of animals and the planet? State your claim with accuracy and support it with logical reasoning and specific, relevant evidence from the selections in this unit. Organize your ideas effectively, and use transitions to create cohesion and show the relationships between your claim, reasons, and evidence. Provide a conclusion that supports your argument and offers new insight into the topic. Remember to maintain a formal style and tone in your writing. Explain Combined Mean. Which of these is evidence of sea floor spreading?A Mt. Fuji JapanB Great Rift Valley in AfricaC Mid Atlantic RidgeD Mt. Everest Nepal Samantha correctly answered 36 out of 48 questions on a test. She must score 70% or greater to pass the test. Did she pass? Which tab of the ribbon should you go to for removing gridlines on a worksheet? Find the value of tan is sin = 1/2 90 180a. -3/2b. -3/3c. 3/2d. 3/3 Why do our bodies need fats? 2 reasons Which expression equals (7y) ? 7yi:173 1073 3 tane 4'n arpm, 5 tane 2'nin arp-mindan ka byktr?A) 28B) 30C) 32D) 34 1. Which weather variable can be determined by using a psychrometer? Help pls, answer choices listed! Two angles that can be trisected with a straightedge and compass areand ____ angles . O A. 90; 30B. 75, 90C. 60: 45D. 90: 45Pls help ASAP