Map-reduce Java code for Matrix Multiplication. It should be unique not copied from Internet

Answers

Answer 1

Answer:

that is an example of matrix

Map-reduce Java Code For Matrix Multiplication. It Should Be Unique Not Copied From Internet

Related Questions

Her computer is always freezing. Just __________ again and it should work

Answers

Answer:

restart

Explanation:

i think it will help it

This project was used to drive the VR Robot to number 25 on the Number Grid
*
Map, but it does not work correctly. What is the error?
.
The VR Robot should drive in reverse first
Wait until position Yin millimeters (mm) should be GREATER than 500.no LESS
than
Wait una position Xin millimeters() should be less than 100, no CREATER
than
O
The Stop driving blocks are not needed

Answers

Answer:

B Wait until position y in millimeter should be greater than 500 at least im guessing because you didnt add what the map looked like, making my job MUCH harder

Explanation:

11. In cell R9, enter a formula using the AVERAGE function and structured references to determine the average number of years of post-secondary education of all students as shown in the Post-Secondary Years column.

Answers

The typical AVERAGE function that can be used to determine the average number of years of post-secondary education of all students is "AVERAGE(StudentRepresentatives[Post-Secondary Years])".

What is an AVERAGE function?

In a spreadsheet, the AVERAGE function is used to find the normal average of a list of data, such as the total list of population.

In conclusion, the function "AVERAGE(StudentRepresentatives[Post-Secondary Years])" will be used to determine the average number of years.

Read more about AVERAGE function

brainly.com/question/2263994

Create a class RightTriangle which implements the API exactly as described in the following JavadocLinks to an external site..

Don't forget - you will need to use the Pythagorean theorem (Links to an external site.) to find the hypotenuse (and therefore the perimeter) of a right triangle. You can find the area of a right triangle by multiplying the base and height together, then dividing this product by 2.

Use the runner_RightTriangle file to test the methods in your class; do not add a main method to your RightTriangle class.

Hint 1 - Javadoc only shows public methods, variables and constructors. You will need to add some private member variables to your RightTriangle class to store the necessary information. Think carefully about what information actually needs to be stored and how this will need to be updated when methods change the state of a RightTriangle object.

Hint 2 - As in the previous lesson's exercise it's helpful to add your method/constructor headers and any dummy returns needed before implementing each one properly. This will allow you to test your code using the runner class as you go along.

This is the runner code:

import java.util.Scanner;

public class runner_RightTriangle{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
RightTriangle t = new RightTriangle();
String instruction = "";
while(!instruction.equals("q")){
System.out.println("Type the name of the method to test. Type c to construct a new triangle, q to quit.");
instruction = scan.nextLine();
if(instruction.equals("getArea")){
System.out.println(t.getArea());
}
else if(instruction.equals("getBase")){
System.out.println(t.getBase());
}
else if(instruction.equals("getHeight")){
System.out.println(t.getHeight());
}
else if(instruction.equals("getHypotenuse")){
System.out.println(t.getHypotenuse());
}

else if(instruction.equals("getPerimeter")){
System.out.println(t.getPerimeter());
}
else if(instruction.equals("toString")){
System.out.println(t);
}
else if(instruction.equals("setBase")){
System.out.println("Enter parameter value:");
double arg = scan.nextDouble();
t.setBase(arg);
scan.nextLine();
}
else if(instruction.equals("setHeight")){
System.out.println("Enter parameter value:");
double arg = scan.nextDouble();
t.setHeight(arg);
scan.nextLine();
}
else if(instruction.equals("equals")){
System.out.println("Enter base and height:");
double bs = scan.nextDouble();
double ht = scan.nextDouble();
RightTriangle tOther = new RightTriangle(bs, ht);
System.out.println(t.equals(tOther));
scan.nextLine();
}
else if(instruction.equals("c")){
System.out.println("Enter base and height:");
double bs = scan.nextDouble();
double ht = scan.nextDouble();
t = new RightTriangle(bs, ht);
scan.nextLine();
}
else if(!instruction.equals("q")){
System.out.println("Not recognized.");
}
}
}
}

