Write a function that when passed a grade average will return the letter-grade based on a 90/80/70/60 grade scale.

Answers

Answer 1

Answer:

Explanation:

The following code is written in Java and creates a function called letterGrade. This function takes an int parameter for the number grade given. Then it takes that number grade and puts it through a switch function which will compare the number to the correct case and output the corresponding letter grade.

public static char letterGrade (int numberGrade) {

       char grade = ' ';

       switch (numberGrade) {

           case 90:

               grade = 'A';

               break;

           case 80:

               grade = 'B';

               break;

           case 70:

               grade = 'C';

               break;

           case 60:

               grade = 'D';

               break;

           default:

               System.out.println("Grade must be 90/80/70/60");

       }

       

       return grade;

   }


Related Questions

Every programming language has rules governing its word usage and punctuation.
True

False

Answers

Answer:

False. Every programming language has syntax rules governing its word usage and punctuation.

numStudents is read from input as the size of the vector. Then, numStudents elements are read from input into the vector idLogs. Use a loop to access each element in the vector and if the element is equal to 4, output the element followed by a newline.

Ex: If the input is 6 68 4 4 4 183 104, then the output is:

4
4
4

Answers

Here's an example solution that uses a loop to access each element in the vector idLogs and outputs the elements equal to 4

How to write the output

#include <iostream>

#include <vector>

int main() {

   int numStudents;

   std::cin >> numStudents;

   std::vector<int> idLogs(numStudents);

   for (int i = 0; i < numStudents; i++) {

       std::cin >> idLogs[i];

   }

   for (int i = 0; i < numStudents; i++) {

       if (idLogs[i] == 4) {

           std::cout << idLogs[i] << std::endl;

       }

   }

   return 0;

}

Read more on Computer code here https://brainly.com/question/30130277

#SPJ1

Which of the following could be considered an algorithm?


directions for assembling a bicycle


the pages in a book


a file system directory


an application
F

Answers

The best answer is an application

Need help with this python question I’m stuck

Need help with this python question Im stuck
Need help with this python question Im stuck
Need help with this python question Im stuck

Answers

It should be noted that the program based on the information is given below

How to depict the program

def classify_interstate_highway(highway_number):

 """Classifies an interstate highway as primary or auxiliary, and if auxiliary, indicates what primary highway it serves. Also indicates if the (primary) highway runs north/south or east/west.

 Args:

   highway_number: The number of the interstate highway.

 Returns:

   A tuple of three elements:

   * The type of the highway ('primary' or 'auxiliary').

   * If the highway is auxiliary, the number of the primary highway it serves.

   * The direction of travel of the primary highway ('north/south' or 'east/west').

 Raises:

   ValueError: If the highway number is not a valid interstate highway number.

 """

 if not isinstance(highway_number, int):

   raise ValueError('highway_number must be an integer')

 if highway_number < 1 or highway_number > 999:

   raise ValueError('highway_number must be between 1 and 999')

 if highway_number < 100:

   type_ = 'primary'

   direction = 'north/south' if highway_number % 2 == 1 else 'east/west'

 else:

   type_ = 'auxiliary'

   primary_number = highway_number % 100

   direction = 'north/south' if primary_number % 2 == 1 else 'east/west'

 return type_, primary_number, direction

def main():

 highway_number = input('Enter an interstate highway number: ')

 type_, primary_number, direction = classify_interstate_highway(highway_number)

 print('I-{} is {}'.format(highway_number, type_))

 if type_ == 'auxiliary':

   print('It serves I-{}'.format(primary_number))

 print('It runs {}'.format(direction))

if __name__ == '__main__':

 main()

Learn more about program on

https://brainly.com/question/26642771

#SPJ1

are used for mechanical power transmission over long distances
A. Spur Gears
B. Helical Gears
C. Planetary Gears
D. Chain and Sprockets

Answers

Answer:

D. Chain and Sprockets

Explanation:

Chains and sprockets are power transmission tools. The roller chain is connected to a toothed wheel which is the sprocket. The combination provides mechanical power to the wheels of vehicles.

An advantage they possess is their ability to transmit mechanical power over both short and long distances. They have a high degree of efficiency but they require constant lubrication. They also produce noise during operation.

