//TO-DO: Fill in the Authors Name Here//TO-DO: Fill in the current date here//CS1428 Lab//Lab 10//Description: this program will find letter grades from 5 number grades#include using namespace std;double getAverage(double g[], const int SIZE){ double total = 0; for(int i = 0; i < SIZE; i++) { total += g[i]; } return total / SIZE;}void getGrades(double g[], const int SIZE){ cout << "Please enter 5 grades:" << endl; for(int i = 0; i < SIZE; i++) { cin >> g[i]; }}// TODO: Complete function definitionsint main(){ const int SIZE = 5; double grades[SIZE], average; int numberOfAs = 0, numberOfBs = 0, numberOfCs = 0, numberOfDs = 0, numberOfFs = 0; //TODO: Add function calls return 0;}

Answers

Answer 1

Answer:

countLetterGrades:

void countLetterGrades(double grades[], const int SIZE, int &numberOfAs,int &numberOfBs,int &numberOfCs,int &numberOfDs,int &numberOfFs) {

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

if(grades[i]>85){numberOfAs++;}

else if(grades[i]>75){numberOfBs++;}

else if(grades[i]>65){numberOfCs++;}

else if(grades[i]>55){numberOfDs++;}

else{ numberOfFs++;}

}

}

printData:

void printData(double average, int numberOfAs,int numberOfBs,int numberOfCs,int numberOfDs,int numberOfFs)

{

cout<<"Average: "<<average<<endl;

cout<<"Number of A's: "<<numberOfAs<<endl;

cout<<"Number of B's: "<<numberOfBs<<endl;

cout<<"Number of C's: "<<numberOfCs<<endl;

cout<<"Number of D's: "<<numberOfDs<<endl;

cout<<"Number of F's: "<<numberOfFs<<endl;  

}

Explanation:

Your question is poorly formatted. (See attachment for proper presentation of question)

------------------------------------------------------------------------------------------------------------

The first step is to go to the main function and replace

//TODO: Add function calls

with the following 4 lines of code:

getGrades(grades,SIZE);

average = getAverage(grades,SIZE);

countLetterGrades(grades, SIZE, numberOfAs,numberOfBs,numberOfCs,numberOfDs,numberOfFs);

printData(average, numberOfAs,numberOfBs,numberOfCs,numberOfDs,numberOfFs);

------------------------------------------------------------------------------------------------------------

1. getGrades(grades,SIZE);

This calls the getGrade functions; The getGrade function is where the user inputs 5 grades for a student

2. average = getAverage(grades,SIZE);

Next, is to get the average of the input grades. This is done using the above and the average is stored in variable average

3. countLetterGrades(grades, SIZE, numberOfAs,numberOfBs,numberOfCs,numberOfDs,numberOfFs);

Next, is to get letter grade of each number grade. This is done using countLetterGrades function.

4. printData(average, numberOfAs,numberOfBs,numberOfCs,numberOfDs,numberOfFs);

The above 3 functions populate data for average, numberofAs to numberofFs; This values are passed to printData function to to display program output.

------------------------------------------------------------------------------------------------------------

Next complete countLetterGrades and printData functions as seen in the answer section.

For clarity, see the attached cpp file for line by line explanation of the complete code

//TO-DO: Fill In The Authors Name Here//TO-DO: Fill In The Current Date Here//CS1428 Lab//Lab 10//Description:

Related Questions

Select all the correct answers.
In which TWO ways does e-governance empower citizens?

Citizens can obtain information directly from government websites.
Citizen can easily fix appointments with senators online.
Citizens do not need to travel to government offices.
Citizens can vote online on the bills introduced in the legislature.


i will have more questions under ur answers

Answers

Answer:

Citizens can obtain information directly from government websites.

Citizens do not need to travel to government offices.

Explanation:

These seem the most appropriate to me.

__ allow(s) users with mobility issues to control the computer with their voice.

Speech input software

Tracking devices

Head pointers

Text-to-speech

Answers

Answer:

Speech input device

Explanation:

I think this is the answer