My code so far:

class RightTriangle{
private double base;
private double height;
public RightTriangle(){
base = 1.0;
height = 1.0;
}
public RightTriangle(double ds, double ht){
base=ds;
height=ht;
}
public boolean equals​(RightTriangle other){
if(base==other.base && height==other.height ){
return true;
}
else
{
return false;
}
}
public double getArea()
{
return (base*height)/2;
}
public double getBase(){
return base;
}
public double getHeight()
{
return height;
}
public double getHypotenuse()
{
return Math.sqrt((base*base)+(height*height));
}
public double getPerimeter()
{
return base+height+Math.sqrt((base*base)+(height*height));
}
void setBase (double bs)
{
if(bs==0){
System.exit(0);
}
else{
base=bs;
}
}
public void setHeight(double ht){
if(ht==0){
System.exit(0);
}
height=ht;
}
public java.lang.String toString()
{
return "base: "+base+" hegiht: "+height+" hypothesis: "+ Math.sqrt((base*base)+(height*height));
}

}

MY CODE SAYS THAT THE setHeight and setBase and toString METHODS ARE INCORRECT.

Answers

Answer:

I don't see anything. Its blank

Explanation:

How is technology powerless?

Answers

Answer:

Bluetooth

Explanation:

I am not fully aware of what the full quisten is but I think this is the answer you are looking for

What are two things to consider when linking pages in your website? How are your decisions about absolute and relative URLs affect the reliability of your links?

Answers

The two (2) things to consider when linking webpages in your website include:

The names of the hyperlink.The proper use of anchor text.

What is a hyperlink?

A hyperlink can be defined as an element in a hypertext markup language (HTML) document such as a website, which provides a direct access or link to another HTML document, webpage, location, and image.

Basically, a hyperlink links to the same webpage in a hypertext markup language (HTML) document such as a website.

The things to consider when linking webpages.

In Web design, the two (2) things to consider when linking webpages in your website include:

The names of the hyperlink: it should be the same as the webpage name that is being linked to.The proper use of anchor text: it is more advisable to use anchor text rather than linked images.

An absolute URL contains all the information (protocol and domain name) that are needed to locate a resource while a relative URL can only locate a resource by using an absolute URL as a starting point because it doesn't contain any protocol.

In conclusion, an absolute URL helps to improve and enhance the reliability of your links because it contains the entire information that are needed to locate a resource.

Read more on absolute URL here: https://brainly.com/question/23338043

Name three reasons why computers use both integers and real numbers

Answers

Answer:

Precision, readability, and appropriateness

Given the user inputs, complete a program that does the following tasks: Define a set, fruits, containing the user inputs: my_fruit1, my_fruit2, and my_fruit3. Add the user inputs, your_fruit1 and your_fruit2, to fruits. Add the user input, their_fruit, to fruits. Add your_fruit1 to fruits. Remove my_fruit1 from fruits. Observe the output of each print statement carefully to understand what was done by each task of the program. Note: For testing purposes, sets are printed using sorted() for comparison, as in the book's examples. Ex: If the input is:

Answers

The program is an illustration of sets in a python program

What are sets?

Sets are variables that hold multiple values in a program

The main program

The program written in Python, where comments are used to explain each line is as follows:

my_fruit1 = input()

my_fruit2 = input()

my_fruit3 = input()

your_fruit1 = input()

your_fruit2 = input()

their_fruit = input()

# 1. TODO: Define a set, fruits, containing my_fruit1, my_fruit2, and my_fruit3

fruits = {my_fruit1, my_fruit2, my_fruit3}

print(sorted(fruits))

# 2. TODO: Add your_fruit1 and your_fruit2 to fruits

fruits.add(your_fruit1)

fruits.add(your_fruit2)

print(sorted(fruits))

# 3. TODO: Add their_fruit to fruits

fruits.add(their_fruit)

print(sorted(fruits))