Accenture is one of several hundred companies that has signed on to the United Nations Global Compact (UNGC) Business Ambition pledge.

Answers

Answer: True

Explanation:
Accenture is one of several hundred companies that has signed on to the United Nations Global Compact (UNGC) Business Ambition pledge. The UNGC is a voluntary initiative that encourages businesses to align their operations and strategies with ten universally accepted principles in the areas of human rights, labor, environment, and anti-corruption. The Business Ambition pledge is a component of the UNGC that invites businesses to set ambitious, science-based targets to reduce greenhouse gas emissions in line with the goals of the Paris Agreement. Accenture is one of many companies that have committed to this pledge and to taking action to combat climate change and support sustainable development.

Which is the correct way to declare an integer variable?
answer choices
O int x = 3;
O integer x = 3;
O integer x is 3;
O int x is 3;

Answers

int x = 3; is the correct way to declare a variable of an integer. Variables that must have an integer value are called integer variables.

Option A is correct .

A variable is what?

In computing, a variable is a value that can change in response to input from the program or external factors. Most of the time, an application has instructions that tell the machine what to do and the information it needs to run.

Which three kinds of variables are there?

There are typically three different kinds of variables in a laboratory experiment: dependent variables, independent variables, and controlled factors. Each of these three types of variables will be examined, as well as their connection to plant-related experimental questions.

Learn more about integer variable :

brainly.com/question/30363801

#SPJ4


When do you use online reading tools? Check all that apply.
when there is a word that I do not know how to pronounce
when the text is in a language that I do not fully understand
o when I need to know the meaning of a word
O O O O
O when there are main ideas or details I want to take notes on
when there is information in my reading that I want to look up quickly

Answers

Answer:

the answers are all of them

Answer:

A, B, C, D, E, F

Explanation:

It's any of them. There is no wrong answer.

Got right, on warm up! Hope this helps.

Which phrase is the best definition of sparklines in Excel 2016?

a type of graphic that users can insert into a worksheet
a type of mini chart that users can insert into a worksheet
a simple image that is displayed in Excel
a link to an outside source that is referenced in a worksheet

Answers

Answer:

Option 2: a type of mini chart that users can insert into a worksheet

Explanation:

A graph or chart is used to show trends and changes in a dataset.

When we have to show trends or changes in MS Excel, there are a lot of options available. One of them is Sparklines. Sparklines are like mini charts that can be used to show data graphically.

Hence,

The correct answer is:

Option 2: a type of mini chart that users can insert into a worksheet

Answer:

answer c

Explanation:

Write a for loop to populate array userGuesses with NUM_GUESSES integers. Read integers using scanf. Ex: If NUM_GUESSES is 3 and user enters 9 5 2, then userGuesses is {9, 5, 2}.GIVEN CODE#include int main(void) {const int NUM_GUESSES = 3;int userGuesses[NUM_GUESSES];int i;/* Your solution goes here */for (i = 0; i < NUM_GUESSES; ++i) {printf("%d ", userGuesses[i]);}return 0;}

Answers

The loop will be:

#include <stdio.h>

int main(void) {

const int NUM_GUESSES = 3;

int userGuesses[NUM_GUESSES];

int i;

for(i = 0; i < NUM_GUESSES; i++){

scanf("%d", &userGuesses[i]);

}

for (i = 0; i < NUM_GUESSES; ++i) {

printf("%d ", userGuesses[i]);

}

return 0;

}

What is the function of a loop?

A loop is a set of instructions that are repeatedly carried out until a specific condition is met in computer programming. Typically, a certain action is taken, such as receiving and modifying a piece of data, and then a condition is verified, such as determining whether a counter has reached a predetermined value. A loop is a software program or script that repeatedly executes the same commands or processes the same data up until it is told to stop. If not used properly, a loop can slow down the computer because it becomes overburdened by constantly repeating the same actions. Loops are control structures that are used to repeatedly run a specific part of code.

To know more about a loop, check out:

https://brainly.com/question/13148070

#SPJ4

If you have downloaded this book's source code from the companion Web site, you will find a file named text.txt in the Chapter 12 folder. (The companion Web site is at www.pearsonhighered/gaddis.) The text that is in the file is stored as on sen- tence per line. Write a program that reads the file's contents and calculates the average of words per sentence.

