//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

Use the factorial operation to evaluate 4!.

24

1

4

10

Answers

Answer:

4! = 4 x 3 x 2 x 1

= 24

Answer is 24.

Answer:

24

Explanation:

EDGE 2022

write a python program to print the following series 3..10..31..94......n​

Pls answer fast..

Answers

I've included my code in the picture below. Best of luck

Create a class called Drive. It should have instance fields miles and gas which are both integers. Another instance field, carType, is a String. The constructor should receive a String which initializes carType. The other two instance fields are both automatically initialized to 1 in the constructor. Create a method called getGas that returns an integer that is the gas data member. The getGas method has no parameters. Write in java. First correct answer will be marked brainliest, i need answer very soon

Answers

public class JavaApplication87 {

   

   public static void main(String[] args) {

       Drive dr = new Drive("Insert type of car");

       System.out.println(dr.carType);

   }

   

}

class Drive{

   int miles;

   int gas;

   String carType;

   public Drive(String ct){

       carType = ct;

       miles = 1;

       gas = 1;

       

   }

   int getGas(){

       return gas;

   }

   

}

I'm pretty sure this is what you're looking for. Best of luck.

What is the advantage of using the Publish Online option for sharing a calendar? It creates a web version that can be viewed by anyone. It allows an employee's boss to see busy/free information. It allows a user inside an organization to view the calendar. It allows a user outside an organization to view the calendar.

Answers

Answer:

its D. it allows a user outside an organization to view the calendar.

Explanation:

i just got it right on edge 2020.

Answer:

B

Explanation:

_______are a set of track sectors, ranging from 2 to 32 or more, depending on the formatting scheme in use.

a.
Cylinders
b.
Track sectors
c.
Tracks
d.
Cluste

Answers

Answer:

Clusters

if thats incorrect than Cylinders

Its made up of a small memory chips on a card that can hold data in an electronic format​

Answers

The chip can allow you to have more data and more pictures so your phone does not become slow and messages and apps and more.

Please I need 26 examples of hybrid search engines?

Answers

Answer:

Google, Bing, Yahoo, Yandex, Duck Duck Go!, Baidu, Ask, Naver, Alta Vista, Hotbot, AOL, AllTheWeb, Exite, Mahalo.

what is the difference between MAC address and IP address?
Thanks in advance

Answers

Answer:

MAC Address ensure that physical address of the computer is unique.

IP Address is a logical address of the computer and is used to uniquely locate computer connected via a network.

What are elements ?Give any five example​

Answers


Chemical element, also called element, any substance that cannot be decomposed into simpler substances by ordinary chemical processes. Some examples are carbon, oxygen, hydrogen, gold, silver and iron.

Technical environment refers to all the technological surroundings that influence organization. Technology consists of skills,methods,systems and equipment. It includes and innovations. It makes work more efficient. It is a means to transfer input into outputs.

Technology influences organizations by bringing about changes in jobs, skills, lifestyles, production methods and processes. Automation, computerization, robotics, informatics, biotechnology, laser, new materials and artificial intelligence have all influenced organizations.Information technology affects every function of within the organization.Organizations should be aware of technological changes tot avoid obsolescence and promote innovation.

Technological forecasting is also important.Technology reaches people through organization. It is a powerful force that shapes their destiny.

1)Level of technology: The level of technology can be appropriate or sophisticated. It can be labour-based or capital-based.The level of technology influence organizations.

Labour based technology: Human labour is mainly used for operations.

Capital based technology: Machinery is mainly used for operations. Technology is represented by automation, computerization, robotizing, etc.

2)Pace of technological change: Technology is a dynamic force. Its speed of change is accelerating. Invention, innovation and diffusion increase its pace. Organizations should adapt to changing technological forces. They should also upgrade the skills of their human resources to effectively cope with the demands of technological changes.

Technological change influences organizations in the following :

It can make existing industries obsolete.It can the rates of obsolescence.

It can rejuvenate the existing industries through product improvements or cost reductions.

It can create entirely new industries.

It can increase government regulations.

3)Technological transfer: Sources of technology can be within the organization, within the country or foreign countries. Technology transfer implies technology import for organizations.

Technological transfer implies technology imported from technologically advanced foreign countries. Its speed is important for organizations.

Globalization: Global companies are the key sources of technology transfer in developing nations.

Projects: Turnkey projects based on global bidding serve as a source of technology transfer.

Trade: This consists of the sale of equipment or machines by the manufacturer.

Technical assistance: Bilateral and multilateral donors under technical assistance provide international consultants who bring new technology with them.

