A numeric test score is to be converted to a letter grade of A, B, or C according to the following rules: A score greater than 90 is considered an A; a score between 80 and 90, inclusive, is considered a B; and any other score is considered a C. What code segments will assign the correct letter grade to grade based on the value of the variable score?

Answers

Answer 1

The code segment makes use of conditional statements.

Conditional statements in programming are used to make decisions

The code segment in C++ is as follows

if (score > 90) {

grade = 'A';

}

else if (score >= 80 && score < =90) {

grade = 'B';

}

else {

grade = 'C';

}

The above code segments take the score, make comparison, and then determine the appropriate letter grade.

Read more about code segments at:

https://brainly.com/question/20475581

Answer 2

II and III

Explanation:If it is the test i think it is

I is incorrect because it is saying that automatically it is set as C but if the score is over 90 then you get an A if it's anything else then it's a B. This is false because then your outcome will never be C. It would only be A or B.
II is correct because it starts off by saying that if the score is greater than 90 then you'll get an A if else then if your score is equal to or greater or equal to than 80 then you get B and then if anything else then it's a C. This incoorporates everything.
III is also true because it start off by saying if anything is below an 80 then you automatically get a C. If it's anything over than 80 then if it's equal to or less than 90 then you get a b and if it's anything else then you get an A. This also checks out which means it's true.
So the answer is II and III


Related Questions

PA theme is a major message that a writer convoys through a text. you have explored many themes in the hobbit one theme in the novel is that good has the ability to triumph over evil. using specific examples from the text, explain how this theme develops over the course of the novel

Answers

Answer:

The Hobbit’s main theme is Bilbo’s development into a hero, which more broadly represents the development of a common person into a hero. At the beginning of the story, Bilbo is timid, comfortable, and complacent in his secure little hole at Bag End. When Gandalf talks him into embarking on the quest with Thorin’s dwarves, Bilbo becomes so frightened that he faints. But as the novel progresses, Bilbo prevails in the face of danger and adversity, justifying Gandalf’s early claim that there is more to the little hobbit than meets the eye.??????

Explanation:

If your company uses a non-price competition strategy what should you focus on
A. lowering prices
B. differentiation
C. creating direct competitors
D. the public sector

Answers

B- differentiation

nonprice competition strategy refers to strategy to win a business competition that does not involved lowering price of the product.

Businesses mostly do this using differentiation strategy, which is increasing the different variety of product that they sell in the market.

Which line of code will allow the user to enter their current temperature to the nearest tenth of a degree?Group of answer choicesnum1 = input(""What is your temperature?"")num1 = int(input(""What is your temperature?"")num1 =float(input(""What is your temperature?""))1num = print(""What is your temperature?)

Answers

In programming we have different data types and in this question two data types was specified, Int and float, the only data type that can receive input to the nearest tenth of degree is float, hence, float(input(""What is your temperature?""))

Data types are use as place holders, we have the primitive and non-primitive data types

Example of data types are FloatArrayIntegerDoubleString

Learn more about data types at

https://brainly.com/question/179886

Write a 20 charecter poem! for points! :)

Answers

you are wonderful as you are blue you are as blue as the sky the sky is beautiful as u are too you are red as Rose's and Rose's are full of you winter time is the mood full of winter and snow

Which of the following is true regarding computer science careers? There are a limited number of jobs in this field. There are not different job types in this field. The number will increase over the next several years. You must be a programmer to work in this field.

Answers

Answer: There are several types of jobs in this field

Explanation: i did the test

The practice of applying technology to address difficult organizational issues is known as computer science. Thus, option D is correct.

What is the carrier in the computer science?

Computers and technology have been incorporated into almost every economic sector, industry, and even organization operating in the modern economy, which is why this field is so crucial.

Because it allows me to pursue my two interests in problem-solving and creating engaging experiences, computer science is my field of choice.

I can come up with problems that are unique to a user, create and brainstorm solutions, and then put those ideas into practice through coding.

Computer scientists build, develop, and improve supply chains, content algorithms, and even job application platforms. We are already living in the age of computer science.

As technology grows increasingly pervasive in our lives and the economy, computer science becomes more crucial.

Learn more about computer science here:

https://brainly.com/question/20837448

#SPJ2

When a number gets assigned to a variable that already has a value __________. the new number overwrites the previous value at that memory location the new number gets assigned to a neighboring memory location the computer issues an error the new value is destroyed and the old value remains

Answers

Answer: the new number overwrites the previous value at that memory location

Explanation:

When a number gets assigned to a variable that already has a value, the new number overwrites the previous value at that memory location. The correct option is A.

What is assigning value?

To "assign" a variable is to symbolically link a specific piece of data to a name. Any operations performed on this "name" (or variable) must be true for all possible values.

The assignment operator is the equals sign, which should never be used for equality, and should never be followed by the double equals sign.

To assign a value to a variable, use the simple assignment operator. The assigned value is evaluated by the assignment operation.

