subject

Crear un arreglo de números enteros, donde le indicamos por teclado el tamaño, solicitando el número de filas y columnas, el programa deberá colocar dentro del arreglo números aleatorios utilizando la clase Random entre 0 y 9, al final muestra por pantalla el valor de cada posición y la suma de cada uno de los valores. Haz una función para rellenar el arreglo (que tenga como parámetros el número de filas y/o columnas), para mostrar el contenido, la suma del arreglo por columnas y un método público para generar número a ingresar en el arreglo.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
When date is processed into a meaningful form, i becomes
Answers: 1
You know the right answer?
Crear un arreglo de números enteros, donde le indicamos por teclado el tamaño, solicitando el número...
Questions
question
Mathematics, 11.02.2021 18:20
question
Physics, 11.02.2021 18:20
question
Mathematics, 11.02.2021 18:20
question
Mathematics, 11.02.2021 18:20
question
Mathematics, 11.02.2021 18:20
question
Mathematics, 11.02.2021 18:20
question
Mathematics, 11.02.2021 18:20
Questions on the website: 13722367