Answers

Answer:

Explanation:

The following python code loops through each line within a file called text.txt and counts all the words, then it divides this count by the number of sentences in the text file. Finally, output the average number of words per sentence.

f = open("text.txt", "r")

all_words = 0

sentences = 0

for x in f:

   list = x.split(' ')

   all_words += len(list)

   sentences += 1

average = all_words / sentences

print("There are an average of " + str(average.__round__()) + " words in each sentence.")

If you have downloaded this book's source code from the companion Web site, you will find a file named

C6
D
E
F
B
SABROSA
Catering Invoice
Sabrosa Empanadas & More
1202 Biscayne Bay Drive
Orlando, FL 32804
Empanadas & More
Invoice #: 5690B
Date: 05/15/20
1
2
MENU ITEM
3 Empanadas: Poblano & Cheese
4 Empanadas: Spicy Sweet Potato
UNIT PRICE
$2.79
$2.29
SUBTOTAL
TOTAL W/ TAX
QUANTITY
35
20
S
6
7
8
9
Catering Invoice Catering Subtotal Challenge +
Calculation Mode: Automatic Workbook Statistics

C6DEFBSABROSACatering InvoiceSabrosa Empanadas &amp; More1202 Biscayne Bay DriveOrlando, FL 32804Empanadas

Answers

Answer:

Catering Invoice

Sabrosa Empanadas & More

1202 Biscayne Bay Drive

Orlando, FL 32804

Empanadas & More

Invoice #: 5690B

Date: 05/15/20

1

2

MENU ITEM

3 Empanadas: Poblano & Cheese

4 Empanadas: Spicy Sweet Potato

UNIT PRICE

$2.79

$2.29

SUBTOTAL

TOTAL W/ TAX

QUANTITY

35

Explanation:

hi I think this is vorrect

3
Drag each label to the correct location on the image.
An organization has decided to initiate a business project. The project management team needs to prepare the project proposal and business
justification documents. Help the management team match the purpose and content of the documents.
contains high-level details
of the proposed project
contains a preliminary timeline
of the project
helps to determine the project type,
scope, time, cost, and classification
helps to determine whether the
project needs meets business
needs
contains cost estimates,
project requirements, and risks
helps to determine the stakeholders
relevant to the project
Project proposal
Business justification

Answers

Here's the correct match for the purpose and content of the documents:

The Correct Matching of the documents

Project proposal: contains high-level details of the proposed project, contains a preliminary timeline of the project, helps to determine the project type, scope, time, cost, and classification, helps to determine the stakeholders relevant to the project.

Business justification: helps to determine whether the project needs meet business needs, contains cost estimates, project requirements, and risks.

Please note that the purpose and content of these documents may vary depending on the organization and specific project. However, this is a general guideline for matching the labels to the documents.

Read more about Project proposal here:

https://brainly.com/question/29307495

#SPJ1

The message signal m(t) = 10cos(1000t) frequency modulates the carrier c(t) = 10cos(2fct). The modulation index is 10.
1) Write an expression for the modulated signal u(t).
2) What is the power of the modulated signal.
3) Find the bandwidth of the modulated signal.

Answers

Answer:

1) 10cos ( 2πfct + 10sin 2πfmt )

2) 50 watts

3) 1000 Hz

Explanation:

m(t) = 10cos(1000πt)

c(t) = 10cos(2πfct )

modulation index (  = 10

1) expression for modulated signal ( u(t) )

u(t) = Ac(cos 2πfct ) + A (cos 2πfct m(t) ) Am cos2πf mt

      = 10cos 2πfct + 100 cos 2πfct  cos2π500t

      = 10cos ( 2πfct + 10sin 2πfmt )

2) power of modulated signal

power of modulated signal  μ^2 / 2 ]

           = 10^2/2 ]

           = 50 watts

3) Bandwidth

B = 2fm  = 2 * 500 = 1000 Hz

what's drawing toolbar​

Answers

Answer:

The drawing toolbar, a feature in Microsoft Word, is a collection of many tools to draw and colour shapes, add text effects, create text boxes, and add graphics with colours within a Word document. In addition, users could choose from pre-drawn shapes, add clip art or draw shapes as desired.

