Answer:
- num1=10
- num2 =20
- num3="30"
- sum = num1+num2+num3
- print (num1)
- print (num2)
- print (num3)
- print (sum)
The error is at line 3. The variable num3 has been assigned a string value with use of the quotes.
To fix the error, take away the quotes from the number 30, since the arithemetic operation cannot be carried out on the string in python program language.
Explanation:
Answer:
public static int maxMagnitude(int a, int b){
int max;
if (a>b){
max = a;
}
else{
max = b;
}
return max;
}
The complete program calling the method is given in the explanation section
Explanation:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Please Enter two numbers");
int num1= in.nextInt();
int num2 = in.nextInt();
System.out.println("The largest magnitude number is: "+maxMagnitude(num1,num2));
}
public static int maxMagnitude(int a, int b){
int max;
if (a>b){
max = a;
}
else{
max = b;
}
return max;
}
}
The maxMagnitude() method uses if/else statement to compare two ints and return the larger one
Answer:
Assuming that the distance from Chicago Illinois to Copenhagen Denmark is 4200 miles and the speed of light is 186,400 miles per second;
The time difference 10 milliseconds in the session log and the calculated time of 22.5 milliseconds.
Explanation:
The TCP three way handshake connection time is determined by the distance between the connecting hosts and the speed of the link.
If the distance between the hosts is 4200 miles and the link speed is an assumed speed of light 186,400 miles per second, the TCP session time is;
Time = distance/ speed
Time = 4200 / 186400
Time = 0.0225 seconds. = 22.5 milliseconds
But Johnny's TCP session time is 10 milliseconds, therefore Johnny is lying about the source IP address from Copenhagen Denmark.
Answer:
B Amount of digital Information doubles every year .
Explanation:
The amount of digital information doubles every year while the cost of storing this digital data falls as the number of kilobytes that can be stored on given media doubles with each passing year which in turn gives reduced cost on the media .In this era of big data there is a great need for information that is easily accessible and readily available for sharing for example cloud computing.
A career in information technology that involves using or managing computer systems is option b: Network architect.
<h3>What is the field of information technology?</h3>
The field of information technology is known to be called IT and this is one that covers the aid, administration, as well as the design of telecommunications and that of the computer systems.
Note that the positions in this field is made up of system analysts, software programmers, and others.
Hence, A career in information technology that involves using or managing computer systems is option b: Network architect.
Learn more about information technology from
brainly.com/question/14314381
#SPJ1