Answer: speech input software

Explanation: got it right on edgen

What will be displayed in the console when the following program runs?

var count = 0
while (count != 5){
console.log(count);
count = count + 2;
}

Answers

Answer:

The integer, count, will be stuck in a infinite while loop, and the console will keep adding 2 to count, so it'll look something like this.

0

2

4

6

8

10

12

14

and so forth...

Explanation:

The while loop will never stop because count can not equal to 5 because you can't add 2 to another multiple of 2 to get 5.

Because count cannot reach 5, and you cannot add 2 to another multiple of 2, the while loop will never come to an end.

What displayed in the console when program runs?

An endless loop is a section of code that never reaches the ending condition, hence it keeps running indefinitely. An infinite loop may cause your software or browser to crash or freeze. Infinite loops must be understood in order to avoid such situations.

When a condition always evaluates to true, an infinite loop happens. Typically, this is a mistake. You may, for instance, have a loop that decreases until it hits zero.

Therefore, It will resemble this because the integer count will be locked in an unending while loop and the console will keep adding 2 to count. 0, 2,4, 6, 8, 10,12, 14 The program will end in an infinite loop.

Learn more about program runs here:

https://brainly.com/question/19339163

#SPJ2

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100.0 hours or 4.166666666666667 days.​

Answers

import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}

The program is a sequential program, and it does not require any conditional statement or iteration.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This declares minutes as a double data type

 double mins;

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This gets input for minutes

 mins = input.nextDouble();

 //This converts the minutes to hour and days, and also print them

 System.out.println(mins/60+" hours or "+mins/1440+" days");

}

}

At the end of the program, the equivalent number of hours and number of days are printed.

Read more about similar programs at:

https://brainly.com/question/8598360

Choose the proper term to describe each of the following examples.
senate.gov:____
23.67.220.123:_____

SMTP acc name
Domain name
IP address

Answers

Answer:

senate.gov: Domain Name

23.67.220.123: IP Address

Explanation:

We need to choose the proper term to describe:

a) senate.gov

It is called Domain Name

The domain name is a component of a URL (uniform resource locator ) used to access web sites

b) 23.67.220.123

It is called IP address.

IP address is defined as unique string of characters that is used to uniquely identify each computer in the network.

Find true or false. A hacker is hacking software with access in sensitive information from your computer​

Answers

ITS TRUE!!I SEARCHED IT

2. The internet offers a great source of information; however, how are
you going to make sure that these pieces of information are reliable?​

Answers

Answer:

There are many different ways that you can ensure that the information you gather on the internet is reliable and accurate! One way is to not look at Wikipedia and sites where anyone has the access to edit it at any time. Sites that are .com or .org are usually from a direct and safe source. Stay away from media websites and if you believe something isn't right, do further research.

Explanation:

Hopefully this helps.

The shooting(blank) should describe a daily plan of the shoot and should include everything from the crew to wrap-up.

Answers

Answer:

schedule

Explanation:

Indeed, in almost every video production a shooting schedule is used to describe the daily plan of the shoot; such as what scenes to shoot first, and next.

It also gives details about the crew, as well as the timeline for the entire film production, and so on.

What is the quickest way to remove all filters that have been applied to a worksheet?

Click each filter and select Clear Filter.
Click the Filter button in the Sort & Filter group.
Select the worksheet and click Clear Filter.
Select the worksheet and click Delete All Filters.

Answers

Answer:

Select the worksheet and click Delete All Filters.

Explanation:

Answer:

Click the Filter button in the Sort & Filter group

Explanation:

I am not sure if you don't believe my answer go with your gut.

Click "Thanks" if this helped! :)

Taylor needs to remove the text to the left of his cursor. Which of the following keys should he press?

Answers

Answer:

bacspace not delete

Explanation:

delete erases on the right not left

Backspace he should press to remove the text to the left of his cursor.

What is cursor?