Training and publication: They provide opportunities to about new technology.

Technological transfer influences organization by :

Increasing and decreasing costs.

New product development and product improvement.

Improving production systems and processes.

Better satisfaction of customer needs.

4)Research and development: R&D is the essence of innovation. The Expectation for improvement is increasing. Customers expect new products of superior quality which are safe, comfortable and environment friendly. This calls for increase research and development budget by organizations. Government and industry collaboration and spending in R&d efforts is also an important aspect of the technology environment.

I hope this helped!

Select the correct answer.
Bella is moving the camera physically to the left to capture a fast-paced shot. Which technique is she using?
OA
pan left
OB.
truck left
O c.
truck right
OD.
zoom left
OE.
pan right

Answers

A ?
Because Bella is physicals moving the camera so I think it is A

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.

Social networking is the most popular online activity?
True
False

Answers

Answer:

true

Explanation:

It’s true because I said so

mention some of the codes of conduct of Information Technology (IT)​

Answers

Answer:

Below! ;)

Explanation:

Computer Science:

Binary

Morse code

Computer Programming:

Java

Python

etc.

Hope this helps!

Have a nice day!

If you find my answer helpful

Pls consider marking my asnwer as Brainliest! It would mean a lot!

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:

Do you think the fact that the cyclist has raised nearly half a billion dollars for a cancer foundation makes what he did any less immoral? Should his sponsors have considered this fact before pulling their contracts with him? Explain your answers.

Answers

Answer:

1. No, I do not think that the fact that the cyclist raised nearly half a billion dollars for a cancer foundation made what he did less immoral.

2. No. The sponsors were right in not considering this fact before pulling their contracts with him.

(Find the Explanations below)

Explanation:

Lance Armstrong is a Cyclist who suffered cancer at the young age of twenty. He survived the ordeal and went ahead to form a foundation known as the Livestrong Foundation which helped cancer patients obtain medical help. He was accused of doping by the United States Anti-doping agency. This led to the withdrawal of sponsorships by several organizations.

1. The fact that the cyclist fought a good cause by raising millions of dollars to fight cancer, does not make what he did any less immoral because it was his fame and the supposed integrity that he possessed that first attracted the recognition and sponsorships to him. Engaging in an illegal act to win his games and stay on top was morally wrong and it corrupted the trust that was placed in him. His career as a cyclist was the base that gave him his voice.

2. The sponsors should not have considered the fact that he raised a lot of money for the cancer cause because the wrong act of engaging in doping was morally wrong, and if the spnsors remained with him, it would be as if they supported this act. Not withdrawing their sponsorships, would also tarnish the image of the organizations.

__ 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 two states do binary numbers represent?

A) Coder and processor
B) Input and output
C) On and off
D) Right and left

Answers

Answer:

C

Explanation:

Binary is a base-2 number system that uses two mutually exclusive states to represent information. A binary number is made up of elements called bits where each bit can be in one of the two possible states. Generally, we represent them with the numerals 1 and 0.

Answer:

C

Explanation:

On and off symbolize 0 and 1.

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.

Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program needs to output the phrase Greater than 45.6.

Answers

Here is the solution. Let me know if you have any question

What is application software used for?

Answers

Answer:

Explanation: Application software is a type of computer program that performs a specific personal, educational, and business function. Each program is designed to assist the user with a particular process, which may be related to productivity, creativity, and/or communication.

Answer:

to make certain tasks easier for the computer user

Explanation: a p e x

if you put your tik down below I'll tell them to follow

Answers

Answer:

oreo._.thecat7

Explanation:

...................

Answer

I dont have a acc !

Exp

bc i dont like that app a lot

[Files, for loops, exceptions; 20pt] Using a for loop, write a function called countWord(). It takes 2 parameters: The name of a text file (e.g. gettysburg.txt that is included with this test) and a word to be searched within that file. Your code should return the number of times the given word appears in the file. Capitalization should not matter. Make certain to handle file exceptions gracefully.

Answers

def countWord(name, word):

   try:

       f = open(name, "r")

       lst = ([])

       w = ""

       for x in f.readlines():

           w += x.lower()

       lst = w.split()

       f.close()

       return lst.count(word)

   except FileNotFoundError:

       print("Please create a file or use the name of an existing text file.")

print("Your word appears", countWord("gettysburg.txt", "random"), "time(s)")

The text file I used for testing looks like:

random words

random words

I'm putting random words in here

random

this is random

RaNdOm