It is possible to chain the assignment operator to assign a single value to multiple variables.

When a variable receives a new value, the previous value is overwritten.

Thus, the correct option is A.

For more details regarding assigning value, visit:

https://brainly.com/question/28587274

#SPJ2

a network consisting of nodes covering a small geographic area is a

Answers

Answer:

that is a Local Area Network (LAN)

create a parameter query where the user will enter a value to use as the criterion

Answers

Click in the Criteria row in the InsuranceType column and type [Enter Insurance Type]. Click the Run button. Type dental when prompted. Click OK.

Need Some Photography help

Answers

C I believe cause that’s what my teacher always told us to do

define the term malicious program

Answers

Malware, or malicious software, is any program or file that is intentionally harmful to a computer, network or server.

what is a copy of a theme with different color schemes called?

Answers

Answer:

A copy of a theme with different color schemes is called a Variant

Explanation:

Which of the following is a responsibility of CTSO membership?

getting all As in your classes

traveling to a national conference

conducting yourself appropriately and professionally

getting a job in your career field after graduation

Answers

Answer:conducting yourself appropriately and professionally

Explanation:

2021 edg

9. Which of the following is a disadvantage of cloud storage? * Accessibility (offline/without internet) Reduction of storage cost to organization, Increased possibility for disaster recovery, Efficient management of stored Data​

Answers

Answer:

Accessibility offline

Explanation:

to find detailed information about the origin of an email message, look at the ________________.

Answers

Answer: header

Explanation:

When you first purchase a notebook, make sure you have a ____ CD containing the installed OS so you can recover from a failed hard drive.

Answers

When you first purchase a notebook, make sure you have a RECOVERY CD. It enables the restoration of the notebook computer.

A recovery disc is a disc that enables to restore the computer to the same condition when it was bought.

Moreover, a recovery drive refers to a separate partition in the notebook that must contain the required files to restore the device if the system becomes unstable.

A recovery disc can be considered as a drive used to keep a backup of the files (e.g., images) and other types of restoration data.

Learn more about recovery disc here:

https://brainly.com/question/14217813

1. What is the difference between a columnn and a row?
2. How many rows are being used?
3. How many columns are being used? rows?
3. Who got the highest grade on Quiz 1? What is its cell reference?
5. What is the range of cell of all the names of the students?

Answers

1. Column is like the one shows as A B C it’s like a Group. row is like each person from the group like Column A is the students names Column B is their 1st quiz grades I’m sorry if ur confused I’m bad at explaining it

Lenovo Diagnostics - UEFI Version is preloaded into the BIOS on all Lenovo products except for ____________________.

Answers

Based on the information given, it can be noted that Lenovo Diagnostics - UEFI Version is preloaded into the BIOS of their products except the Ideapad models.

It should be noted that Lenovo diagnostic tools are used primarily to diagnose any hardware problems that a computer may have.

Lenovo diagnostic tools are available as a Bootable or a downloadable package. Lenovo Diagnostics - UEFI Version is preloaded into the BIOS of their products except for the Ideapad models.

Learn more about Lenovo on:

https://brainly.com/question/25397058

Which of these problems is correct if the numbers are binary numbers?Group of answer choices1 + 1 = 21 + 1 = 100 + 0 = 11 + 0 = 10

Answers

Answer:

The last one is correct.  

Explanation:

The ________ command is one of the most commonly used command-line commands. It can be used to check IP connectivity between two network devices.

Answers

Answer:

ipconfig

Explanation:

That is the actual

command

Emily is deciding whether to buy the same designer jacket her friends have. The jacket is much more expensive than a similar one from a lesser-known brand. Which questions should she consider before she buys the jacket? Check all that apply. Is advertising influencing her? What are her motivations? Has she compared prices? Is she buying at the right time? Will her sister like the jacket too?

Answers

Is advertising influencing her?
What are her motivations?
Has she compared prices?
Is she buying at the right time?

The questions that she should consider before she buys the jacket are:

Is advertising influencing her?What are her motivations?Has she compared prices?Is she buying at the right time?

What  is buying?

The act of buying an item is known to be acquiring a specific possession, or ownership/ rights to the use that thing or services. This can only be done through payment that is mostly based on the use of money :

Note that before getting something, one must consider other things such as  prices and the reasons for buying the item before one can go ahead to purchase that thing.

Learn more about buying from

https://brainly.com/question/25745683

What is data communication.. ​

Answers

What is data communication?

The exchange of data between source and a receiver by way of transmission media such as a wire cable

Hope this helps you!!

James works on history for 9/10 of an hour he works on English for 3/10 of an hour how much longer does James work on history than on English

Answers

james works 6/10 more of an hour

A(n) ________ address is the address that external entities use when communicating with your network.

Answers

Answer:

IP adress

Explanation:

the IP adress is like your home address but for your computer. it tells the whatever is connecting where it's located so it can find where to send the data

Write a program which will -