what is the process for creating a new merge document for adress lables ? ​

Answers

Answer:

on Microsoft Word 2013 Mail Merge?

Explanation:

Open on the "Mailings" tab in the menu bar.

Click "Start Mail Merge."

Select "Step-by-Step Mail Merge Wizard."

Choose "Labels" and click "Next: Starting document."

Select the "Start from a template" option and click "Next: Select recipient."

What is data reduction and why is it important

Answers

Data reduction refers to the process of reducing the amount of data in a dataset while preserving its meaningful and relevant information. It involves techniques such as data compression, filtering, and sampling.

There are several reasons why data reduction is important:
1. Storage Efficiency: By reducing the size of the dataset, data reduction helps save storage space. This is especially crucial when dealing with large datasets that can take up significant storage resources.
2. Processing Efficiency: Smaller datasets are quicker to process and analyze. Data reduction techniques help to simplify and streamline the data, making it more manageable and enabling faster data processing.
3. Improved Accuracy: Removing redundant or irrelevant data through data reduction can improve the accuracy of analysis. By focusing on the most significant and representative data points, data reduction helps to eliminate noise and improve the quality of results.
4. Enhanced Data Mining: Data reduction facilitates data mining processes by reducing the complexity of the dataset. It enables researchers and analysts to extract patterns, trends, and insights more effectively from the data.
5. Cost Reduction: Storing and processing large datasets can be expensive in terms of storage infrastructure and computational resources. By reducing the data size, organizations can save costs associated with storage and processing.
Overall, data reduction is important because it enables organizations to manage and analyze data more efficiently, leading to improved decision-making and cost savings.

For more such questions data,Click on

https://brainly.com/question/179886

#SPJ8

You sometimes hear, “You can’t add apples and oranges.” Show that we can and do add apples and oranges in the national accounts. Explain how.

Answers

The reason for the statement of You can’t add apples and oranges.” Show that we can and do add apples and oranges in the national accounts is that the expression "apples and oranges can't be added" is used to highlight the differences between two objects that economists believe are incomparable.

What is the expression about?

Due to the lack of an acceptable unit of measurement, it is particularly challenging to measure the national income in practice. Three approaches are used in economics to measure national income:

The Product Method, also known as the Value Output Method.The Income Method.The Expenditure Method.

Which are not enough. The national income or GDP is immaterial. Therefore, Real GDP includes thousands of other items and services that cannot be directly added in economics, in addition to apples and oranges, computers, as well as power, transportation, and also education.

Learn more about national accounts from

https://brainly.com/question/1098565
#SPJ1

Redis can be configured to meet different requirements by editing the configuration settings in __________.

Answers

Answer:

redis.conf

Explanation:

Redis is an open-source licensed application, that acts as a database configurator. In other words, Redis is one of the ideal tools for database operations.

Hence, the redis.conf is the configuration file used to specify how the application would run to meet different requirements.

which of the following is a list of input devices

Answers

Please tell how much have to tell

2. Which of these units does mouse belong to?
3. What does Control V stand for?​

Answers

Control V es para pegar, el mouse se divide en tres secciones principales , el scroll es la ruedita, clic derecho y clic izquierdo.

Discuss briefly, the classification of survey

Answers

Answer:

Generally, surveying is divided into two major categories: plane and geodetic surveying. Generally, surveying is divided into two major categories: plane and geodetic surveying. PLANE SURVEYING is a process of surveying in which the portion of the earth being surveyed is considered a plane.

Question 1 of 10
A common human interest story is one that:
O A. covers natural disasters in their entirety.
O B. reports business and financial news.
O c. walks audiences through celebrity homes.
O D. takes audiences behind the scenes.
SUBMIT

Answers

Answer:

D

Explanation:

A common human interest story is one that takes audiences behind the scenes. The correct option is D.

What is human interest story?

A human-interest story is a feature narrative in journalism that emotionally describes people or animals.

In order to provide viewers a glimpse into the lives of people or groups and to highlight their distinctive stories and experiences, popular human interest stories frequently take the audience behind the scenes.

This kind of narrative frequently tries to elicit an emotional response from the viewer and can cover a wide range of subjects, including individual hardships, triumphs, or distinctive lifestyles.