I didn't really know what exceptions your professor is looking for so I just used the file not found one. Best of luck.

What is another name for a numbered list

Answers

Answer:

Another name for a numbered list is a list

anyone 13 i a boy 13 pan

Answers

Answer:

RATED- SUS

Explanation:

Which of the following is an example of a database?
A. the names and ages of children
B. the title of a book
C. a word that rhymes with bat
D. the name of the most recent U. S. president

Answers

A. The names and ages of children

Answer:

the names and ages of children

What is used to give credit to the source from which information is obtained?
a citation
linkage
plagiarism
a format

Answers

a citation gives credit to the source

Answer:

a citation

Explanation:

Jack is using a document that has multiple references to his company as Company ABC, LLC. He would like to change these values to CompanyABC, LLC. What is the easiest way to do this?

Answers

Answer:

C. Press CTRL to access the Find and Replace dialog box.

Explanation:

yuh yuhuhu edge 2020 gang gang

The amount of data that can be stored on a disk depends in part on_____.
a.
the number of tracks on the disk
b.
the thickness of the magnetic coating
c.
none of the above
d.
the rotational speed of the disk

Answers

to what it seems like, it’s d

Question # 3
Fill in the Blank
What is the output?
answer = "Hi mom"
print(answer.lower())

Answers

what not understanding

the output is mom, hope this helped p

4.9 Code Practice: Question 2
Instructions
Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum each step along the way.

Expected Output
20
50
90
140
200
270
350
440

Answers

total = 0

for x in range(20,91,10):

   total += x

   print(total)

I hope this helps!

Answer:

sum = 0

for i in range (20, 91, 10):

  sum += i

  print(sum)

Other Questions
"When the legislative and executive powers are united in the same person or in the same body of magistrates, there can be no liberty." Charles de Montesquieu Which theory does this quote support? The young boy ___ to inquire when dinner would be served. 1. interposed 2. preoccupied 3. quaked Who lives in Kansas? Within any large animal population, there is _______ a variety of traits. And between different animal populations, there is _______ a variety of traits. Nadia is mountain climbing. She started at an altitude of 19.26 feet below sea level and then changed her altitude by climbing a total of 5,437.8 feet up from her initial position. What was Nadias altitude at the end of her climb? 3,511.8 feet above sea level 5,245.2 feet above sea level 5,418.54 feet above sea level 5,457.06 feet above sea level 8. A yard is closest in distance to aa. kilometer.b. centimeter.C. meter.d. millimeter. Can someone help me find the measure of each angle in the triangle? Mary will plant a lot of flowers ? A student observes that a popcorn kernel has a hard coat. He places the kernel in a moist paper towel and observes it for several days. He notices that the coat splits and a small root emerges. He concludes that In sentence 15, which adverb modifies an adjective?For our next vacation, he enlisted us kids to help out and be better prepared.A. preparedB. outC. betterD. our 2) If x+y=6 and xy=5 find x-y? brunomendez878788cano WILL GIVE 75 POINTS!! will send $2 IN CASHAPP!Here are recipes for two different banana cakes. Information for the first recipe is shown in the table.1st Recipe: y = 1.5x2nd Recipe: y = 7/4xIf you used 4 cups of sugar, how much flour does each recipe need?a. First: 2 cups, Second: 8 cupsb. First: 7 cups, second: 6 cupsc. First: 4 cups, second: 2 cups d. First: 6 cups, Second: 7 cups Kinsley can illustrate 9 story book pages in 3 hours. How many pages can sheillustrate per hour?Hint: Make a W.O.N. table to solve.o A) 27 pagesB) 9 pageso C) 1 pageD) 3 pages when a candidate states that he or she is planning to run for office An object accelerates 12.0 m/s2 when a force of 6.0 newtons is applied to it. What is the mass of the object? Nicole bought a meal in a town with a 9% sales tax. She tips 20% on the bill, and then adds the sales tax. What is the total cost of the meal if she orders a $15 menu item.Please submit a paragraph response, following the RACE method, to explain how to find the cost of Nicoles meal. Mercado Libre is a popular e-commerce website where you can buy or sell various goods ranging from cars to jewelry to gadgets.Visit the website of Mercado Libre and check the catalog of cell phones. Click on the listings of any three phones you see for sale and read their specifications. Then, write two paragraphs in Spanish comparing the features of the phones and stating which one you would choose and why. which of the following terminating decimals is equivalent to -1 3\4 Explain how coupling reactions allow a cell to capture the free energy of glucose oxidation rather than allow it to escape to the environment through heat