# 4. TODO: Add your_fruit1 to fruits

fruits.add(your_fruit1)

print(sorted(fruits))

# 5. TODO: Remove my_fruit1 from fruits

fruits.remove(my_fruit1)

print(sorted(fruits))

Read more about python programs at:

https://brainly.com/question/26497128

convert 34.657 to binary and also 25.75 to binary

Answers

Answer:

34.657=100010.1010100000110001001 base two

25.75  =11001.11

Write a program to calculate the angle of incidence (in degrees) of a light ray in Region 2 given the angle of incidence in Region 1 and the indices of refraction n1 and n2. (Note: If n2>n1, then for some angles 1, Equation 2 will have no real solution because the absolute value of the quantity will be greater than 1. When this occurs, all light is reflected back into Region 1, and no light passes into Region 2 at all. Your program must be able to recognize and properly handle this condition.) The program should also create a plot showing the incident ray, the boundary between the two regions, and the refracted ray on the other side of the boundary. Test your program by running it for the following two cases: (a) n1= 1.0, n2 = 1.7, and 1= 45°. (b) n1 = 1.7, n2 = 1.0; and 1= 45°

Answers

The program is an illustration of conditional statements

What are conditional statements?

conditional statements are statements that are used to make decisions

The main program

The program written in Python, where comments are used to explain each line is as follows

#This imports the math module

import math

#This get sthe refraction index 1

n1 = float(input("Refraction index 1: "))

#This get sthe refraction index 2

n2 = float(input("Refraction index 2: "))

#This gets the normal angle of incidence in region 1

theta1 = float(input("Normal of incidence in region 1 (degrees): "))

#If n1 is greater than n2, then there is no real solution

if n1 > n2:

   print("No real solution")

#If otherwise

else:

   #This calculates the angle of incidence

   theta2 = math.asin(n1/n2 * math.sin(math.radians(theta1))) * (180/math.pi)

   #This prints the angle of incidence

   print("Angle of incidence",round(theta2,2),"degrees")

Note that the program only calculates the angle of incidence, it does not print the plot

Read more about conditional statements at:

https://brainly.com/question/24833629

#include <iostream>
using namespace std;

int main()
{
int num1, num2,r,i;

cout<<"Enter a start: ";
cin>>num1;
cout<<"Enter an end: ";
cin>>num2;
cout<<"\n\nODD NUMBERS\n";

for(i=num1; i<=num2; i++){
r=i%2;
if(r==1)
cout<<" "<<i;

}
cout<<"\nEVEN NUMBERS\n";

for(i=num1; i<=num2; i++){
r=i%2;
if(r==0)
cout<<" "<<i;
}
if(num1>num2){
cout<<"ERROR! Starting Number is GREATER THAN the Ending Number!!!";
return 0;
}
}

Using while loop, do while and for loop write a C++ program that lets you input a starting and ending integer (range) then display all the odd integers and the even integers within the range then compute the sum of each set of integers.:

If the starting number is greater than ending number, the program should display “ERROR! Starting Number is GREATER THAN the Ending Number!!!”.

Sample output:

Enter a start: 1

Enter an end: 10

ODD NUMBERS

1 3 5 7 9 Sum: 25

EVEN NUMBERS

2 4 6 8 10 Sum: 30


the attached pic has been my progress so far. please help me reach the expected output.​

Answers

Explanation:

...........................

Pick the correct statements on the 64-bit machine representation of numbers.

The relative error in any elementary arithmetic operation is bounded above by machine precision.
Most of the decimal numbers are concentrated around zero.
Division by small numbers in an iterative process is a potential source of instability.
There are as many numbers between 1 and 2 as there are between 3 and 4.
Machine precision epsilon is the smallest decimal number that could be represented on the computer.

Answers