A cursor is an indicator used in computer user interfaces to show the current position for user interaction on a computer monitor or other display device that responds to input from a text input or pointing device. Because of its usage resemblance to a pointing stick, the mouse cursor is also known as a pointer. Cursor is a Latin word that means "runner." The transparent slide engraved with a hairline that is used to mark a point on a slide rule is known as a cursor. By example, the word was later transferred to computers. On November 14, 1963, while attending a computer graphics conference in Reno, Nevada, Douglas Engelbart of the Augmentation Research Center (ARC) expressed his desire to pursue his goal of developing both software and hardware computer technology to "augment" human intelligence by pondering how and where to adapt the underlying principles of the planimeter to inputting X- and Y-coordinate data.

To learn more about cursor
https://brainly.com/question/12406758

#SPJ2

What is the
binary code
for
"DMS"?

Answers

Answer:

D= 01000100

M= 01101101

S= 01110011

Explanation:

Animal wisdom/ the last wolf .compare and contrast the overall feeling of each poem

Answers

List the poem please. I won’t be able to answer without it.

Sonora wants to extend the cells to be added in her formula. What is the quickest way to add more cells?
O Go to the Function Library group and click Insert Function.
Click the Insert tab in the ribbon and then Equation.
O Type the ranges in the parentheses in the formula bar.
O Left-click on a cell that is included and drag the cursor.

Answers

Answer:

D

Explanation: took the test on edge

Answer:

Left-click on a cell that is included and drag the cursor.

Explanation:

Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is sluggish and the animations are not very clear. What can she do to improve her gaming experience?

Answers

Answer:

Ram/cpu/gpu... Many many things she can do

Explanation:

It may be a issue of internet bandwith, if this new game requires a insane ammount of internet then it may run low FPS (frames per second) and make myra's game look slughish,but anouther issue may be the ram or cpu, like if this is a new game and you've always played like simple games, so your running on persay a core i3 or i4, it aint gonna cut it on a newer game, you gonna need a probably core i5 or i7, or be like any sane person and switch to amd, it may be a bit pricy but if you want nice clean gaming, then amd is the way to go

Also while you are at it get a ssd

I hope this helps "-"

Answer:

She can upgrade her hardware/software

Explanation:

For hardware, she can troubleshoot any broken components that are possibly in the computer, upgrade cards/fans, etc.

and for software she can upgrade her operating system, upgrade or download any missing frameworks, clear out any software that is taking too much CPU/RAM in the background using task manager/system viewer/KSysGuard, etc.

(true or false) One of the difficult things about working in game design is that while there are many different roles, most of them only match one specific personality type.
True
False

Answers

Tbh I think it’s False because most of them don’t match
I thinks it’s false cause most don’t match

In a networking context, "architecture" refers to
a. the building that houses the network
b. design
c. the hardware
d. a well-built network

Answers

Answer:

A well built netwrk

Explanation:

Which are examples of primary sources? Check all that apply.

diary
newspaper article
biography
photograph
speech

Answers

Answer:

A, D, E

Explanation:

Diaries, photographs, and speeches are all forms of primary sources, whereas biographies and newspaper articles are written by a secondary source.

Answer:

a,d,e

Explanation:

[Exceptions, Function calling another function] Write a function ticker() that first runs (calls) read_ticker() and then stores the returned dictionary. It then runs an interactive loop with the user in which the user is prompted for a company name. If the company name (key) is in the dictionary, then its ticker form and the IPO year is printed. Otherwise a warning is printed that the company name is not in the list. If the user just hits return without entering a name, the loop stops.




this is the function that needs to be called:
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'), '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d

Answers

def read_ticker():

   d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'),

        '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}

   return d

def ticker():

   di = read_ticker()

   while True:

       try:

           name = input("Enter the name of a company: ")

           if name == "":

               return

           print(di[name])

       except KeyError:

           print("Name not found! Please enter a valid name!")

ticker()

I hope this helps!

what is the computer?​

Answers

Answer:

an electronic machine that can store, find and

When a customer makes an online hotel booking the database is updated by using
A) table
B) form
C) query
D)report

Answers

I think it’s a form,if wrong please don’t be mad