While news articles may center on natural disasters, economic and financial events, or celebrity houses, they may not always strive to create a better knowledge of the people involved.

And hence they do not always qualify as human interest stories.

Thus, the correct option is D.

For more details regarding human interest story, visit:

https://brainly.com/question/20383709

#SPJ2

How are radio waves used on Earth?

Select ALL that apply
a

Traditional Radio Wave
b

Wireless Internet
c

Cell Phones
d

Light House

Answers

Answer:

A,B,C are the answers it cant be light house because it uses stored electricity which projects light energy

C and d If it’s not late yet. Not sure why they would put A tho kind of through me off

HELP ASAP PLEASE I need help on this project

HELP ASAP PLEASE I need help on this project

Answers

Answer:

- open a new blank word document,

- click on "insert"

- you will see "table" click on it

- and chose the size of your graph, ex: how many rows? how many grids? etc.

Hope this helps, if you got any question, feel free to ask. Good luck!

HELP ASAP PLEASE I need help on this project

Which career qualification is unique to the Energy Transmission career pathway and not to the Energy Distribution pathway? color vision for identifying differences in colored wires critical thinking and reasoning skills for analyzing information stress management for handling urgent tasks mechanical knowledge and ability to drive and operate machinery working well with customers and being friendly

Answers

Answer:

a, c, d

Explanation:

Answer:

it is just A

Explanation:

on edge. unit test review

What is the difference between copy- paste and cut-paste​

Answers

Answer:

Copy/ Paste - In the case of Copy/paste, the text you have copied will appear on both the locations i.e the source from where you copied the text and the target where you have pasted the text.

Cut/paste- In the case of Copy/paste, the text you have copied will appear on only one location i.e the target where you have pasted the text. The text will get deleted from the original position

If an if-else statement is true, it will include which kinds of results?
A. Shorter
B. Different
c. The same
D. Longer

Answers

Answer:

c

Explanation: if-else statement

If an if-else statement is true, it will include the same kinds of results. Thus, option C is correct.

When if-else statement has been performed?

The else statement has been performed if the if statement's condition is not fulfilled. An else statement executes if an if statement has the false concept. The else statement gives the code a backup if the if statement fails. If the if statement fails, this might propose a different course of action.

An if statement may test whether an integer is even or odd by dividing it by two. This tells the computer whether the number is even or odd. If the input number is divisible by 2, the software will print "the number is even" if it is the computer that determines whether the number is even or odd. If the input number is divisible by 2, the software will print "the number is even" if it is. The else statement may show that the "number is odd" if the integer cannot be divided by two.

Therefore, option C is correct.

Learn more about else statement on:

https://brainly.com/question/14003644

#SPJ7

In this lab, you use what you have learned about parallel lists to complete a partially completed Python program. The program should either print the name and price for a coffee add-in from the Jumpin’ Jive Coffee Shop or it should print the message "Sorry, we do not carry that.".

Answers

The given python code is given below as it makes a parallel list and prints an output.

What is Python Programming?

This refers to the high-level programming language that is used to build data structures and is object-oriented.

Hence, we can see that to use a parallel list to print a program in Python:

Python zip()

list_1 = [1, 2, 3, 4]

list_2 = ['a', 'b', 'c', 'd']

for i, j in zip (list_1, list_2):

print (j)

else

print (i) "Sorry, we do not carry that.";

Read more about python programs here:

https://brainly.com/question/26497128

#SPJ1

Which part of project management involves determining the required materials?

A.) Money
B.)Resources
C.)Scope
D.)Time

Answers

Answer:

Resources I think because what you have all depends on resources which required money

PLZ CORRECT ME IF I AM Wrong please and thank you

Explanation:

