In java language please.

In Java Language Please.

Answers

Answer 1

A java program that creates a 2D integer array is given below:

The Program

//Class RURottenTomatoes

public class RURottenTomatoes

{

//main method

public static void main (String[] args)

{

 //Declaring & initializing variable to store index of command line argument

 int index = 0;

 

 //Obtaining number of rows & columns for 2D array from command line

 int r = Integer.parseInt(args[index++]);

 int c = Integer.parseInt(args[index++]);

 

 //Creating a 2D integer array of r rows & c columns

 int ratings[][] = new int[r][c];

 

 //Declaring iterator for loop

 int i, j;

 

 //Declaring variable to store sum of a movie ratings, highest sum of movie ratings

 int sum, highest;

 

 //Declaring variable to store index of sum of highest ratings movie

 int highest_index;

 

 //Filling value in 2D array from arguments of command line

 for ( i = 0; i < r; i++ )

 {

  for ( j = 0; j < c; j++ )

  {

   ratings[i][j] = Integer.parseInt(args[index++]);

  }

 }

 

 //Initializing highest sum of movie ratings & corresponding index

 highest = highest_index = -1;

 

 //Calculating index of the movie with highest sum of ratings

 for ( i = 0; i < c; i++ )

 {

  sum = 0;

  for ( j = 0; j < r; j++ )

  {

   sum = sum + ratings[j][i];

  }

 

  //Checking whether

  if(sum > highest)

  {

   highest = sum;

   highest_index = j;

  }

 }

 //Displaying index of the movie with highest sum of ratings

 System.out.println(highest_index);

}

}

OUTPUT

javac RURottenTomatoes.java

java RURottenTomatoes 3 4 1 2 3 4 5 6 7 8 9 10 11 12 3

Read more about java programming here:

https://brainly.com/question/18554491
#SPJ1


Related Questions

Answer in 3-5 sentences for each

What is a baseline? Why is recording an accurate baseline critical to the troubleshooting process?

Demonstrate through discussion that you understand the types of software applications that are prime for NLB and those that are better protected with failover clusters. Discuss various operations known and dissect the functions. Which functions should be protected by which technology?

Answers

A baseline is a constant point of comparison that is employed in comparison studies.

What is baseline?

In business, a project's or product's success is frequently evaluated in comparison to a baseline figure for expenses, sales, or any other number of factors. A project may go over or under its predetermined benchmark.

For instance, a business can use the number of units sold in the first year as a benchmark against which to compare subsequent annual sales in order to assess the success of a product line. The baseline acts as the benchmark against which all subsequent sales are evaluated.

Any number that acts as an acceptable and specified beginning point for comparisons can be used as a baseline. It can be used to assess the results of a change, monitor the development of an improvement project, or compare two periods of time.

Therefore, A baseline is a constant point of comparison that is employed in comparison studies.

To learn more about baseline, refer to the link:

https://brainly.com/question/14799723

#SPJ1

Translate the following C program to Pep/9 assembly language.

#include
int myAge;
void putNext(int age) {
int nextYr;
nextYr = age + 1;
printf("Age: %d\n", age);
printf("Age next year: %d\n", nextYr);
}
int main () {
scanf("%d", &myAge);
putNext(myAge);
putNext(64);
return 0;
}

Answers

Answer:

finds one age

Explanation:

it finds ones age and updates it annually by adding 1 year to the default age

So I'm doing a coding project and I need to turn all my pargaphs purple on my 4 different pages

Answers

For a sample code given below:

The CSS Code

body {

}

h2 {

    color: red;

}

p {

    color: pink;

}  

p {

   color: green;

}

p {

   color: purple;

}

.orange > p {

   color:orange;

}

.blue {

  color: blue;

}

#red {

   color: red;

}

#div1 > h4 {

   background-color: black;

  color: white;

}

You need to know that if you want to change the color of all your paragraphs in your CSS code, you would have to add the appropriate CSS selector.

Next, you would need to define the color property with the value you want. For example, say you want to change the color of all paragraphs on your site to navy.

