Java
Summary: Given integer values for red, green, and blue, subtract the gray from each value.
Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).
Given values for red, green, and blue, remove the gray part.
Ex: If the input is:
130 50 130
the output is:
80 0 80
Find the smallest value, and then subtract it from all three values, thus removing the gray
1 import java.util.Scanner;
2
3 public class LabProgram
4 public static void main(String[] args) {
5 /* Type your code here. */
6
7
8

Answers

Answer 1

Answer:

import java.util.Scanner;

public class LabProgram{

    public static void main(String []args){

       Scanner input = new Scanner(System.in);

       int red,blue,green,smallest;

       System.out.print("Enter three numbers between 0 and 255 (inclusive): ");

       red =input.nextInt();

       green =input.nextInt();

       blue =input.nextInt();

       

       if(red <= blue && red <= green){

       smallest = red;

       }

       else if(green <= red && green <= blue){

           smallest = green;

       }

       else{

            smallest = blue;

       }

       System.out.print((red - smallest)+" "+(green - smallest)+" "+(blue - smallest));

}

}

Explanation:

This line declares necessary variables

int red,blue,green,smallest;

This line prompts user for input of 3 numbers

System.out.print("Enter three numbers between 0 and 255 (inclusive): ");

The next three lines gets user inputs

       red =input.nextInt();

       green =input.nextInt();

       blue =input.nextInt();

The following iteration checks for the smallest for red, green, blue

       if(red <= blue && red <= green){

       smallest = red;

       }

       else if(green <= red && green <= blue){

           smallest = green;

       }

       else{

            smallest = blue;

       }

This line prints the required output

       System.out.print((red - smallest)+" "+(green - smallest)+" "+(blue - smallest));


Related Questions

what tools IS used to mine stones and ores​

Answers

Answer:

pickaxe

Explanation:

that is the tool u use

A pickaxe or a pick.

Shown in minecraft and talked about in many story's that take place in the mines.

Depending on the pickaxe material, many things could be mines like stone and ore.

g Unlike when you create a String, when you create a StringBuilder, you must use the keyword ____________.

Answers

Answer:

Unlike when you create a String, when you create a StringBuilder, you must use the keyword new

Explanation:

Strings are used in programming which also opens the way for StringBuilder to be used too. In javascript, for instance, variables are useful for storing data, We have "Let" and "const" variables. Const variables cannot be changed after they’re created. The data stored are in types an example is a string. Strings allow one to write a value and store the result in a variable.

For example, using the dot operator, when you:

console.log('love'.length); // Prints 4

Note that console.log()  allows the computer to evaluate the expression inside the parentheses and print that result to the console.

.length prints 4 as the result. This shows how the string has a property that stores the number of characters in that string.

StringBuilder with the keyword "new" is used when we want to change or modify data property stored in a string.

Lola is friends with a boy she chats with in an online video game. Lola only knows the boy by his screen name and avatar. He only knows her in the same way. Lola is careful to make good choices when talking to someone online, even someone she thinks she knows well. The boy asks her the following questions in a recent chat room meet-up. Which questions should she not answer?

a
What kind of music do you listen to?
b
What is your favorite subject?
c
What is your realname?
d
Will you promise to keep our friendship a secret?

Answers

Answer:

I think the answer should be d.

C and d follow the computer SMART code.

Create a class named FormLetterWriter that includes two overloaded methods named displaySalutation(). The first method takes one String parameter that represents a customer's last name, it displays the salutation "Dear Mr. or Ms." followed by the last name. The second method accepts two String parameters that represent a first and last name, and it displays the greeting "Dear" followed by the first name, a space, and the last name. After each salutation, display the rest of a short business letter: "Thank you for your recent order." Write a main() method that tests each overloaded method. Save the file as FormLetterWriter.java.

Answers

Answer:

Follows are the code to this question:

public class FormLetterWriter//defining class

{

static void displaySalutation(String last_Name)//defining a method displaySalutation  

   {

       System.out.println("Dear Mr. or Ms. " + last_Name);//print value

   }

   static void displaySalutation(String first_Name, String last_Name) //overload the method displaySalutation

   {

       System.out.println("Dear " + first_Name + " " + last_Name);//print value

   }

   public static void message()//defining a method message  

   {

       System.out.println("Thank you for your recent order.");//print message

   }

   public static void main(String[] args) //defining main method

   {

       displaySalutation("I Kell");//calling a method displaySalutation by passing a single String value

       message();//calling message method

       displaySalutation("Christ", "John");//calling a method displaySalutation by passing a two String value

       message();//calling message method

   }

}

Output:

please find the attached file.

Explanation:

In the above given program a calss "FormLetterWriter" is defined, in side the class we perform the method overloading, in which a method "displaySalutation" is used in first definition it accepts a single string variable "first_Name", and in second time, it accept two string variable " first_Name and last_Name".

Inside the both method, we use print method, that print its value, and an onther method message is defined, that print the given message.

In the class main method is declared, in which we apply mathod overloading and also call the message method for print the given business letter.  

Help with number 12 please!

Answers

In #1 A can pass legally, in #2 B can pass legally, and in #3 neither can pass legally.

Which of these is outside the scope of an art director's responsibility?

Answers

Answer:

Establishing Tight deadlines for a rush job.

Explanation:

The time taken for a rush job has nothing to do with the art director because it has nothing to do with art. Also rush jobs already call for tight deadlines so technically the deadline is already established.

Answer: cropping a photograph for the sake of space

Explanation: edge 22

The global communication network that allows computers to connect and pass through information is called?

Answers

Answer: Internet

Explanation:

Answer:

The Internet.

Explanation:

Lonnie has several workbooks that contain financial and sales data. He needs to ensure that if the data in a single cell in one workbook changes that it is automatically updated and reflected in another workbook. What should Lonnie create?

Answers

Answer: Linked cell

Explanation: I just did a test

Answer:

The person above is correct The answer is B:linked cell

Explanation:

Just finished Unit Test Review.

1. Add an import statement above the class declaration to make the Scanner class available to your program.
2. In the main method, create a Scanner object and connect it to the System.in object.
3. Prompt the user to enter his/her first name.
4. Read the name from the keyboard using the nextLine method, and store it into a variable called firstName (you will need to declare any variables you use).
5. Prompt the user to enter his/her last name.
6. Read the name from the keyboard and store it in a variable called lastName.
7. Concatenate the firstName and lastName with a space between them and store the result in a variable called fullName.
8. Print out the fullName.
9. Compile, debug, and run, using your name as test data.
10. Since we are adding on to the same program, each time we run the program we will get the output from the previous tasks before the output of the current task.

Answers

Answer:

import java.util.Scanner;

public class Assignment{

public static void main(String [] args)

{

Scanner input = new Scanner(System.in);

String firstName, lastName;

System.out.print("Firstname: ");

firstName = input.nextLine();

System.out.print("Lastname: ");

lastName = input.nextLine();

String fullName = firstName +" "+lastName;

System.out.print(fullName);

}

}

Explanation:

I'll use the line numbers in the question to point at the corresponding instruction

import java.util.Scanner; -- The import statement (1)

public class Assignment{

public static void main(String [] args)

{

Scanner input = new Scanner(System.in); -- Scanner object (2)

String firstName, lastName; -- Variable declarations

System.out.print("Firstname: "); ---- Prompt to enter first name (3)

firstName = input.nextLine(); --- User input for firstName (4)

System.out.print("Lastname: "); ---- Prompt to enter first name (5)

lastName = input.nextLine(); --- User input for lastName (6)

String fullName = firstName +" "+lastName; --- concatenating both user inputs (7)

System.out.print(fullName); --- Print out fullName (8)

}

}

Raj’s computer just crashed and he lost most of his files. What should he do to avoid this problem in the future?

He should inspect the power and connection.
He should check all the cords and cables.
He should delete his browsing history.
He should back up his data regularly.

Answers

He should back up his data regularly

Answer:

Back up his data regularly.

Explanation:

Power and internet can go out at anytime

Cords (unless they are to a hard drive) is irrelevant in this situation

Browsing history is also irrelevant in this situation

I might be wrong about this, but that is the best solution in my opinion.

Hope this helps!

WILL MARK AS BRAINLIEST
Describe the environmental issues in India and list ways that technology has been used to address these issues.

Answers

India has been having to engineer better technology to better prepare people in india for the brutal monsoon seasons in india

what can you say about the age of oceanic crust near and far from the mid oceanic rdge​

Answers

Answer:

The closer crust at the Mid Atlantic Ridge is newer, and the farther the crust is older.

Explanation:

The Mid Atlantic Ridge produces new crust, and pushes away older crust, which means the farther away the older.

The Goal: Similar to the first project, this project also uses the random module in Python. The program will first randomly generate a number unknown to the user. The user needs to guess what that number is. (In other words, the user needs to be able to input information.) If the user’s guess is wrong, the program should return some sort of indication as to how wrong (e.g. The number is too high or too low). If the user guesses correctly, a positive indication should appear. You’ll need functions to check if the user input is an actual number, to see the difference between the inputted number and the randomly generated numbers, and to then compare the numbers.• Concepts to keep in mind: • Random function• Variables• Integers• Input/Output• Print• While loops• If/Else statements

Answers

Answer:

Here is the Python program:

import random #to generate random numbers

def generateRandNo(): #function to generate random number

    randNo = random.randint(1,100) #generates random number in range from 1 to 100

    return randNo #returns the generated random number

   

def userInput(message = "Guess the number "): #to gets integer input from user and return the input number

    userGuess = int(input(message)) #store the int type input from user in userGuess variable

    return userGuess #returns the user input number

   

def compareNumbers(userGuess,randNo): #compares the user input with actual randomly generated number

    if userGuess > randNo: # if user input is greater than actual number

         return "The number is too high"

    elif userGuess < randNo: #if user input is less than actual number

         return "The number is too low"

    else: #if user guess is correct

         return "Correct"

def main(): #main method

    correct = False #sets correct to False

    begin = True #sets start game i.e. begin to True

    while correct or begin: #while loop keeps repeating as long as user guess is correct or user wants to start game again

         guessCount = 0  #counts number of trials user takes to guess the correct number

         randNo = generateRandNo() #generates a random number using generateRandNo

         userGuess = userInput() #gets input number from user using userInput method

         guessCount+=1 #increments at each guess made by user

         message = compareNumbers(userGuess,randNo) #compares user guess input number with actual number

         

         while message != "Correct" : # while message is not equal to Correct

              print(message) #prints to guess the number

              userGuess = userInput("Try again: ") #keeps asking user to try again and enter a number

              guessCount = guessCount + 1 #increments guessCount  by 1 at each guess made by user

              message = compareNumbers(userGuess,randNo) #compares user input with actual number

         print()

         print(message,"It took you ",guessCount," attempts to answer\n") #prints how much trials user took to guess correct number

         choice = input("Do you wish to continue? (Enter yes or no) ") #asks user if user wants to start over

         if choice == 'no': # if user enters no

              exit(1) #exits the program

         else: #if user enters yes starts the game again

              correct = True #sets correct guess to True

main() #calls main method to start the guess game

Explanation:

The program is well explained in the comments attached with each line of the code. Suppose the randomly generated number (actual number) is 50 and user input is 24  then message The number is too low is displayed and if user guess input is 80 then The number is too high is displayed. If the user guesses the correct number i.e. 50 3rd time then the message displayed is:

It took you 3 attempts to answer.

The the user is asked to continue as:

Do you wish to continue? (Enter yes or no)

If user enters no the program exits if yes then user is asked to Guess the number again.

The screenshot of output is attached.

Carlie was asked to review a software project for her company to determine specific deadlines. Which part of project management must she consider?

Analysis
Resources
Scope
Time

Answers

Answer:

Resources

Explanation:

Answer:

scope

Explanation:

Which of the following is NOT a reason to include comments in programs?

a. Comments help the computer decide whether certain components of a program
are important.

b .Comments help programmers debug issues in their own code

c. Comments help document how code was written for other programmers to use

d. Comments enable programmers to track their work throughout the development
process

Answers

Answer:

A Would be correct!

Explanation:

The reason for this is because in a code when you use the comment out the compiler will skip over it and will not do anything and will skip it. So the comment can help the computer do anything!

HOPE THIS HELPED MAKE ME THE BRAINLIST!

Using programming concepts, the option that is NOT a reason to include comments in a code is:

a. Comments help the computer decide whether certain components of a program  are important.

-------------------------

Usually, codes are very long, and each person is responsible for a part of the problem. The parts have to be intervened with each other, and thus, sometimes a programmer will have to look at another part of the code, not coded by him. Thus, for the programmer and other people working in the project to understand, comments are important.Additionally, the comments are used to help the programmers debug their own code, as they can go part by part and see what is done in each part, also helping them work throughout the development process.In a program, there may be some components that end up not being necessary, but this is not decided by comments, and thus, option A is not a reason to include comments in programs.

A similar problem is given at https://brainly.com/question/13527834

Which of the following industries does not use technology?

Medicine

Marketing and advertising

Law enforcement

Arts and entertainment

None of the above

Answers

Answer:

None of the above

Explanation:

Medicine uses technology to research

Advertiseres use platforms like Instagram to share the product they are promoting

Law enforcement uses tech to pull up databases of people's records

Arts and entertainment use them to create (in some cases), share, and sell their art.

Hope this helps!

Answer:

E

Explanation: got it right on edge 2020

what specific Philippine law discusses copyright? elaborate?​

Answers

Answer: Republic Act No. 8293 "Intellectual Property Code of the Philippines".

Explanation:

The Republic Act No. 8293 is the Intellectual Property Code of the Philippines. It is the Philippine law that discusses copyright. This law protects copyrights, intellectual property, trademarks, and patents.

Examples of copyright that are protected under the law are photographic works, drawings, audiovisual works, and cinematographic works.

write a program that reads in a number n and prints out n rows each containing n star charactersg

Answers

In python:

rows = int(input("How many rows would you like? "))

i = 0

while i < rows:

   print("*" * rows)

   i += 1

I hope this helps!

what is the seven deadly sins

Answers

Answer:

Kill

lie

fight

..

..

.

..

pride, greed, lust, envy, gluttony, wrath, and sloth. but if you’re talking about the anime, you should watch it! it’s a good anime haha

What are the four components of the Universal Systems Model?

Answers

Answer:

output, process, input, and feedback

Explanation:

Write a short quiz program which asks three true/false questions and stores the user's answers as booleans. At the end the program it should print the user's answers with the correct answers.

Note: you should use the same quiz questions and correct answers as the sample run below.

Sample run:

Java is a programming language, true or false?
true
Only numbers can be stored by variables in Java, true or false?
true
There are only 2 possible values which can be held by a boolean variable, true or false?
false
Question 1 - Your answer: true. Correct answer: true
Question 2 - Your answer: true. Correct answer: false
Question 3 - Your answer: false. Correct
AP CS A Unit 1: Lesson 3 - Coding Activity 3

Answers

this answering question interface is bleh

The concept of boolean variables is that; variables declared as boolean type can only take any of two values. The variable can either be true or false. Such variable cannot take any other value apart from these two.

The short quiz program is as follows.

Please note that comments are used to explain difficult lines.

import java.util.*;

public class shortQuiz{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

//This declares the variables that represent correct answers as boolean data type; the variables are also initialized

 boolean q1 = true, q2 = false, q3 = true;

//This declares the response to each question as boolean data type

 boolean q1response, q2response, q3response;

//This prints the first question

 System.out.print("Java is a programming language, true or false? ");

//This gets input for the first response

 q1response = input.nextBoolean();

//This prints the second question

 System.out.print("Only numbers can be stored by variables in Java, true or false? ");

//This gets input for the second response

 q2response = input.nextBoolean();

//This prints the third question

 System.out.print("There are only 2 possible values which can be held by a boolean variable, true or false? ");

//This gets input for the third response

 q3response = input.nextBoolean();

//This prints your first response, alongside the correct answer to the first question

 System.out.println("Question 1 - Your answer: "+q1response+". Correct answer: "+q1);

//This prints your second response, alongside the correct answer to the second question

 System.out.println("Question 2 - Your answer: "+q2response+". Correct answer: "+q2);

//This prints your third response, alongside the correct answer to the third question

 System.out.println("Question 3 - Your answer: "+q3response+". Correct answer: "+q3);

//The program ends here

}

}