When a customer makes a booking, the database is updated by using a form.

Forms in a database are necessary for the manipulation and the retrieval of data. It helps with entering, editing as well as displaying data.

The form allows you to add data to the already existent table and it can also help one to view already existent information.

A form can also be used to view information from query. When this is the case, it searches and analyzes data.

Read more at https://brainly.com/question/10308705?referrer=searchResults

Given the formula on the left, label the parts. SUM . A2:D19 . E55 . (A2:A19,C13,E55,19) .

Answers

Answer:

SUM  

✔ function name

.

A2:D19  

✔ range

.

E55  

✔ value

.

(A2:A19,C13,E55,19)  

✔ argument

Answer:

1. B

2. A

3. A

4. C

Explanation:

On edge2020 I got it right

explain how the organ systems work together to warm up the body on a cold day

Answers

Answer:

Your body is to cold ,blood vessels in the skin contract , and blood flow to the extremities (arms and legs)slows . muscles contract and relax rapidly which generates  heat to keep you warm..

Explanation:

Hope this helps :)

Answer:

Sample Response: The brain, through the nervous system, sends signals to the muscular system, causing the muscles to move rapidly. This rapid motion produces heat in the body and is observed as shivering. The brain also sends signals to the muscles right beneath the skin. These muscles shorten and tighten, causing the hairs on the skin to stand up. When the hairs stand up, heat is kept in the air trapped within the hairs, which keeps the body warm.

Explanation:

Shira’s Shoes sold 875,000 pairs of sandals in June, which was 70% of the total number of shoes sold. How many shoes did the company sell in June? Analyze Emily’s calculations. What error did she make?

Answers

Explanation:

Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.

Answer:

Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.

Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.

Answers

import random

for x in range(10):

   print(random.randint(1,100))

please help me I want the answer for the 3rd question ​

Answers

Use the multiples thats are included in the flowchart and divide them by half a divisible

what makes classical music "classical"?​

Answers

Answer:

Whereas most popular styles are usually written in song form, classical music is noted for its development of highly sophisticated instrumental musical forms, like the concerto, symphony, and sonata. Classical music is also noted for its use of sophisticated vocal/instrumental forms, such as opera.

Answer:

the time period in which it was composed

Explanation:

what is the meaning of .com in computer​

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The terms ".com" is the most common term that you see at the end of the domain name. This term is most widely used in computers and in websites. The dot com ".com" is a suffix and most common suffix in website addresses.

Furthermore, the term ".com" is short for a commercial for many educational, personal, profit, and non-profit websites. The reason behind using .com as a suffix in a website name is that it is most common and recognizable.

You can buy a website domain with dot com ".com" suffix from many website hosting companies. The companies that using dot com in their website name they are mostly doing business on the internet.

Which list method allows elements in a sequence to be removed and added at either end of the structure?
a) index
b) queue
c) stack
d) deque
PLEASE HURRY

Answers

Answer:

b) queue

Explanation:

Queue is also an abstract data type or a linear data structure, just like stack data structure, in which the first element is inserted from one end called the REAR(also called tail), and the removal of existing element takes place from the other end called as FRONT(also called head).

Answer:

B is right!

Explanation:

Write a function named last_digit that returns the last digit of an integer. For example, last_digit(3572) should return 2. It should work for negative numbers as well; last_digit(-947) should return 7.

Answers

def last_digit(num):

   num = str(num)

   return int(num[-1])

print(last_digit(-947))

I hope this helps!

A friend a just opened his own barber shop and has asked you to develop a program to track the type of service the customer is receiving and the cost for the service and also include any tips the customer may give to the barber. The name of your friend's barber shop is Big Al's and on each customer receipt he wants to display the name of his shop, customer name, the type of service, cost of the service, and the amount of the tip for a total price of the service rendered. Name your variables Declare your variables

Answers

Answer:

