Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
float x;
float y;
float result;
Scanner input = new Scanner(System.in);
while(true){ <em>//this is an infinite loop</em>
x = input.nextFloat(); <em>//wait the input for x</em>
y = input.nextFloat(); <em>//wait the input for y</em>
if(y == 0) {
continue; <em>//next iteration without print.</em>
} else{
result = x/y;
System.out.print(result); <em>//print the result.</em>
}
}
}
}
Explanation:
To get the numbers, you need to import Scanner class, and use the method nextFloat() to admit floats and integers.
If y is 0 then, executes the continue statement, if not prints the division between x and y.
Answer:
See explanation
Explanation:
Given
The above program that subtracts two numbers and returns the result
Required
Modify the source code to run perfectly
When the given program is tested, it displays
<em>4 minus 10 equals -6
</em>
<em></em>
<em>Which is different from the expected output of</em>
<em>10 minus 4 equals 6
</em>
<em></em>
Modify
<em>solution = minuend-subtrahend
</em>
<em>to</em>
<em>solution = subtrahend - minuend</em>
<em></em>
And that does it.
The home enabled button takes you back to your main screen
Answer:
Dots per Inch
Explanation:
Dots per Inch (DPI) in print is dependent on how you want your final image to look. It is the amount of resolution in picture. The logic is pretty simple. The more you are able to squeeze your dots per inch in an image, the more the image becomes crisp and sharp and vice versa. Consequently, it will result to a high resolution which will again translate to more sharpness.
Answer:
B. go to x: -100 y: -100
glide 2 secs to x: 0 y: 0
say Let the show begin! for 2 secs
play sound snap until done
Explanation:
Algorithms in computer programming are step-by-step processes that show how problems can be solved. To accomplish this, Sequencing, Selection, and Iteration are methods applied. Sequencing specifies the correct order in which activities are to be performed to obtain the right results. Failure to adhere to that order or reverse the steps will cause a deviation from the true result.
In the example above, the steps to perform an operation are specified to the computer. When the steps are correctly followed, the right results will be obtained.