See attached image for program sample run.

The above program initializes the correct answers using boolean variables. The correct answers are then printed, after the user answers the three questions.

Read more about boolean variables at:

https://brainly.com/question/16843003

You have a large text file of people. Each person is represented by one line in the text file. The line starts with their ID number and after that, has the person's name. The lines are sorted by ID number in ascending order. There are n lines in this file. You write a search function that returns the name of a person whose ID number is given The simplest way to do that would be to program a loop that goes through each line and compares the ID number in the line against the given ID number. If there is a match, then it returns the name in that line. This is very inefficient, because the worst-case scenario is that this program needs to go through almost everyone the person we are looking for could be last. using the fact that he tli s sored wil greany speed up the processbus to use a birarysearch alkrhm We go to the middle line of the file first and compare the ID found there (P) to the given ID (Q). (f the number of lines is even, we go above or below the arithmetic middle.) if P=Q then our algorithm terminates . we have found the person we are looking for. If P is less than Q, that means that the person we are looking for is in the second half of the file. We now repeat our algorithm on the second half of the file. If P is greater than Q, that means that the person we are looking for is in the first half of the file. We now repeat our algorithm on the first half of the file.

Required:
Of what order is the worst-case number of comparison operations that needed for this algorithm to terminate?

Answers

Answer:

