1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Allushta [10]
3 years ago
5

Suppose that the code below is the body of some loop. Given variables x and y write some code that reads a value into the variab

les, respectively, then prints out the value of x divided by y. Use a continue statement to make sure that nothing is written to court when y is 0.
Computers and Technology
1 answer:
ra1l [238]3 years ago
4 0

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.

You might be interested in
What is a mixer? BTW NOT just any mixer....a mixer in music<br> THis is for tech theater class
ASHA 777 [7]

Answer:

it changes the level of music, such as bass level or sweter level

6 0
3 years ago
A touch screen is classified as a special type of scanning device true or false
Arte-miy333 [17]
The anwser is true. It is special type


6 0
3 years ago
A device that is used to convert handwriting to text on a computer screen is a(n) _____.
charle [14.2K]
The correct answer is Electronic Paper Display. It is a device that is used to convert handwriting to text on a computer screen. IT is also called as e-paper that mimic the appearance of ordinary ink on paper..
3 0
3 years ago
Read 3 more answers
What is the largest computer file size, megabyte , gigabyte, terabyte
STatiana [176]

The terabyte is the largest computer file size because it has 1024 gigabytes each of which has 1024 megabytes. Therefore, the the terabyte can be subdivided into megabytes or gigabytes.

3 0
2 years ago
Read 2 more answers
Which Statement below is most true about the CTE programs?
frozen [14]

Answer:

All of the above are correct about the CTE programs.

Explanation:

All of the statement that are mentioned here about CTE program are true.

CTE stands for career and technical education program. In this program, high career demand courses has been offered such as, health care, business management, Law, hospitality etc.

These as these course have high demand, therefore 6 of the 10 hardest to fill positions are in the technical field or require a CTE background.

As few of the courses are leading fields such as Heath care, STEM (Science, Technology, Engineering and Mathematics) and Information Technology that is why, half of the CTE learners enrolled in these courses.

In these classroom, students are interacted with employers to offers internships.  

All the statements about CTE program are true, so the most true option is all of above, which is option D.

3 0
3 years ago
Other questions:
  • Select all that apply. Hyperlinks can appear as: words pictures symbols trademarks
    12·2 answers
  • When building systems, the only two entities that constitute software engineering are people and process.
    9·1 answer
  • What does prominent hyperintensity mean relating to MRI?
    5·1 answer
  • What is the Documenter?
    10·1 answer
  • A network administrator notices that some newly installed Ethernet cabling is carrying corrupt and distorted data signals. The n
    10·1 answer
  • Which of the following represents the biggest difference between asymmetric and symmetric cryptography?
    9·1 answer
  • A bubble starts by comparing the first item in the list to all the remaining items, and swaps where the first item is ____ a lat
    9·2 answers
  • Calculate the total and average number from 1 to 100<br>​
    12·1 answer
  • Some scientists say that robots my become self - aware in the near future Do you think this is possible?​
    10·1 answer
  • A new president has been elected. She promises to lower taxes drastically. What is most LIKELY to happen as a result of this dec
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!