1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
xxTIMURxx [149]
3 years ago
14

Write afunction BalerAvg which calculate and display the average of aplayer (Baler), call this

Computers and Technology
1 answer:
podryga [215]3 years ago
8 0

<u>C program calculate and display the average of a player</u>

#include <stdio.h>

void BalerAvg(int runs,int balls )//Defining function

{

   double Avg=0.0;

   Avg= (double)(runs * 60)/(balls);//formula is given in question

   printf("Average is%f",Avg);//printing the average

}

int main() //driver function

{

      int runs=0,balls=0;

      printf("Enter runs given by the baler in an over\n");//taking input from user

      scanf("%d",&runs);

      printf("Enter the number of balls dilivered by the baler\n");

      scanf("%d",&balls);

      BalerAvg(runs,balls);//Calling Function

return 0;

}

<u>Output</u>

Enter runs given by the baler in an over  

5

Enter the number of balls dilivered by the baler  

69

Average is 4.347826

<u>Function BalerAvg which calculate and display the average of a player (Baler)</u>

void BalerAvg(int runs,int balls )//Defining function

{

   double Avg=0.0;

   Avg= (double)(runs * 60)/(balls);//formula is given in question

   printf("Average is%f",Avg);//printing the average

}

This is the function with the name BalerAvg of return type void having parameters runs and balls of integer type.This function is used to calculate the average of a player.  

You might be interested in
Most GUIs provide all of the following except _____.
erma4kov [3.2K]

Hello there! Your answer would be A.

GUIs are Graphical user interfaces. Command prompts are unique to Windows operators, so your best option would be A since the question covers most GUIs.

Hope this helps, have a great day!

7 0
3 years ago
Zac works in the robotics industry. He assists in assembling robots. He also carries out regular inspections at industries that
loris [4]

Answer:

Robotics Engineer

Explanation:

This is a designation for those like Zac who have loads of patience, and also a lot of experience in Engineering. It's the Engineers like Zac who is responsible for figuring out the robots on paper. And this takes quite an effort as they have to do a lot of research as well as should be technically sound as well as sophisticated in Robotics. Note, Zac assists in assembling Robots, and this can only be done by a Robotics Engineer. And Zac also carries regularly the inspection of the industries which have bought his organization's Robots. And he finds if they are functionally sound. And that can be done by only a Robotic Engineer, And he is hence, certainly a Robotic Engineer.

7 0
3 years ago
Read 2 more answers
Which disipline involves creating computer networks
Anestetic [448]

Answer:

computer science

The discipline of computer science includes the study of algorithms and data structures, computer and network design, modeling data and information processes, and artificial intelligence.

Explanation:

hope this helps

brainliest plz

5 0
3 years ago
Read 2 more answers
What is a burned edge ?
scoray [572]

Answer: IT IS A DARK FEATHERED EDGE AROUND AN IMAGE

Explanation:

8 0
4 years ago
How many bits are required to store the text of the number "97" in ASCII?'
valina [46]

Answer:

You need x64 or x32 bits

Explanation:

I don't have a capture or a photo

8 0
3 years ago
Read 2 more answers
Other questions:
  • What output is produced by the following code fragment int num = 1 max = 20 while num &lt; max?
    7·1 answer
  • While at work, Joe asked Dana to show him how to change the copier paper. Joe kept working as she explained the process, and the
    5·2 answers
  • This LEGENDARY character made a much-celebrated comeback in 2017. What was the name of the villain he faced in this epic tale?
    7·2 answers
  • Each of the major DBMS products changes quite rapidly, and keeping DBMS software up-to-date can be a difficult task. As a DBA, w
    14·1 answer
  • 3. The invention of the transistor was important to the development of computers because it
    5·1 answer
  • The ________ is the heart of the operating system and controls its most critical processes.
    9·1 answer
  • What lever has resistance between the axis (fulcrum) and the force (effort)?
    10·2 answers
  • When typing a cell, hitting Tab will bring which result?
    12·1 answer
  • Out of a list of the values 8, 3, 30, 5, 15, and 6, what result would the MIN function return?
    9·2 answers
  • Someone please help will mark as brainliest
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!