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
Vedmedyk [2.9K]
3 years ago
7

In a certain game, the integer variable bonus is assigned a value based on the value of the integer variable score. If score is

greater than 100, bonus is assigned a value that is 10 times score. If score is between 50 and 100 inclusive, bonus is assigned the value of score. If score is less than 50, bonus is assigned a value of 0.
Required:
What code segments assigns bonus correctly for all possible integer values of score?
Computers and Technology
1 answer:
liubo4ka [24]3 years ago
8 0

Answer:

A)

IF(score > 100)

{

bonus ←← score * 10

}

ELSE

{

IF(score ≥ 50)

{

bonus ←← score

}

ELSE

{

bonus ←← 0

}

}

D)

IF(score < 50)

{

bonus ←← 0

}

ELSE

{

IF(score > 100)

{

bonus ←← score * 10

}

ELSE

{

bonus ←← score

}

}

You might be interested in
What is meant by SEO and how many types of SEO and explain it?
Andreas93 [3]

Answer:

The three kinds of SEO are: On-page SEO – Anything on your web pages – Blogs, product copy, web copy. Off-page SEO – Anything which happens away from your website that helps with your SEO Strategy- Backlinks. Technical SEO – Anything technical undertaken to improve Search Rankings – site indexing to help bot crawling.

Explanation:

<h3><u>PLEASE</u><u> </u><u>MARK</u><u> ME</u><u> BRAINLIEST</u><u> AND</u><u> FOLLOW</u><u> M</u><u> E</u><u> LOTS</u><u> OF</u><u> LOVE</u><u> FROM</u><u> MY</u><u> HEART</u><u> AND</u><u> SOUL</u><u> DARLING</u><u> TEJASWI</u><u> HERE</u><u> ❤️</u></h3>
3 0
3 years ago
Write a program that asks the user to enter the amount s/he has budgeted for a month. The amount should be between 1000 and 2000
Elena-2011 [213]

Answer:

The program to this question can be given as:

Program:

  //import package for user input.

import java.util.*;      

//define class

public class Budget                      

{

public static void main(String [] a)            //define main method.

{

//creating Scanner class object.

Scanner ob =new Scanner(System.in);    

//define variable.      

double budgetamount=0, amountspent=0 ,difference=0,total=0,num=0 ;        

int count = 0;                            

System.out.println("How much have you budgeted for the month? :");        //print message.

budgetamount=ob.nextDouble();                             //taking input

       while(budgetamount != 0)           //checkig number greater then 4 digite.

       {

           budgetamount= budgetamount/10;        

           ++count;

       }

       if(count>4)                 //condition

       {

       System.out.println("enter each expense, then type -999 to quit: ");

       while(num!=-999)               //taking expense  

       {

       total=total+num;                 //totaling expense

       num=scan.nextDouble();                  

       }

       if(total<=budgetamount)           //condtion for over budget.

       {

       System.out.print("under budget:");         //print message

       System.out.print(budgetamount-total);

       }

       else

       {

       System.out.print("over budget:");              //for under budget

       System.out.print(total-budgetamount);

       }

       }

       else

       {

       System.out.println("not valid");        //message for number lessthen 4 digit.    

       }                                      

}

}

output:

How much have you budgeted for the month? : 1200.55.

enter each expense, then type -999 to quit: 365.89

556.90

339.98

-999

over budget:1262.77

Explanation:

The explanation of this program can be given as:

In the above program we import the package in that is used for scanner class. This class is used for the input from the user after input we use the while loop and if-else statement. The while loop is the entry control loop It is used for input validation and if-else is used for the checking condition. Then we insert expense that is inserted by the user. Then we calculate under-budgeted and over-budgeted by conditional statement that is if-else. and at the last we print it.

5 0
3 years ago
In which work settings would audiovisual technicians be least likely to work behind the scenes? (Select all that apply.)
snow_tiger [21]

Answer:

The correct option is;

Industrial warehouse

Explanation:

The job functions of an audiovisual technician in industrial warehouses includes;

1) Preparation and testing as well as checking equipment out and checking of equipment back in

2) Movement of equipment into trucks and vans

3) Ensuring the timely completion of tasks

4) Learn the setup and operation of equipment prior to transportation to destination sires

5) Take part in the warehouse administration.

6 0
3 years ago
The World Wide Web (WWW) is a network of links on the Internet to documents containing text, graphics, video, and sound, but doe
alexira [117]

Answer:

True

Explanation:

The World Wide Web (www) is a global computer network accessible through the Internet. It consists of interconnected web pages that offer various types of textual and multimedia content.

The World Wide Web is based on hypertexts, that is, text files (pages) in which hyperlinks or links can be inserted that lead users from one web page to another, or to another point on that same page.

Its function is to order and distribute the information that exists on the internet.

A web browser is a program used to display web pages that may contain texts, images, videos and other multimedia content. It is the browser, and not the device, that interprets the languages ​​of the web to "draw" the pages and facilitate navigation.

6 0
3 years ago
In the movie evacuees, why were the children evacuated from large cities?
lara [203]
Because large cities were targets for the German bombers
4 0
3 years ago
Other questions:
  • You are going to interview a small business owner about creating a database for his sandwich shop and bakery. Make a list of que
    10·1 answer
  • A spreadsheet is a software program for storing, managing, and retrieving information. true or false?
    15·2 answers
  • What are three reasons teens might start drinking alcohol??
    7·2 answers
  • Online arguments that progressively escalate into insults and harsh language where the bully threatens and tries to intimidate a
    11·2 answers
  • You are managing an FTP server installed in Ubuntu Server. The server has created a very large log le, vsftpd.log. Which command
    14·1 answer
  • The following questions requires manipulation an analysis of String objects. a. Create a class named String_Manipulation with a
    6·1 answer
  • Ultraportable computers will often use ___ technology exclusively, even though their storage capacity is lower than that of a tr
    8·1 answer
  • Dsl is an example of what type of internet access?.
    5·1 answer
  • In windows, you use _____ to reorder, move, and navigate between folders.
    11·1 answer
  • An outpatient provides the following id: barbara jones, birth date 8/15/63. should a specimen be collected for this lab order?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!