Answer:
Written in Java
import java.util.*;
public class Project01{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num1,num2;
System.out.print("Enter first number: ");
num1 = input.nextInt();
System.out.print("Enter second number: ");
num2 = input.nextInt();
System.out.println(num1+" + "+num2+" = "+(num1 + num2));
System.out.println(num1+" - "+num2+" = "+(num1 - num2));
System.out.println(num1+" * "+num2+" = "+(num1 * num2));
System.out.println(num1+" / "+num2+" = "+(num1 / num2));
System.out.print("The average of your two numbers is: "+(num1 + num2)/2);
}
}
Explanation:
import java.util.*;
public class Project01 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
This line declares myfirstnum and mysecnum as integer
int myfirstnum,mysecnum;
This line prompts user for first number
System.out.print("Enter first number: ");
This line gets user input
myfirstnum= input.nextInt();
This line prompts user for second number
System.out.print("Enter second number: ");
This line gets user input
mysecnum = input.nextInt();
This line calculates and prints addition operation
System.out.println(myfirstnum+" + "+mysecnum+" = "+(myfirstnum + mysecnum));
This line calculates and prints subtraction operation
System.out.println(myfirstnum+" - "+mysecnum+" = "+(myfirstnum - mysecnum));
This line calculates and prints multiplication operation
System.out.println(myfirstnum+" * "+mysecnum+" = "+(myfirstnum * mysecnum));
This line calculates and prints division operation
System.out.println(myfirstnum+" / "+mysecnum+" = "+(myfirstnum / mysecnum));
This line calculates and prints the average of the two numbers
System.out.print("The average of your two numbers is: "+(myfirstnum + mysecnum)/2);
}
}
Tormund wants to build a proxy firewall for his two computers, A and B. How can he build it?
A.
by connecting computer A with computer B and computer B to the proxy firewall
B.
by connecting a different firewall to each computer
C.
by connecting computer A to computer B through the proxy firewall
D.
by connecting only one of the computers to the firewall
Answer:
b
Explanation:
WHAT DOES INFORMATION TECHNOLOGY DO??
Do they offer services or products
<BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>
</FORM>
</BODY>
</HTML>
Write the question of this programming .
Answer:
The correct answer to this question is given below in the explanation section.
Explanation:
This is an inference question. I mean that in this question, an answer is given, you have to generate the question.
The given code is :
BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>
</FORM>
</BODY>
</HTML>
So, the answer (i.e. to write a question) is
Write a HTML code that displays a button in its body with the text "Submit Your Form ".
Which of the following would be used to communicate an idea or concept visually? podcast transcript building design speech
A.Podcast
B.Transcript
C.Building design
D.Speech
Answer:
C. building design
Explanation:
I did the test
A source mainly provides
from a text or piece of media.
Answer:
✔ information
A source mainly provides information from a text or piece of media.
Explanation:
because of edge
Answer:
Information is correct !!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Explanation:
May I have brainiest but its okay if not
Stay at least _____ behind the vehicle ahead of you at all times.
A. 3 seconds
B. 4 seconds
C. 3 car lengths
D. 4 car lengths
Answer:
B 4 seconds
Explanation:
You should stay 4 seconds away from a vehicle at all times at the same speed as the other vehicle or vehicles.
PLEASE HELP!!
Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data passed from one computer to another?
message
package
packet
transmission
Answer:
Paquete de red o paquete de datos es cada uno de los bloques en que se divide la información para enviar, en el nivel de red. Por debajo del nivel de red se habla de trama de red, aunque el concepto es análogo. En todo sistema de comunicaciones resulta interesante dividir, la información a enviar, en bloques de un tamaño máximo conocido. Esto simplifica el control de la comunicación, las comprobaciones de errores, la gestión de los equipos de encaminamiento (routers), etcétera.
Al igual que las tramas, los paquetes pueden estar formados por una cabecera, una parte de datos y una cola. En la cabecera estarán los campos que pueda necesitar el protocolo de nivel de red; en la cola, si la hubiere, se ubica normalmente algún mecanismo de comprobación de errores.
Explanation:spero teyaudee
Answer:
Packet
Explanation:
A data packet is the precisely formatted unit of data that travels from one computer to another.
(Confirmed on EDGE)
I hope this helped!
Good luck <3
Linux is a powerful and free OS®️
-True
-False
Answer:
TRUEE
Explanation:
Sketch f(x) = 5x2 - 20 labelling any intercepts.
Answer:
The graph of the function is attached below.The x-intercepts will be: (2, 0), (-2, 0)The y-intercept will be: (-20, 0)Explanation:
Given the function
[tex]f\left(x\right)\:=\:5x^2-\:20[/tex]
As we know that the x-intercept(s) can be obtained by setting the value y=0
so
[tex]y=\:5x^2-\:20[/tex]
switching sides
[tex]5x^2-20=0[/tex]
Add 20 to both sides
[tex]5x^2-20+20=0+20[/tex]
[tex]5x^2=20[/tex]
Dividing both sides by 5
[tex]\frac{5x^2}{5}=\frac{20}{5}[/tex]
[tex]x^2=4[/tex]
[tex]\mathrm{For\:}x^2=f\left(a\right)\mathrm{\:the\:solutions\:are\:}x=\sqrt{f\left(a\right)},\:\:-\sqrt{f\left(a\right)}[/tex]
[tex]x=\sqrt{4},\:x=-\sqrt{4}[/tex]
[tex]x=2,\:x=-2[/tex]
so the x-intercepts will be: (2, 0), (-2, 0)
we also know that the y-intercept(s) can obtained by setting the value x=0
so
[tex]y=\:5(0)^2-\:20[/tex]
[tex]y=0-20[/tex]
[tex]y=-20[/tex]
so the y-intercept will be: (-20, 0)
From the attached figure, all the intercepts are labeled.
how to take a pic with a cumputer
Answer:
Ctrl+Shift+4
Explanation:
Answer:
Use Snip+Sketch on your taskbar
It looks like this~
What must you consider when determining the efficiency of an algorithm? Select two choices.
Answer:
C. The number of characters used to write the program
And
D. The length of time required to run the program
Explanation:
Hope this helped
Does anyone have a leg pet on adopt me? Ty!
Answer:
no
Explanation:
I have a legendary pet in adopt me, these are the legendaries im TRADING:
frost furry, ride or fly kitsune, mega neon owl (Traded), and kangeroo (traded).
are you interseted in anything?
Which describes the qualifications for someone in Law Enforcement Services?
a. juggling multiple tasks, communication skills for interviewing people, and confidence in challenging suspicious people
b. knowledge of laws and procedures, accuracy when preparing legal documents, and integrity
c. communication skills for working with prisoners, ability to use handcuffs, self-control for working with angry people
d. social awareness and communication skills, first-aid skills, and knowledge of law and procedures
Answer:
D maybe
Explanation:
im not entirely sure but d seems most right
Answer:
yes it is d
Explanation:
d
1.What is the measurement unit of clock speed of computer
Answer:
Hertz (Hz)
Explanation:
4.5 code practice edhesive
Answer:
n= input("Please enter the next word: ")
x=1
while(n != "STOP"):
print("#" + str(x) + ": You entered " + n)
x=x+1
n= input("Please enter the next word: ")
print("All done. " + str(x-1) + " words entered.")
Explanation:
David wanted to build a Temple for God in________
A.) Hebron
B.) Bethlehem
C.) Jerusalem
Answer: The answer would be Bethlehem!
Which of the following expressions shows the correct amount of sales tax for the computer at Store A? Select all that apply.
6%($1,200)
0.6($1,200)
0.06($1,200)
One-sixth($1,200)
StartFraction 3 over 50 EndFraction($1,200)
Answer:
6%($1,200) 0.06($1,200) 3/50($1,200)
Explanation:
hope this helps sorry if i am wrong
have a nice day
Answer:
a,c,e
Explanation:
it just makes sense U^U
how do we Rewrite the following Python code to avoid error. mark=inpt("enter your mark ")
Answer:
mark=input("enter your mark ")
Explanation:
the input method is used to get the input from the user.
The ability to understand a person's needs or intentions in the workplace is demonstrating
personnel
perception
speaking
listening
Answer:
perception i do believe is the answer
PLEASE HELP asap 60 POINTS
needs to be in Java
A programmer has written a method called replaceLetter that counts the amount of times a letter is present in a word. Your job is to modify this existing method to fulfill a new purpose.
Rather than count the instances of a letter in a String, write a program that replaces all instance of one letter with another. You should directly modify replaceLetter to get this program to work. In the starter code, replaceLetter only has two parameter values. Your new version should have a third parameter to indicate which String value is replacing the existing letter.
For example,
replaceLetter("hello", "l", "y")
returns
"heyyo"
Sample output:
Enter your word:
hello
Enter the letter you want to replace:
l
Enter the replacing letter:
x
hexxo
Hint: The letters will be assigned from the user as String values. Make sure to use String methods to compare them!
import java.util.Scanner;
public class JavaApplication45 {
public static String replaceLetter(String txt, String txt1, String txt2 ){
char one = txt1.charAt(0);
char two = txt2.charAt(0);
String newTxt = "";
for (int i = 0; i < txt.length(); i++){
char c = txt.charAt(i);
if (c == one){
newTxt += two;
}
else{
newTxt += c;
}
}
return newTxt;
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter your word:");
String word = scan.nextLine();
System.out.println("Enter the letter you want to replace:");
String txt1 = scan.next();
System.out.println("Enter the replacing letter:");
String txt2 = scan.next();
System.out.println(replaceLetter(word,txt1,txt2));
}
}
I hope this helps!
when employees are hired, they agree to only use cel lphones during breaks. how would you classify this ?
Answer:
I would clasify that they do this so they can contact any family memebers.
Explanation:
Select all the mistakes in the following: There may be more than one.
if (count = 10):
print ("Hello")
elseif (count > 100):
print ("Good-bye")
else
print("WAIT!")
If anyone knows the answer that would be greatly appreciated. Thanks
The if statement should have two equal signs, the elseif should be elif, and the else statement should have a colon at the end of it. There might be more errors in the indentation but I cant know unless I see a picture of the problem. The print statement should be indented into the if, elif, and else statements.
HELP ME ASAP
Fred is using an enterprise system to create a database solution for his office. What would be the advantage of using an enterprise system?
Enterprise systems are single processor systems that do not take up many resources. However, they can be pipelined over multiple processors to lesson the computation time. Enterprise solutions provide a single database to simplify operation. These systems are faster and provide data redundancy.
Answer:
Enterprise solutions provide a single database to simplify operation
Explanation:
You have to match the letter nexts to the numbers
Answer:
Word is for business letter 4+a
2+c Monthly budget expenses
3+b is for presentation
1+d department store inventory
Who you think is better? Ninja or TFue ,btw do you know who icebear is?
Answer:
no, no i dont think i will.
Explanation:
Learning Task 5. Identify the terms being described below. Write your answer in your answer
sheet.
1. This refers to the collection, transportation, processing or disposal, managing and
monitoring of waste materials.
2. This refers to the hazard control which involves the measure of replacing one hazardous
agent or work process with less dangerous one.
3. A very important method of controlling hazards which involves proper washing of your hair,
skin, body and even your clothes.
4. This refers to the preparedness for the first and immediate response in case of any type of
emergency.
5. This hazard control refers to the removal of a specific hazard or hazardous work process.
6. What is the term used to call the range of concentration over which a flammable vapor
mixed with air will flash or explode if an ignition is present?
7. A cross-disciplinary area concerned with protecting the safety, health and welfare of people
engaged in work or employment.
8. The term used in hazard control which involves changing a piece of machinery or work
process.
9. The term used to call any piece of equipment which is used to protect the different parts of
the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots,
etcetera.
10. This is a form of hazard control which involves manipulation of worker/employee’s schedule
and job rotation.
Answer:
1. Waste management.
2. Substitution.
3. Personal hygiene practices.
4. Emergency preparedness.
5. Elimination.
6. Flammability limit.
7. Occupational safety and health (OSH).
8. Engineering controls.
9. Personal protective equipment (PPE).
10. Administrative controls.
Explanation:
1. Waste management: this refers to the collection, transportation, processing or disposal, managing and monitoring of waste materials.
2. Substitution: this refers to the hazard control which involves the measure of replacing one hazardous agent or work process with less dangerous one.
3. Personal hygiene practices: a very important method of controlling hazards which involves proper washing of your hair, skin, body and even your clothes.
4. Emergency preparedness: this refers to the preparedness for the first and immediate response in case of any type of emergency.
5. Elimination: this hazard control refers to the removal of a specific hazard or hazardous work process.
6. Flammability limit: is the term used to call the range of concentration over which a flammable vapor mixed with air will flash or explode if an ignition is present.
7. Occupational safety and health (OSH): a cross-disciplinary area concerned with protecting the safety, health and welfare of people engaged in work or employment.
8. Engineering controls: the term used in hazard control which involves changing a piece of machinery or work process.
9. Personal protective equipment (PPE): the term used to call any piece of equipment which is used to protect the different parts of the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots, etcetera.
10. Administrative controls: this is a form of hazard control which involves manipulation of worker/employee’s schedule and job rotation.
The sales of last 6 months are stored in a list,
as follows
list1 = (12500, 35000, 12000, 40000, 55000,
60000]
How can you calculate the average sales?
list1 = [12500, 35000, 12000, 40000, 55000,60000]
print(sum(list1)/len(list1))
We take the sum of all the elements in the list and divide the sum by the quantity of the elements. You can put however many elements in this list and you'll always get the average using the algorithm above.
PLS HURRY!!!
Look at the image below
Answer:
Explanation:
return value is the second one
function is third one
parameter is first one
Answer ▪ return value ↪ a value that can be passed from a function back to the calling part of a program.
Answer ▪ function ↪ a group the instructions that can be used to organize a program or perform a repeated task.
Answer ▪ parameter ↪ a value that can be passed to a function.
[SEE ATTACHED IMAGE]
SpymoreWhich best describes what a works-cited list includes?
sources found during research
sources cited in a paper
sources quoted in a paper
sources examined during research
Answer: Sources cited in a paper
Explanation:
Answer:
B
Explanation:
On Scratch (Picture above)
Answer:
see image below
Explanation:
This is a bit cumbersome, but it does the job. Not sure if it can be done much more efficiently. For these kind of operations, you'd be better off with a text based programming language.