...............fp......

Could someone explain a Boolean?

Answers

Answer:

It is a "True" or "False" integer.

Explanation:

denoting a system of algebraic notation used to represent logical propositions, especially in computing and electronics.

a binary variable, having two possible values called “true” and “false.”.

Answer:

Booleans are “truth values” — they are a data type that can contain either the value true or false. (These values may be represented as 1 or 0 in other programming languages!) Boolean statements are statements that evaluate to be true or false.

What is the difference between a row and a column? Give examples

Answers

Answer:

bruh this a math question not tech

Explanation:

Answer:

a row is like stuff lined up side by side and a column could be many things but one of then is like a row of stuff but vertical

hope i help can u pls brainliest i need it :)

Scenario: You are part of an IT group managing Active Directory for a mid-size organization. A contracted research group with their own IT team operating from a remote location with a slow network connection has requested that they be able to setup a Child Domain in your organization's domain. The remote IT teams argument is based on their slow network, and their need to access and administer the local server that would need to exist in their remote location. Your team is split between allowing the Child Domain or recommending an Organizational Unit and delegating the remote IT team access. Yours is the deciding vote -- and cost is being considered a deciding factor. What option do you support as the best option in this scenario? What DC configuration for the remotely located server would be the best option?
If instead of cost, the deciding factor was the slow speed of their network, what option would you support as the best option?