Answer:Floating-point arithmetic is considered an esoteric subject by many people. This is rather surprising because floating-point is ubiquitous in computer systems. Almost every language has a floating-point datatype; computers from PCs to supercomputers have floating-point accelerators; most compilers will be called upon to compile floating-point algorithms from time to time; and virtually every operating system must respond to floating-point exceptions such as overflow. This paper presents a tutorial on those aspects of floating-point that have a direct impact on designers of computer systems. It begins with background on floating-point representation and rounding error, continues with a discussion of the IEEE floating-point standard, and concludes with numerous examples of how computer builders can better support floating-point.

Explanation:

Note : Each question carry three parts (A), (B), (C) out of
which attempt any two parts. All questions carry
equal marks.
1. (A) What do you mean by computer? Discuss the use of
computer in daily life.
(B) Differentiate between computer hardware & Software.
(C) Describe about the different types of computer
peripherals and memory devices.
2. (A) What is a printer? Explain different types of printer.
(B) What are scanning devices? Explain any four scan-
ning devices.
(C) What is CPU? Discuss components of CPU.

Answers

Answer:

1)a)the electronic device that helps us to read write listen music entertainment play games etc.Use of computer in our life is incredibly necessary. ... Computers have taken industries and businesses to a worldwide level. They are used at home for online education, entertainment, in offices, hospitals, private firms, NGOs, Software house, Government Sector Etc.

b)Hardware is a physical parts computer that cause processing of data. Software is a set of instruction that tells a computer exactly what to do. ... Hardware can not perform any task without software. software can not be executed without hardware.

c)Personal Computer (PC)

2 Workstation

3 Minicomputer

4 Main Frame

2)a)Printers are one of the common computer peripheral devices that can be classified into two categories that are 2D and 3D printers.Laser Printers.

Solid Ink Printers.

LED Printers.

Business Inkjet Printers.

Home Inkjet Printers.

Multifunction Printers.

Dot Matrix Printers.

3D Printers.

b)an electronic device which scans artwork and illustrations and converts the images to digital form for manipulation, and incorporation into printed

c)A central processing unit, also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program.

Write a program that does the following:

You will make a program that registers the maximum TEMPERATURE that is registered during the WEEK (that is, every day, that is, 7 days).

You must at the end show/print the number of temperatures that were HOT (May or equal to 25 degrees) and those that were COLD (less than or equal to 10 degrees)

The program MUST have DO WHILE and IF.






IN JAVA SCRIPT AND PLEASE SEND THE CODE IN THE COMMENTS

Answers

Answer:

Mean maximum temperature is measured by taking maximum temperatures and add them up and divide again by as many as the mean highest temperatures you added up. One measures the mean of only highest temperatures and the other the average of all high temperatures.

Explanation:

Why do we use for loops with arrays?
Group of answer choices

For loops let us access one specific element of an array.

Lets us quickly process contents of the array.

To store one piece of data at a time.

For loops let Python handle the values as strings not numbers.

Answers

B. Let’s us quickly process contents of the array

( _____)once demonstrated that a rigid wing on an aircraft would break more often than a flexible wing. Will give BRAINLIEST.

Answers

Answer:

the Wright brothers

Explanation:

Wing warping was an early system for lateral (roll) control of a fixed-wing aircraft. The technique, used and patented by the Wright brothers, consisted of a system of pulleys and cables to twist the trailing edges of the wings in opposite directions.

Answer:

the Wright Brothers

Explanation:

I know

A virus is NOT a software * True or False​

Answers

Answer:

false

Explanation:

Which of the formulas below are valid? Select all that apply?

Answers

Answer:

Is there a picture to go with this question?

Explanation:

Is there a picture to go with this question?

how to maintain large processors

Answers

avoiding turning it off with the power switch or power button use the os to turn it off

please give all the answer​

Answers

Change the vowel ::--

swam got ran woke roderosesang came gave knew blew drank wrote drew sat slept kept swept bought brought taught thought

In other programming languages, the dictionary data structure is referred to as a(an)

Answers

Answer:

hash

Explanation:

it is called a hash, a map, or a hasmap

A dictionary is a data structure for storing items. Languages such as JavaScript refer to dictionaries as objects. They're all key-value stores.