• Enter the score the student got in the test.
• Enter the maximum number of marks for the test.
• Divide the score by the maximum to work out the percentage.
• Check to see if the percentage is greater than 52. If it is then say "well done you have at least a grade 5"
• If the percentage is less than 52 then display "Unlucky, you need to revise more for the next test."
Will give out brainliest :)

Answers

Answer:

down below

Explanation:

score = input() # gets student's score input

max = input() # gets max number

percent = (score/max)*100 # multiply by a hundred to get percentage

if percent > 52: # checks if percent is greater than 52

  print("well dont you have at least a grade 5")

else # if percent is less than or equal to 52 it will print this instead

  print("Unlucky, you need to revise more for the next test.")

THIS PART IS NOT CODE:

make sure you indent/tab the print statements or else you'll get an error

URGENT!! thank you!!!!!

Answers

Answer:

Robots or automatons

Explanation:

Machines that can perform tasks historically performed by humans can improve productivity (they can work non-stop) and of course the environment is safer for workers (work is done by a machine instead) but there is job loss (people who used to do the machine's work are redundant).

if a granola bar has 5.7 grams of protein in it how many centigrams of protein does it contain?

A. 57

B. 0.57

C. 570

D. 5,700 ​

Answers

The answer is 570 hope it helps

An animation of a person standing with their arms extended out to their sides. There are 3 dimensional boxes around the torso of the person showing how to create a shirt. What animation process does the photo above help you visualize? a. Morphing c. Motion capture b. Building 3 dimensional models d. Animation rendering Please select the best answer from the choices provided A B C D

Answers

Answer:

c

Explanation:

Why was slavery more common in South Carolina than in North Carolina?
Check all of the boxes that apply.

Answers

Answer:

South Carolina, more south the more farms and agriculture so more farms mean's more workers needed.

Explanation:

Question 11
Methods that return a decimal value must be declared using what type?


a. int

b. void

c. double

d. String

e. null


Question 12

Which of the following is true when x = 15?


a. (x >= 15) && (x < 13)

b. !(x > 13) || (x > 16)

c. (x > 13) && (x < 17)

d. (x < 15) || (x > 15)

e. (x <= 13) || (x >= 17)

Answers

Answer:

11. a, 12.c

Explanation:

bc numbers must be declared as ints and 15 is greater than 13 but lesser than 17

Your grandmother tells you a dollar doesn't go as far as it used to. She says the "purchasing power" of a dollar is much less than it used to be. Explain what she means. Try to use and explain terms like inflation and deflation in your answer. ​

Answers

Answer:

The obtaining influence of a dollar is substantially less on the grounds that more cash is made and causes the value of the dollar greenback to diminish, making things increasingly costly. This is called swelling. In any case, when less cash is made, the value of a dollar greenback increments and things turn out to be more affordable. This is called flattening. As the years go on, the purchasing power of a dollar decreases and decreases.

Hope that helps. x

Other Questions
Frank is skating with his friends. His nonverbal communication is sending several messages. Which of the following below best describes the messages he is sending, both consciously and unconsciously?a.formal, serious, shy, closed, uncertainty, exhaustion, confusionb.casual, fun, concentration, warmth, confidence, health, carefree, openc.culture, class, confidence, success, work ethic, tradition, exceld.fear, anxiety, uncertainty, risk, isolation, danger, loneliness, painPlease select the best answer from the choices providedABCD(((PLEASE THE RIGHT ANSWER ITS BEEN WRONG ALL OVER THE PLACE EVERYTIME)) Given the function defined in the table below, find the average rate of change, insimplest form, of the function over the interval 4 < x < 7.f(x)354.9515623733Answer:Submit Answerattempt 2 out of 2 Part A. What is the unit rate in dollars per hour for each company? The unit rate for the 1st company is 2,86. The unit rate for the 2nd company is 2,50.Part B. Analyze Relationships Which company offers the best deal? Explain your answer. Part C. What if? Another company offers a rate of $0.05 per minute. How would you find the unit rate per hour? How can you develop your memory? Explain your answer. For philosophy sub. Find the area of the region bounded by the graphs of the equations [tex]y=2x-x^2, y=0.[/tex] Provide a sketch. Show the work! Pls help meeeee !!!!!!!!! Seven less than twice a number is 43. What is the number? What is the control group ABC has vertices A(1,1) B(5,5) and C(4,6)What is the perimeter of ABCWhat is the area of ABC? Show your work. When traveling north from the United States into Canada, you'll see the North Star (Polaris) getting _________. lower in the sky higher in the sky dimmer brighter What is the length of side a? I (not do) my homework yet. NEED ASAP Write a definition for evaluate in your own words. A meter is a measure of length. What do these three words having Ms.Thomas ordered 5 pencil packs, n notebooks, and 5 sets of makers. Write an algebraic expression that represents the cost of Ms.Thomass order 1. Which state was the firsthome of the Mormons? Find all the answer below! If you do i will personally give u brainliest my Christmas present to you Whyvis it important that News organization stay indepent of the government of political party Find the quotient. 9,270,000 100