You would have to add p {color: #000080; } to the head section of your HTML file.

You should note that #div1 is the parent of the p elements. This means that some properties (such as the background) of #div1 will be applied to the child element(s).

Read more about CSS here:

https://brainly.com/question/27818468

#SPJ1

What is the name of the software for managing real estate

Answers

nTireFM is a comprehensive system for real estate vendors with unique and reliable needs. Real Estate Management Software simplifies your life as a real estate investor monitors the financial performance of each rental property

Answer:

Is it Real Greeks?

Explanation:

I am making a python calculator and the issue I am having is that I can only add integers (whole numbers) What changes do I need to make to my code to be able to add integers and floats?


print("Welcome to the big daddy caculater this caculater can do add anything you desire ")

num1 = input("Enter a number: ")
num2 = input("Enter another number: ")

result = int(num1) + int(num2)


print(result)

Answers

The changed code to be able to add integers and float is:

num1 = float(input(("Enter a number: "));

num2 = float(input(("Enter another number: "));

result = num1 + num2;

print(result)

Integers and floats

The numbers represented by integers and floats are as follows:

Integers: the integer set, containing only non-decimal numbers.Floats: the real set, containing both non-decimal and decimal numbers.

From the above definition, we have that the float class contains the integer class, as it also accepts non-decimal values, hence your input should be read as a float, according to the following code section:

num1 = float(input(("Enter a number: "));

num2 = float(input(("Enter another number: "));

Then the addition can be made without any casting, as follows:

result = num1 + num2;

While the print command continues as it is.

More can be learned about integers and floats at https://brainly.com/question/27634578

#SPJ1

how installing and maintaining software in one technology
system can improve productivity for an individual or organisation

Answers

Answer:

Installing and maintaining software can improve productivity because it keeps employees updated. Information syncs in real-time, meaning they stand to gain hours of admin and data entry back each day, which means they can focus on the tasks that make customers happier.

Which option refers to a combination of the three main services in cloud computing?
A. SaaS
B. XaaX
C. IaaS
D. MaaS
E. PaaS

Answers

The option that refers to a combination of the three main services in cloud computing is  XaaS. The correct option is B.

What is XaaS?

XaaS is frequently used to refer to the provision of "anything-as-a-service," in general. SaaS, IaaS, and PaaS, the three primary cloud computing services, are combined in XaaS.

Xaas encompasses a variety of scenarios, such as a business renting out computing resources via the cloud or a web programmer using his browser to access an editor without first installing it on his PC.

Thus, the correct option is B. XaaS.

To learn more about XaaS, refer to the link:

https://brainly.com/question/11725428

#SPJ1

What is the full meaning of COPOOL​

Answers

an arrangement between people to make a regular journey in a single vehicle, typically with each person taking turns to drive the others.
"they organized carpools to deliver the kids to school"

The rules of the new game were undefined.
We couldn't figure out how to play it, so we
chose another game.
made too easy
not explained
not written
made very long
X

Answers

Answer: not written

Explanation: The game should have data for it and it if it was undefined maybe the creator had something missing or a command messed up.

What piece of equipment can be used to turn a tablet into a full-fledged computer?

a numeric keypad
a stenotype machine
a wireless keyboard
a virtual keyboard

Answers

Explanation: a wireless keyboard / mouse and Bluetooth mouse / keyboard, of course make sure your tablet is plugged in so its charging then basically have fun you basically have a Walmart version of the big deal have fun! :)

The piece of equipment that can be used to turn a tablet into a full-fledged computer is a wireless keyboard. The correct option is C.

What is wireless device?

Any gadget that has the ability to communicate with an ICS network via radio or infrared waves, often to gather or monitor data but occasionally to change control set points.

Without the use of cables or wires, wireless technology enables communication between users or the movement of data between locations. Radio frequency and infrared waves are used for a lot of the communication.

Wi-Fi transmits data between your device and a router using radio waves that travel at specific frequencies. A wireless keyboard is the piece of hardware that can be used to convert a tablet into a complete computer.

Thus, the correct option is C.

For more details regarding wireless device, visit:

https://brainly.com/question/30114553

#SPJ2

Which field is not used for non inventory products

Answers

The field that is not used for non inventory products are:

BOMs Manufacturing OrdersShipments.

What is a non inventory product?

An item that a business buys for its own use or to resell but does not track in terms of quantity is one that can be referred to as a non-inventory item.

Note that Non-inventory items are frequently low-value goods for which maintaining an exact count is one that would not significantly benefit the company.

Therefore, based on the above, Items that are not inventoried can only be utilized in invoices, customer orders, and purchase orders (can be bought as well as sold).

Learn more about non inventory products from

https://brainly.com/question/24868116
#SPJ1

What is the full meaning of JAVA​

Answers

Answer:

there is No specific meaning for java.

Explanation:

Japanese Vexillological Association

Which of these examples is a form of wearable technology?
A.
integrating mobile communication into eyeglasses
B.
rugged devices that can withstand natural disasters
C.
systems that derive energy from the user's biological processes
D.
smaller mobile and satellite communication devices
E.
communication devices that interface directly with the brain

Answers

Answer:B. rugged devices that can withstand natural disastersC. systems that derive energy from the user's biological processesExplanation:

Apple Watches and Fitbits are classic examples of wearable technology, but those aren't the only devices being developed today. In addition to smart watches, VR and AR technology, smart jackets and a wide variety of other gadgets are leading us towards a better-connected lifestyle.

Variance for accumulator. Validate that the following code, which adds the methods var() and stddev() to Accumulator, computes both the mean and variance of the numbers presented as arguments to addDataValue(): public class Accumulator { private double m; private double s; private int N; public void addDataValue(double x) { N++; s = s + 1.0 * (N-1) / N * (x - m) * (x - m); m = m + (x - m) / N; } public double mean(

Answers

Using the knowledge of computational language in JAVA it is possible to write a code that Validate that the following code, which adds the methods var() and stddev() to Accumulator, computes both the mean and variance of the numbers presented as arguments to addDataValue()

Writting the code:

import java.util.*;

public class Accumulator {  

private static double m;  

private static double v;  

private static double st;  

private static  double s[]=new double[5];

private static int N;

private static int count =0;

public static void main(String[] args) {

// TODO Auto-generated method stub

Random r = new Random();

System.out.println("hello world");

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

   double randomvalue = r.nextDouble();

addDataValue(randomvalue);

}

for(int i=0;i<s.length;i++) {

   System.out.println("dataValue:"+s[i]);

}  

mean();

System.out.println("mean:"+m);

var();

System.out.println("variance:"+v);

stddev();

System.out.println("standard deviation:"+st);

}

public  static void addDataValue(double value) {     // addes data values to array

 s[count]=value;

 count++;

}

public static double mean() {        // returns mean

double sum=0.0;

for(int i=0;i<s.length;i++) {

   sum+=s[i];

}

m = sum/s.length;

return m;

}  

public static double var() {    //returns variance

double mm = mean();

    double t = 0;

    for(int i=0;i<s.length;i++) {

        t+= (s[i]-mm)*(s[i]-mm);

}

    v= t/(s.length-1);

     return v;  

}

public static  double stddev() {        // returnsn the stardard deviation

st= Math.sqrt(var());

return st;

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

What made prince Ben think he was a terrible king the book the isle of the lost

Answers

The thing that made prince Ben think he was a terrible king the book the isle of the lost is because he fears that he will not be able to measure up.

What happens in the Isle of the Lost?

All the bad guys were exiled from the kingdom of Auradon twenty years ago, and they were forced to live practically imprisoned on the Isle of the Lost. A mystical force field surrounds the island, keeping the villains and their offspring safely imprisoned and apart from the mainland.

Note that bad plot pieces are coming together to force the King, who is in wonderful health, to resign in favor of Ben, who worries that he cannot live up to the name.

Learn more about King from

https://brainly.com/question/1586273

#SPJ1

True or False? O(1) is called constant time.

Answers

Answer:

True

Explanation:

The notation O(n), pronounced big-O of n is an indication of the complexity of an algorithm. It is an indication of the relationship between the processing time and size of input

So O(n) means the time - input relationship is linear. If it takes x time units to process an input of size y then it will take 5x units to process an input of size 5y

O(1) means the time to process is independent of size. It is always constant. For example in computer algorithms, the time to access a value in an array of values is independent of the size of the array because arrays are indexed and access time for any element of the array is the same

O(n²) means that the time taken varies as the square of the input size

and so on

Your mom cuz it’s your mom

Select the correct word to complete the sentence.

, developed by the National Science Foundation, evolved into the modern Internet backbone structure.

NSFNET
Pentium
UNIVAC
Telenet

Answers

Answer:

NSFNET

Explanation:

Answer:

NSFNET

Explanation:

After completing a repair on a vehicle what should the technician do next?
Have the customer verify the repair
Perform a quality inspection
Return the vehicle to the lot
Move to the next job

Answers

The next thing which the technician should do after completing a repair on a vehicle is to B. Perform a quality inspection

What is Vehicle Repair?

This refers to the process of restoring to full functionality the normal working process of a vehicle that makes use of mechanical components or parts.

This process requires the diagnostics of the car to find the area of the vehicle that contains the fault and then proceed to repairs and this is done by the fixing or replacing of the damaged parts.

Hence, it can be clearly seen that when a vehicle technician has completed his repairs on a faulty vehicle, the next step he would do would be to perform a quality inspection to verify that the problem is solved.

With this in mind, we can boldly state that the correct answer to the given question is option B as explained above.

Read more about vehicle repairs here:

https://brainly.com/question/21415662

#SPJ1

Print air_temperature with 1 decimal point followed by C.

Sample output with input: 36.4158102
36.4C

Answers

Answer:

printf("%.1f", air_temperature);

Explanation:

Check Disk detects disk integrity errors and fixes them. Match the types of errors Check Disk detects and fixes with the error descriptions.
1) A series of used clusters on the hard disk drive that are not associated with a specific file.
2) Occurs when two files claim the same cluster.
3) Files that exist on the hard drive but which are not associated with a directory in the index.
4) A portion of the hard disk that cannot be used.

Answers

Utilizes the error descriptions to identify and correct. 1) A collection of used clusters just on hard drive that are just not linked to every particular files.

What exactly is an error?

A mistake is indeed an inaccurate and improper activity. An error is often used interchangeably with word mistake. The term "error" in statistics describes the discrepancy between the computed result or the correct value.

What is mistake and what does it look like?

The discrepancy between both the measured & actual values might be used to identify a error. if the measurement tool or instrument is identical between the two operators. It's not required for two operators to achieve results that really are similar. An ERROR is used to describe the measurement disparity.

To know more about Error visit:

https://brainly.com/question/19575648

#SPJ4

Discuss some of the ways in which analytics assist information systems management as well as the organization at large. What kinds of data are most useful and how is it gathered? How do managers protect customers, clients, and even employees’ personally identifiable information in order for those who may not have permission to view it? How is the data secured in general?

Answers

The ways in which analytics assist information systems management as well as the organization at large are:

It often personalize one's customer experience. It make better business decision-making. It often Streamline operations. It lowers Mitigate risk as well as handle setbacks.

What kinds of data are most useful and how is it gathered?

The types of data that to be most useful to firms are:

Customer dataIT data internal financial data.

They can be gathered through:

Online poolsSurveysTransactional TrackingObservation, etc.

Note that data is secured in general through the use of good security measures and also through security technology.

Learn more about analytics from

https://brainly.com/question/28376706
#SPJ1

On the vertical axis of the Line chart, define 10 as the
Minimum bounds and 75 as the Maximum bounds.

Answers

Sine on the vertical axis of the Line chart, define 10 as the Minimum bounds and 75 as the Maximum bounds, the steps to take are:

1. Select the vertical axis on the chart. (with the full numbers)

2. Right select the vertical axis

3. Select Format Axis.

3. In the place of bounds, in the Min box type 20000 and then press ENTER.

4. In the area of the Maximum box, type the number 140000 and select Enter.

How do you set a minimum bound in Excel?

To do so, Change any of the settings under Value axis scale by clicking Scale in the Format Axis dialog box: Enter a different number in the Minimum or Maximum boxes, respectively, to modify the value at which the vertical (value) axis begins or stops.

Note that a sort of chart used to display information that varies over time is a line chart. A sequence of several points are plotted and connected with a straight line to make line charts. To monitor changes over both short and long time periods, line charts are utilized.

Therefore, A line chart, also known as a line graph or a line plot, uses a line to link a group of data points. This sort of graph is one that do displays values in order.

Learn more about Line chart from

https://brainly.com/question/26233943
#SPJ1

2. Which of the following versions of Windows 10 and later is designed to run a single app on fixed purpose devices, such
as automated teller machines, point-of-sale terminals, and industrial and medical devices?
OloT Core edition
Pro for Workstations
Olot Enterprise edition

Answers

Answer:

lot Enterprise edition

Explanation:

In c # Instructions Alignments
8A-Write an if statement that determines whether the variable y is equal to 20. If it is, assign 0 to
the variable x.

Answers

The given C program will be:

if (y == 20) {

 x = 0;

}

What do you mean by C program?

C is a programming language for general-purpose computers. Dennis Ritchie invented it in the 1970s, and it is still extensively used and influential today. C's characteristics are designed to accurately match the capabilities of the targeted CPUs. It has a long history of use in operating systems, device drivers, protocol stacks, and, to a lesser extent, application software. C is commonly used on computer architectures ranging from supercomputers to microcontrollers and embedded systems. C, the successor of the programming language B, was created by Ritchie at Bell Labs between 1972 and 1973 to build tools that ran on Unix. It was used to re-implement the Unix operating system's kernel.

To learn more about C program

https://brainly.com/question/28873607

#SPJ13

which creative common license type allows others to use and build upon work non- commercially, provided that they credit the original author and maintain the same licensing.

Answers

Answer:

CC BY-NC-SA

Explanation:

BY ==> credit has to be given to original author

NC ==> non-commercial

SA  ==>Share alike ; modified work should be reused under the original license

1. A group of people connected by one or more common interests is called a:

Answers

The answer is an Association

which technology concept uses computer resources from multiple locations to solve a problem

Answers

Answer:

Grid computing is a system connecting many computer nodes into a distributed architecture that delivers the computing resources necessary to solve complex problems.

Which of the following can be a dictionary value?

a. String
b. Floating point number (float)
c. Dictionary
d. Integer (int)
e. List

Answers

Answer:

All of them can be dictionary values.

If you are talking about dictionary keys, then only string, float and int can be keys so the answer would be (a) (b) and (d)

Explanation:

Ewaste reuses or refurbishes ewaste and creates a new product.
True or False

Answers

Answer:

true

Explanation:

yes

Answer:

true true true true true true true true true true true true true true true true

Explanation:

duh

Which of the following is an example of an emergency notification system?
Multiple Choice
A. radio stations' occasional tests of the national alert system
B.wireless alerts for promotional discounts
C.text messages from your local grocery store
D.All of the answer choices are correct.

Answers

The answer would be A, none of the other choices in my eyes I believe would be an “emergency notification” unlike radio stations who give off everything you need to hear with more.
Other Questions
A 2300-kg truck is traveling down a highway at 32 m/s. What is the kinetic energy of the truck? Why are there variances in settlement and human development patterns around the world? melissa called genavive into her office to ask genavive for an update on how the union organizing activites were going. it appears that melissa violated which of the no tips rules for what management cannot do for labor elections? Multiple choice triangle. im pretty sure its pythagorean theorem but please let me know A fisher finder shows a large fish at 13 ft below the surface and a smaller fish 4 ft below surface. what is the expressions that are equivalent to the distance between the fish Im confused as to what the answer(s) may be! Please help! Thank you! Six more than the quotient of a number and 9 equals 4 Based on this W-2, which of the following information is TRUE? m multipled by the square of n Wolf spiders don't rely on webs to catch their food. Instead they hunt and ambush other organisms and have very keen eyesight. When a wolf spider detects potential prey, its nervous system responds.Which structure in a wolf spider's cells transmits signals from one nerve cell to the next?Responses Golgi body Golgi body cell membrane cell membrane lysosome lysosome cytosol an unknown microbe is grown on triple sugar iron. you observe the surface of the slant has changed to a dark red color. the butt of the slant is yellow. this result would be recorded as markey, k., sackey, m.e., oppong-gyan, r. (2020). maximising intercultural learning opportunities: learning with, from and about students from different cultures. br j nurs. 29(18):1074-1077. doi: 10.12968/bjon.2020.29.18.1074. pmid: 33035086 ill give brainliest if i can have help, i am having trouble turning on axis, can someone explain? (refer to image somewhere lol) Describe the New Deal.The New Deal was a program from U.S. president, Franklin D. Roosevelt to re-inflate the economy by creating legislation to prevent the collapse of the banking system, provide jobs to farms and subsidies, guarantee minimum wages, and provide social security in old age. create a java program that creates 25 random 4 digit numbers and adds them to an array. once the array has been populated then sort the array using a bubble sort algorithm. aisha is the systems administrator for a hospital system's large database. which pathway in the information technology career cluster does aisha's career fall into? question 3 options: network systems information support and services web and digital communications programming mend the stockings or mind the stew and not moon about with books and papers. they would have spoken sharply but kindly, for they were substantial people who knew the conditions of life for a woman and loved their daughter. which rhetorical devices are used in the underlined portion of this text? select two options. allusion alliteration metaphor understatement parallel structure sound travels at a rate of about 1.1*10^3 feet per second. Suppose a mining company detonates a bundle of dynamite at a distance of 625 feet from a canyon wall. At the time of a detonation the miners sit safely at a distance of 2,600 feet from the dynamite. How long after detonation will the miners hear the echo of the blast off the canyon wall? Round to the nearest tenth if necessary. Give a formular on how to calculate growth rate An investment grows by 4% per year for 5 years. By what percent does it increase over the 5-year period?