Which is an advantage of a computer network?
A. Networked computers can process data and run software faster than single computers.
B. Networks prevent unauthorized access to data and protect equipment.
C. Networked computers are less likely than single computers to suffer equipment failure.
D. Networks allow computers to connect quickly and to share data or equipment.

Answers

D. is the answer.............

importance of ethical rules in new technologies?

Answers

Answer:

Ethical rules in the sphere of all technologies are imperative.

Explanation:

Ethical rules for technologies limit the information gathered, what can be done with the gathered data, the disclosure of what is collected and used/sold, and the restriction of technology that is dangerous to humans (bio-technologies).

Create a python program that will input their name and their age. It will show an output "Hi, {name} ! How are you? I know you are {age} old."

I WILL MARK YOU AS BRAINLIEST​

Answers

Answer:

age = 10

name = Cynthia

make an f string so the variables appear in the string. There are other ways to do this but I prefer f strings instead of using string concatenation. It causes problems adding 2 strings together most of the time.

print(f'Hi, {name} ! How are you? I know you are {age} old.')

What does the “mystery” function do?

Answers

Answer:

Find the product of prime number between 1and8

Answer:

function mystery() {

while (noBallsPresent()) {

move();

}

}

Explanation:

Karel moves until it is on a ball.

why are men more exposed to mass media?

Answers

Answer:

because they like exploring

I hope this helps :) it should give an idea on how to answer your question!

Why do i do this XD trolling be like

Answers

Answer:

Explanation:

one example of requirement verification techniques

Answers

Answer:

The four fundamental methods of verification are Inspection, Demonstration, Test, and Analysis. The four methods are somewhat hierarchical in nature, as each verifies the requirements of a product or system with increasing rigor.

Explanation:

#Python: The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a string rather than an integer. At FIXME in the code, add try and except blocks to catch the ValueError exception and output 0 for the age.

Ex: If the input is:

Lee 18
Lua 21
Mary Beth 19
Stu 33
-1
then the output is:

Lee 19
Lua 22
Mary 0
Stu 34

"# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
age = int(parts[1]) + 1
print('{} {}'.format(name, age))

# Get next line
parts = input().split()
name = parts[0]"

Answers

The program illustrates the use of catching exceptions.

What are exceptions?

Exceptions are program statements that are used to control program errors, and prevent a program from crashing.

How to fix write the exception

The statements that catch the exception in the program are:

try:

       age = int(parts[1]) + 1

       print('{} {}'.format(name, age))

       # Get next line

       parts = input().split()

       name = parts[0]

   except ValueError:

       print('Invalid value!')

       # Get next line

       parts = input().split()

       name = parts[0]

The complete program

The complete program is as follows:

# Split input into 2 parts: name and age

parts = input().split()

name = parts[0]

while name != '-1':

   # FIXME: The following line will throw ValueError exception.

   # Insert try/except blocks to catch the exception.

   try:

       age = int(parts[1]) + 1

       print('{} {}'.format(name, age))

       # Get next line

       parts = input().split()

       name = parts[0]

   except ValueError:

       print('Invalid value!')

       # Get next line

       parts = input().split()

       name = parts[0]

Read more about program exceptions at:

https://brainly.com/question/25012091

14. My computer “boots-up” (aka activates and starts running) but it tells me that it cannot find the data to start the operating system, and I hear a subtle clicking noise coming from my computer. What physical component of the computer do you believe is defective? Defend your answer.

Answers

For this computer, the hard drive is the physical component that is defective.

What is a physical component?

A physical component can be defined as a component (hardware) of an computer system or information technology (IT) that can be seen and touched.

The physical components of a computer.

Some examples of the physical components of a computer system include:

MotherboardCentral processing unit (CPU)KeyboardMonitorMouseHard drive

The hard drive refers to an electromagnetic data storage device that is typically used for storing and retrieving digital data such as an operating system (OS) on a computer system.

Generally, a computer would make a subtle clicking noise when it finds it difficult to read or retrieve the data stored on its hard drive.