class Barber(object):

   barber_shop = "Big AI's barber shop"

   def __init__(self, customer_name, type_of_service=[], tip=0):

       self.cust_name = customer_name

       self.tos = type_of_service

       self.tip = tip

   def service_type(self, *args):

       for i in args:

           self.tos.append(i)

   def total(self):

       

       services = {'trimming':10, 'hair_cut':20, 'shaving':15, 'washing':5, 'dyeing':5}

       contain = ''

       total = 0

       for service in self.tos:

           if service in services.keys():

               total += services[service]

               contain += f'{service}: {services[service]}\n'

       

       print(self.barber_shop,'\n', self.cust_name,'\n', 'Services:',contain.splitlines(),'\n', \

           f'total: ${total}', '\n',f'Tip: ${self.tip}')

mycust = Barber('John',['washing'],6 )

mycust.service_type('shaving', 'dyeing')

mycust.total()

Explanation:

The Barber class is a blueprint used to create an object instance of customers that visits the barber-shop. It has two methods 'service_type' and 'total' which are just defined functions of the class that appends services to the type of service variable and total that prints the total cost of services on the screen.

Other Questions
Expressions equivalent to z+(z+6) A store manager created this table representing the relationship between the reported number of snow days during a given month, x, and the sales revenue of bags of rock salt, y, rounded to the nearest dollar.Using the linear best-fit model for the data, what is the predicted sales revenue of rock salt given there were 11 snow days in the month? $773.00 $1,374.00 $1,457.00 $1,474.00Number of snow daysRock salt sales revenue2 $823.001 $725.003 $943.005 $1,086.004 $997.003 $951.007 $1,163.006 $1,098.00 i got 260 but its wrong lol please help me if u can!! Can someone please do this for me? If f(x) = 3x - 1 and 2f(b) = 28, what is the value of f(2b)? Is the poem called "Places " is a lyric poem or free verse poem 11. The professor who first implemented a scientific approach in order to investigate a problem, and who is often referred to as the father of scientific methodology, is:a. Galileob. Democritus c. Newtond. Einstein 12. Which of the following adjustments to a pendulum would affect the period of oscillation? a. Increasing the mass b. Decreasing the length c. Increasing the length d. Increasing the angle of displacement 13. The width of a desk was measured using a meter ruler, which of the following is the most appropriate reading expressing the result? a. 0.724 mb. 0.7248 mc. 0.72 md. 72 cm A 7.50 kg bowling ball has 70.4kgm/s of momentum. What is itsvelocity? The boiling point of propanoic acid is higher than that of 1-butanol because: When energy is changed from one form to another, _____.all of the energy is changed to a useful forma physical change occursall of the energy can be accounted forsome of the energy is lost entirely Find the slope of the line that passes through each pair of points: (8, -2) , (1, 1) All I know is that the answer is F. How do I get to the answer F? The hours a week people spend answering and sending emails is normally distributed with a standard deviation of = 150 minutes. How large of a sample size would you need to estimate the mean number of minutes people spend answering and sending emails with an error of 1 minutes with 99% confidence? What would be the practical problem with attempting to find this confidence interval? For each element in the table below, use the Gizmo to find the number of valence electrons and the list thevalence based on the Lewis diagram. Then find the sum of these numbers.IF SOMEONE COULD JUST HELP ME OR EXPLAIN HOW TO DO IT PLEASE! THANK YOU Which point is not on the graph of the function y = x + 2?(3, 5)(6, 8)(7, 9)(2, 0) In 1861, the Southern states that had seceded formed the . Questions and Answers about the book The Giver 1:When Jonas is selected, the chief of elder lists The qualities needed for his assignment. What quality do you think is the most important and why?Pls help I will mark brainliest! Which statement best describes the conflict involving Chillingworth?Chillingworth plans to challenge the village for their treatment of Hester.Chillingworth torments Pearl, a reminder of Hester's sin.Chillingworth hates himself for forcing Hester to marry him.Chillingworth wants revenge against Hester's lover. Plz answer Quick! WILL GIVE BRAINIEST! ANSWER CORRECTLY! TYSM Natasha is a toxicologist. During an investigation, she collected blood from the subjects arm. What type of blood specimen is it?