Is resources :))))))))))))))))))
Other Questions
In the market for tacos, you observe that the equilibrium price and quantity have increased. this can be caused only by? 5. coupon rates nikita enterprises has bonds on the market making annual payments, with eight years to maturity, a par value of $1,000, and selling for $962. at this price, the bonds yield 5.1 percent. what must the coupon rate be on the bonds? In which scenario might economic interests play a larger role than military force in US national security? older adults are more susceptible to diseases such as_____ than when they were younger. Which answer choice best describes the mongols? the mongols were an intolerant empire that used ships to conquer territory. the mongols were an intolerant empire that used ships to conquer territory. the mongols were a tolerant empire that used horsemanship and archery to conquer territory. the mongols were a tolerant empire that used horsemanship and archery to conquer territory. the mongols were a tolerant empire that used ships to conquer territory. the mongols were a tolerant empire that used ships to conquer territory. the mongols were an intolerant empire that used horsemanship and archery to conquer territory. An all-in-one account that provides a complete financial services program for a single fee is known as? Kendra owns a hair salon and wants more interaction with her clients. she wants to purchase a technology to enable her to create an online community where she can frequently post hair and make-up tips. she needs a cost-effective, simple solution. in three to five sentences, describe the points that kendra needs to consider when choosing a telecommunications technology to meet her needs. The principal difference between economic profits for a monopolist and for a competitive firm is that a. monopoly profits create major problems of equity whereas competitive profits do not. b. competitive profits exist only in the short run whereas monopoly profits may exist in the long run as well. c. monopoly profits represent a transfer out of consumer surplus whereas competitive profits do not.monopoly profits are considered a deadweight loss but competitive profits are not. d. monopoly profits are considered a deadweight loss but competitive profits are not Building design can save energy and money by a. using green roofs, setting thermostats high in the winter and utilizing natural light b. using superinsulation, green roofs and natural light c. setting thermostats high in the winter and using superinsulation and green roofs d. utilizing natural lighting, reducing insulation and green roofs e. setting thermostats low in the summer, recycling wastewater and using superinsulation Find the value of a^2+b^2+c^2 when a+b+c= 9 and ab+bc+ac=13 Predicate logicSince you know how to symbolize exactly one thing and exactly two thingsand exactly three things, you should be able to symbolize that if there isexactly one thing and this is added to exactly two things, you have exactlythree things.Create a WFF in predicate logic format. what is nomanclature which of the following explains how we know that the nuclei ofSeyfert galaxies are smalla. their luminosity vary in fractions of a minuteb. they have high temperaturesc. the gas is approaching our A teacher wants to arrange 16 chairs in equal rows in his classroom. How can he arrange the chairs? () in 4 rows, with 20 chairs in each row () in 2 rows, with 8 chairs in each row In Brows, with 8 chairs in each row () in 3 rows, with 5 chairs in each row My Progress Sign out 40Select the correct text in the passage.Which detail provides valid reasoning to support the author's idea that the glasses have an everyday application?(11) Another bonus is that the glasses let the user apply the system to real life. "We're integrating this into immersiveactivity where the user gets to choose the activity." Greco said. "And because they're choosing, they're more engaged andhaving a more successful outcome."(12) For example, he said, students can use the glasses while studying or doing schoolwork, helping them stay focused onthe task and training them to control their attention.(13) The first prototypes went out to clinics in 2014, and iterations of the glasses have been in testing ever since. TheHarbin Clinic in Rome, Georgia, reported that clinicians were seeing results from the Narbis prototype in about half the timeit normally took with other clinical neurofeedback, Greco said. In all, he said, four out of five patients who have trained withthe glasses reported significant improvement in five or fewer 30-minute trainings, and people who take medication forattention difficulties are coming off those drugs after about 20 sessions, as opposed to the 30 sessions it usually takes withother neurofeedback techniques. How was trade between the American colonies MOST helpful? which two features should the system administrator use to assign ownership of a lead to the appropriate product team using the custom lead field product interest? choose 2 answers a. public groups b. assignment rules c. escalation rules d. queues Torres Investments acquired $160,000 of Murphy Corp., 5% bonds at their face amount on October 1, Year 1. The bonds pay interest on October 1 and April 1. On April 1, Year 2, Torres sold $60,000 of Murphy Corp. bonds at 102. a technician is being asked to move a heavy industrial printer. which safety technique is recommended for this situation? Lymphatic capillaries are known for all of the following exceptA) being the starting point of the lymphatic circulation.B) being the smallest lymphatic vessels.C) having larger diameters and looser walls than blood capillaries.D) having shingle-like endothelial cells.E) allowing nutrient and gas exchange.