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
nasty-shy [4]
3 years ago
15

Jamal wants to create a program that will play music during the afternoon. Which kind of loop should be used in the program?

Computers and Technology
2 answers:
Colt1911 [192]3 years ago
7 0

Answer:

i could be completely wrong, but my guess is "while"

Explanation:

daser333 [38]3 years ago
7 0

Answer:

I'm going to take a guess "during"?

You might be interested in
Setting up network encryption involves
fiasKO [112]
A or B cuz you need one of the two to have WiFi cuz my computer asks if i have an adapter and then SSID
7 0
3 years ago
The arrival of personal computer technology gave rise to client server networks that replaced traditional mainframe and minicomp
zvonat [6]

Answer:

The replacement of traditional mainframe and minicomputers  is a prime example of technological paradigm shift.

Explanation:

As the change of traditional mainframe and minicomputers to personal computers is due to the technological advancements, which led to creation of client server networks. This paradigm shift is the technological shift as the main reason for the shift is due to the technical advancement and enhancement.

8 0
3 years ago
Which of the following is NOT true about high-level programming<br> languages?
aniked [119]

Answer:

this can't be answered because you didn't show the "following" answers

8 0
3 years ago
Read 2 more answers
Building relationships during your career exploration called?
BARSIC [14]
This would be  called Networking
7 0
3 years ago
Read 2 more answers
A prime number is a number that is divisible only by itself and 1. Write a program that asks a user for an integer value and the
Rashid [163]

Answer:

The Solution Code is written in Java.

  1. public class Main {
  2.    public static void main(String[] args) {
  3.        System.out.print("Please enter an integer: ");
  4.        Scanner input = new Scanner(System.in);
  5.        int number = input.nextInt();
  6.        System.out.print("Prime numbers less than or equal to " + number + " : ");
  7.        for(int i=2; i <= number; i++){
  8.            if(checkPrime(i)){
  9.                System.out.print(i + " ");
  10.            }
  11.        }
  12.    }
  13.    public static Boolean checkPrime(int num){
  14.        for(int i=2; i < num; i++)
  15.        {
  16.            if(num % i == 0){
  17.                return false;
  18.            }
  19.        }
  20.        return true;
  21.    }
  22. }

Explanation:

Firstly, we create a function to check if a number is prime (Line 18 - 27).

  • This function will take one input value which is an integer, num.
  • To check if the input num is a prime, we can use modulus operator, %, to confirm if the num is divisible by any number starting from 2 to num - 1 (Line 19 - 24).
  • If the num is divisible by any number expect 1 and itself, it should equal to zero and return false to indicate it is not a prime number.
  • If all the num (except 1 and itself) is not divisible, the function will return true (Line 25).

Next, in our main program part (Line 3 - 16)

  • Prompt the user to input a number (Line 5 - 7)
  • Using a for-loop, we can keep calling the checkPrime() function by passing a current number (starting from 2 to input number) as argument (Line 12). The checkPrime() function will run and return true it the current number is prime, return false if it is not prime.
  • If the checkPrime() function return true, it will print the current number before proceed to the iteration of the for-loop to repeat the same check prime procedure (Line 13)
  • At the end all the prime numbers less than or equal to the input number will be printed out in the terminal
8 0
3 years ago
Other questions:
  • Dell Computer purchases parts and resources for its computers from multiple suppliers that are spread across the world. This pra
    8·1 answer
  • In JAVA, answer the following:
    15·1 answer
  • Which is the best method of marketing a game to casual players?
    14·2 answers
  • The adjustable contact of a potentiometer is placed at the center of its adjustment. If the total resistance is 5 kOhms, what is
    9·1 answer
  • Jack is an accountant. He can't access the spreadsheet software, which is installed on the server. What should Jack do?
    5·2 answers
  • You need to protect sensitive files from unauthorized users even if the disk is stolen. What feature should you use and on what
    8·1 answer
  • Even if you cannot afford it you should donate at least 5 of your earnings to charity true or false
    8·1 answer
  • Which of the following is a public location that sells Internet access? Internet café Extranet Intranet LogMeIn,
    15·1 answer
  • The cameras picture review function allows you to look at the _ you've taken
    8·1 answer
  • How to select multiple lines in mysql workbench and right shift
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!