Answers

Explanation:

1.

the answer to the first question is organizational unit. this is because in this scenario that we have before us, cost is a deciding factor. a unit as this can adapt to changes, it is flexible and also not very complex

2.

answer to question 2 is PDC emulator. this emulator can perform the function synchronization of time across every domain controller that is in the domain. other of its functions are, authentication and changing of passwords.

3.

the answer to the 3rd question is child domain. It is a factor in this scenario because it works well in a situation where there is an issue of slow network connection.

Low level security is designed to detect and impede _____ some unauthorized external activity Some None Most All

Answers

Answer:

Low-level security is designed to detect and impede some unauthorized external activity.

Examples of low-level security systems include:

Basic physical obstacles to defense  Locks for increased-security  Simple lighting coverage  Standard alarm Systems

Explanation

Protection devices that prevent and track any unwanted external actions are called Low-Level security measures.

Other obstacles to the installation of the security system, such as reinforced doors, fences, high-security locks, and window bars and grates, are often installed after simple physical protection barriers and locks have been created.

Also, a simple lighting system that could not be more complex than the standard security lighting systems over windows and doors and a regular security warning system that will be an unattended unit that offers monitoring capability and sound warnings at the location of unwanted entry.

Storage facilities, convenience shops, and small business premises are some of the locations that incorporate low-level security devices.

