Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

This program will keep track of both good and bad (too small and too large) parts and ONLY STOP once the end of the file is found. A bearing is classified as faulty if its diameter is less than 1.96 mm or greater than 2.04 mm.

The program will also keep track of the average bearing diameter.

Each bearing should have a diameter of 2.00 mm with a tolerance of +/- 0.040 mm.

Program Requirements:

1. Reads data from a file until the end of the file is found.

2. Reports the size and number of the bearing read in for each bearing value in the file.

3. Reports the number of good, bad, and total bearings after reading in each bearing size (within the loop). ALSO reports the average diameter of the bearings examined.

4. After the end of the file is found (loop stops/stops reading in sizes):

a. Reports the total number of bearings, the number of good bearings, the number of bad bearings, and the average bearing diamtere for the batch as each bearing size is read into the program (each iteration).

b. After reading in all of the bearings the program reports:

i. Total number of bearings read

ii. Percentage of good ball bearings in the sample

iii. Percentage of bad ball bearings in the sample

iv. Average ball bearing diameter for the sample.

5. Includes comments througout the program describing what's happening.

C code with geany software

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93094757

Have any Question?


Related Questions in Computer Engineering

Run a c code to solve the following problemsuppose that you

Run a C code to solve the following problem: Suppose that you are planning to pay $14500 yearly for 4 years for a car which is $50000 now what would be the interest rate? You may follow the bellow formula: P=A((1+i)^n-1) ...

The literature on honeypots or so called fake networks to

The literature on honeypots or so called "fake networks" to attract hackers and attackers frequently mentions "entrapment" as one of the legal issues that must be considered. How of a concern is entrapment? What are some ...

Question suppose that a bayesian spam filter is trained on

Question : Suppose that a Bayesian spam filter is trained on a set of 10000 spam messages and 5000 messages that are not spam. The word "opportunity" appears in 175 spam messages and 20 messages that are not spam. Would ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Question you can transfer your health data to another

Question: You can transfer your health data to another personal health record provider such as Microsoft HealthVault. What privacy issues are involved? Express your views on using this type of system, make sure to includ ...

Whats the difference between a bigfile tablespace and a

What's the difference between a Bigfile tablespace and a Smallfile tablespace? Explain which you would use for your database and why.

Discuss the role of insurance in healthcare delivery and

Discuss the role of insurance in healthcare delivery and productivity

You work in a veterinarians office and need to organize the

You work in a Veterinarian's office and need to organize the data on pets that you treat. In your database, you want to keep track of the following information: Customer information: Name Address City State ZIP Phone # Y ...

Of 144 single women 41 had breast cancer 209 who were

Of 144 single women 41% had breast cancer, 209 who were married 52.2% had breast cancer and of 89 life bing with family 59.6% had breast cancer. Find the p value for the relationship?

What are some skills individuals who work in the field of

What are some skills individuals who work in the field of cyber security need to prevent hacks in to a company's computers?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As