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
Elena L [17]
3 years ago
5

Draw a flowchart or write pseudocode to represent a program's logic that allows the user to enter a value. The program multiplie

s the value by ten and outputs the result.
Computers and Technology
1 answer:
PIT_PIT [208]3 years ago
5 0

Ill choose flowchart. Look picture for the answer

ask me if you have any doubts about my answer.

You might be interested in
Using reliable internet sources, identify three ways we use analog and digital signals in our everyday lives.
Montano1993 [528]
Clocks maybe is the answer. I really don’t know
7 0
3 years ago
You approach a railroad crossing with a cross buck sign that has no lights or gates. What should you do?
dalvyx [7]
You should or must stop 50 feet away from it.
8 0
3 years ago
Read 2 more answers
When you see this traffic signal is turned on, you may _____________________.
antiseptic1488 [7]
I think c not sure tho
8 0
3 years ago
Read 2 more answers
In this assignment, you will create a flashcard app for teaching addition and multiplication. The student will choose the type o
Anna11 [10]

Answer:

See explaination

Explanation:

import java.util.*;

import java.lang.Math;

public class Main

{

public static double getRandomDoubleBetweenRange (double min, double max)

{

double x = (Math.random () * ((max - min) + 1)) + min;

return x;

}

public static void main (String[]args)

{

int option, number_of_problems, correct_answer;

double max_operand, average =

0, user_answer, sum, first_number, second_number, multiply,

sum_or_multiply;

Scanner user_input = new Scanner (System.in);

do

{

System.out.println

("Choose the type of problem: \n1. Addition \n2. Multiplication \n3. Mixed \n4. Quit");

option = user_input.nextInt ();

switch (option)

{

case 1:

correct_answer = 0;

System.out.println ("How many problems?");

number_of_problems = user_input.nextInt ();

System.out.println ("Largest operand?");

max_operand = user_input.nextDouble ();

for (int i = 0; i < number_of_problems; i++)

{

first_number = getRandomDoubleBetweenRange (0, max_operand);

second_number = getRandomDoubleBetweenRange (0, max_operand);

System.out.println (first_number + " + " + second_number +

" = ?");

user_answer = user_input.nextDouble ();

sum = first_number + second_number;

if (sum == user_answer)

{

System.out.println ("Correct!");

correct_answer = correct_answer + 1;

}

else

{

System.out.println ("Incorrect, The Correct answer is " +

sum);

}

}

average = correct_answer * 100 / number_of_problems;

System.out.println ("You answered " + correct_answer +

" out of " + number_of_problems +

" correctly. Your average was " + average);

break;

case 2:

correct_answer = 0;

System.out.println ("How many problems?");

number_of_problems = user_input.nextInt ();

System.out.println ("Largest operand?");

max_operand = user_input.nextDouble ();

for (int i = 0; i < number_of_problems; i++)

{

first_number = getRandomDoubleBetweenRange (0, max_operand);

second_number = getRandomDoubleBetweenRange (0, max_operand);

System.out.println (first_number + " * " + second_number +

" = ?");

user_answer = user_input.nextDouble ();

multiply = first_number * second_number;

if (multiply == user_answer)

{

System.out.println ("Correct!");

correct_answer = correct_answer + 1;

}

else

{

System.out.println ("Incorrect, The Correct answer is " +

multiply);

}

}

average = correct_answer * 100 / number_of_problems;

System.out.println ("You answered " + correct_answer +

" out of " + number_of_problems +

" correctly. Your average was " + average);

break;

case 3:

correct_answer = 0;

System.out.println ("How many problems?");

number_of_problems = user_input.nextInt ();

System.out.println ("Largest operand?");

max_operand = user_input.nextDouble ();

for (int i = 1; i <= number_of_problems; i++)

{

first_number = getRandomDoubleBetweenRange (0, max_operand);

second_number = getRandomDoubleBetweenRange (0, max_operand);

if (i % 2 == 1)

{

System.out.println (first_number + " + " + second_number +

" = ?");

user_answer = user_input.nextDouble ();

sum_or_multiply = first_number + second_number;

if (sum_or_multiply == user_answer)

{

System.out.println ("Correct!");

correct_answer = correct_answer + 1;

}

else

{

System.

out.println ("Incorrect, The Correct answer is " +

sum_or_multiply);

}

}

else

{

System.out.println (first_number + " * " + second_number +

" = ?");

user_answer = user_input.nextDouble ();

sum_or_multiply = first_number * second_number;

if (sum_or_multiply == user_answer)

{

System.out.println ("Correct!");

correct_answer = correct_answer + 1;

}

else

{

System.

out.println ("Incorrect, The Correct answer is " +

sum_or_multiply);

}

}

}

average = correct_answer * 100 / number_of_problems;

System.out.println ("You answered " + correct_answer +

" out of " + number_of_problems +

" correctly. Your average was " + average);

break;

case 4:

System.out.println ("Thanks for playing.");

break;

default:

System.out.println ("Please choose a valid option");

break;

}

}

while (option != 4);

}

}

3 0
3 years ago
Select all functions of utilities.
vivado [14]

Answer:

provides an easy way for workers to interact with their computers

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • In your own words, explain the role of scientific investigation in the development of the Theory of Evolution.
    6·1 answer
  • Calculate the weighted grade for each student that appears in the data file. You may calculate the grade based on total earned p
    13·1 answer
  • In distributed dos attacks, the attacker sends messages directly to ________. bots the intended victim of the dos attack backdoo
    7·1 answer
  • The inability of BAE Automated Systems to create an automated baggage handling system led to a significant delay in the opening
    10·1 answer
  • How to engage more underrepresented and under resourced students in stem programs?
    10·1 answer
  • Special words are those words that start and end with the same letter. [14]
    12·1 answer
  • Complete each sentence
    10·1 answer
  • A computer has three main modules that have individual reliabilities of 0.77, 0.94, and 0.81. Because of recent failures, manage
    15·1 answer
  • What can you use to make sure that you have no errors in Word Online?
    5·1 answer
  • Which of the following are the most important reasons people in the 1920s were so interested in seeing lifelike stories in audio
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!