Cheers

المساعد للWhat property of a metal describes its ability to be easily drawn into
a wire but not rolled into a sheet without splitting? iww.

Answers

Answer:

Ductility

Explanation:

Select the correct statement(s) regarding digital baseband modulation.
a. similar to analog signal modulation, logical ""1s"" and ""0s"" are represented by carrier wave amplitudes, frequencies, or phase angles
b. QAM is a modulation technique in which both carrier amplitude and phase angle changes represent logical data
c. with QAM, two carrier waves of the same frequency, but separated by π/2 radians, are used to represent logical data
d. all statements are correct

Answers

Answer:

The answer is "Option d".

Explanation:

The electronic firmware synchronization was its method where even the series of bytes is amplified even before the transmission process into to the sound waves and, thus, and in conceptual "1s" and "0s" represented by large font, wavelengths, or switching frequency.

QAM utilizes both magnitudes of the transporter and adjustments in the phase shift. Rational data is represented by [tex]\frac{\pi}{2}[/tex] cartesian coordinates for both the carries waves of the same wavelengths and represents the result in total.

(ill give brainliest to the first one who answers)
Try out the improved version of the pet app that gives the user information about pet stores close by, which uses new sources of input. Determine the information that the app gets from each source of input. (please answer each and every one of them)

USER
PHONE SENSOR
INTERNET