Read more on physical components here: brainly.com/question/959479

Other Questions
Which of the following statements about the caste system in India is true? The lightbulb of a flashlight creates light and heat, both of which are forms ofenergy. What is the source of the energy?A. Elastic potential energy stored in the molecules of the flashlightB. Chemical potential energy stored in the ions of the batteryC. Kinetic energy of the electrons flowing through the lightbulbO D. Gravitational potential energy stored in Earth's gravitational field Im so lost, please help! Note: Figure is not drawn to scale.If h = 7 units and r = 3 units, then what is the volume of the cone shown above? why natural vegetation vary according to the places in our country Nepal? Read the text and write in Spanish.You have a pen pal from Cuba. She wants you to share your familys preferences. Write two (2) complete sentences in Spanish to describe their preferences. Remember to use the vocabulary words from this lesson/course only. Use the following suggestions as a guide for your answer:You may copy and paste the accented and special characters from this list if needed: , , , , , , , , , , , , , , .*Note: The sample sentences in parentheses are just a guide to help you form your sentences. You must come up with your own original answers keeping academic integrity intact.Write one complete sentence using the correct form of the verb preferir to write about something a family member does in his/her free time and a piece of clothing he/she wears or does not wear. (e.g., My sister prefers to play tennis with a hat.)Write one complete sentence using the correct form of the verb tener to describe if the family member is hot or cold when he/she practices the pastime. (e.g., My sister is cold when she plays tennis.) Renaldo has abudget of $500 to buy gift boxes for a party.Large boxes cost $65 and small boxes cost$35. Write and graph an inequality thatrepresents the number of each type of giftbox that Renaldo can buy. If Renaldo buys5 small gift boxes, how many large gift boxescan he afford to buy? This rectangle was cut to make these two triangles.A rectangle is cut diagonally to form 2 equal triangles.The base of the rectangle is 7 inches, and the height is 6 inches.The area of one triangle is square inches. 45 Points!History of The Modern Summer Olympic Games *Must Be two paragraphs* What is the solution to |2x-8|=6?A. x /= -1B. 1 /= 7D. -7 = x = -1 What was the purpose of the policy of containment after World War II?to confine communism to the Soviet Union to rebuild the cities of Europe after World War II to end the Cold War between the United States and the Soviet Unionto stop the spread of communism beyond nations where it was established A wildfire is spreading toward a ranger station at a rate of 6 miles per hour. If the ranger station is 5 miles away from the wildfire, how many minutes will it take for the wildfire to reach the ranger station? square DEFG is inscribed in equilateral triangle ABC with a side length of 3+23.Find: area of the square HELP HOW DO I SOLVE THISJosie wants to buy Internet access. One service provider charges a flat rate of $34.95/month. A second charges $25/month plus 33c/h. For what number of hours per month should Josie choose the flat rate? Si pudiera cambiar el final de la historia la jarra de miel, como terminara Express x -5x-14 as the product of two binomials This granted tribes unsettled western prairie land in exchange for their territories within state borders, mainly in the Southeast. PLEASE HELP ASAP I WILL GIVE BRAINSLET TO THE CORRECT ANSWER!!!!!!!!!! I NEED THIS ASAP!-Imagine you have access to free live another day pills. For each day you take the pill, you do not age at all. You could take them every day for a thousand years and not age. You can still be killed by natural accidents, but youll stop aging. Every day you dont take them, youll age normally for that day. There are no physical or mental or spiritual negative side effects to the pill at any level. Do you take the pill? Why or why not? Without aging many of the industries that exist will be decimated such as hospitals and an even more interesting thought would be how the earth would accommodate so many people. Our resources for energy and food production are limited, so I wonder how the earth would be able to adapt to much longer lives. Would you take it? The stadium has two tiers of spectator seats and VIP seats. The number of VIP seats is 1/12 of all seats. The ratio of the number of 1st tier seats to the number of 2nd tier seats is 7:5. If there are 600 VIP seats, how many 1st tier seats are in the stadium?