Answers

Answer: it gives address the time to get there the things they selll

Explanation:

In which setting would you be least likely to find a full-time A/V technician?



A.) stadium

B.) concert hall

B.) restaurant

D.) school

Answers

Answer: resturant

Explanation: Resturants are about making food, not about making electric. The answer to the question is resturant.

Hope this helps!

Other Questions
Which region is being described: largest, along the Atlantic Ocean and location of the oldest city in the state?Coastal PlainValley RidgePiedmontBlue Ridge Which is better to buy 4.20 for 6 cans or 8.00 for 10 cans is a dolerite a mineral or a rock What's the difference between THE FIRST and FIRST? Find all whole values for y for which the double inequality is true: -5 Which of the following is the final maturity score for a carcass with B70 skeletal maturity and B10 lean maturity? A. B20 B. B30 C. B40 D. B50 Read the passage from The Odyssey - Penelope.Ruses serve my turnto draw the time outfirst a close-grained webI had the happy thought to set up weavingon my big loom in the hall. I said, that day:'Young menmy suitors, now my lord is deadlet me finish my weaving before I marry,or else my thread will have been spun in vain.It is a shroud I weave for Lord Laerteswhen cold Death comes to lay him on his bier.The country wives would hold me in dishonorif he, with all his fortune, lay unshrouded.'I reached their hearts that way, and they agreed.So every day I wove on the great loom,but every night by torchlight I unwove it;and so for three years I deceived the Akhaians.Which line from the passage best shows that Penelope is clever?I had the happy thought to set up weavingThe country wives would hold me in dishonorSo every day I wove on the great loomand so for three years I deceived the Akhaians States were still independent under the Articles. TrueFalse Urine is produced by the body to rid itself of wastes the normal chemical composition of urine is mostly water but it also includes nitrogenous molecules creatine and other metabolic waste units urine is a solution that can be greater than 95% of water what property of water makes watee so helpful in ridding the body of wasteA.water cohesive forces create surface tension upon its surface B. Water is a versatile solvent C. Water is expands upon freezingD.water has a high specific heatANSWER FAST PLSSS Which of the following statements are true about the graph of f(x) = 6(x + 1)2 -9?Check all of the boxes that apply.The vertex is (1, -9).The graph opens upward.The graph is obtained by shifting the graph of f(x) = 6(x + 1)2 up 9 units.The graph is steeper than the graph of f(x) = x2.The graph is the same as the graph of f(x) = 6x2 + 12x - 3. i need help with this asap!homework is due tomorrow. What did the Muslim traders start to use to help spread knowledge Evaluate 0.1m + 8- 12n when m=30 and n = 1/4 answer Craigmont uses the allowance method to account for uncollectible accounts. Its year-end unadjusted trial balance shows Accounts Receivable of $104,500, allowance for doubtful accounts of $665 (credit) and sales of $925,000. If uncollectible accounts are estimated to be 0.5% of sales, what is the amount of the bad debts expense adjusting entry? A. $4,625 B. $3,960 C. $5,290 D. $4,750 E. $4,825 57,1 17. Find x- and y-intercepts. Write ordered pairs representing the points where the line crosses the axes.y= 1/3 x 2/3 Write about first experience any experience write a letter 1.Solve: 12 2 Its urgent need these answered, please the area of a trapezium is given by the formula A=1/2h(a+b), where h is the height and a and b are the measures of the two bases. what is the height of a trapezoid with an area of 24 square inches if the two bases measure 4 inches and 6 inches? Are the givenequations parallel,perpendicular, orneither?y = 3x + 5y = 3x - 7 The table represents the relationship between a length measured in meters and the same length measured in kilometers. 1. Complete the table.Type the answers in the boxes below.meters kilometers1,000 13,500 500 75 1 x 2. Write an equation for converting the number of meters to kilometers. Use x for number of meters and y for number of kilometers.Type the answer in the box below.