Reports the total number of bearings

Assignment Help Computer Engineering
Reference no: EM132107894

Programming problem: This program is simply an improvement over Assignment. This better version will also consider whether or not the size read in from the file is VALID.

The program will keep track of total number, good, bad, & valid diameters. The program will ONLY STOP once the end of the file is found. Like #8, a ball 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.

Program summary:

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 valid, invalid, good, bad, and total bearings after reading in each bearing size (e.g. within the loop). ALSO reports the average diameter of the VALID bearings examined.

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

a. Reports the total number of bearings, the number of valid bearings, the number of invalid bearings, the number of good bearings, the number of bad bearings, and the average bearing diameter (considering only valid bearings) for each iteration.

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

i. Total number of bearings read.

ii. Total number of valid and invalid bearings read.

iii. Percentage of good ball bearings considering valid sizes only.

iv. Percentage of bad ball bearings considering valid sizes only.

v. Average ball bearing diameter for valid sizes only

5. Note: the 2.0 mm +/- 0.05 mm is NOT the range used for VALIDATION... that is the test for GOOD versus BAD... a larger range will be used for testing validation.

6. The text file will contain a mixture of good (within tolerance), bad (outside of tolerance), AND INVALID sizes (see your answer to Q1). Recall however that the program will only quit when the end of the file is found.

C code with geany software

Reference no: EM132107894

Questions Cloud

Create and print out the two arrays : Create and print out the two arrays: (Be sure to do this first) You are allowed to hard code these arrays into your program.
What could be the cause in the increase t the value : What does it mean to have a higher inventory turnover ratio (compared to the annual year before)? What could be the cause in the increase t the value?
Create a webpage similar to the one shown : Create a webpage similar to the one shown in Figure 12-25. The image on the webpage is stored in the VB2015\ Chap12\Carnival.png file.
Will you recommend someone to invest in it or not : Say that the company's current and quick ratios are 0.59 and 0.46 respectively, while its competitors' are 1.39 and 1.23?
Reports the total number of bearings : Reports the number of valid, invalid, good, bad, and total bearings after reading in each bearing size (e.g. within the loop).
Taggart constant growth rate in dividends : Taggart's equity cost of capital is 10%, and its dividends are expected to grow at a constant rate. Based on this information, what is Taggart's constant growth
What is the price of sda co today : Assuming the dividends will remain constant indefinitely and shareholders face a discount rate of 15%, what is the price of SDA Co. today?
Research on the latest or emerging trends : MGT204 Logistics and Supply Chain Management - research on the latest or emerging trends in Logistics and Supply Chain management (LSCM) and report
What is the current price of aa co : It is expected that dividends will grow at 4% indefinitely. Assuming a discount rate of 12%, what is the current price of AA Co.?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe and explain the relationships among morality

Describe and explain the relationships among morality, ethics, law and crime as they intersect in the case example that you have found

  For your assiggnment consider the following writing two

for your assiggnment consider the following writing two pagesdefine a decision support system dss.what is the

  Benefits of the two computer programmers

A multinational corporation transfers the foreign employee to the United States on a L-1 visa. The foreign employee is a computer programmer, working alongside an American computer programmer doing the equal  work.

  Design the gui and develop pseudocode that will help you

For this task, you will design the GUI and develop pseudocode that will help you plan how the Swing application will respond to the user.

  Explain how you ensured the antivirus program is updated

Explain how you ensured the antivirus program is updated and running a full scan of the system; describe anything significant you observed?

  Perform an amortized analysis of half-splay trees

Show that the nodes of any AVL tree T can be colored "red" and "black" so that T becomes a red-black tree. Perform an amortized analysis of half-splay trees.

  What preventive maintenance tasks need to be scheduled what

1.describe final system acceptance criteria2.resources were the right personnel assigned to the project?3.what are some

  Write the program in java

Write the program in Java (with a graphical user interface) so that it would allow the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage.

  Define the concept of object orientation

decribe the concept of object orientation and Universal Modeling Language (UML) as used in computer programming.

  Examine the practicality of building multiple interface

Examine the practicality of building multiple interface options for diverse populations, rather than building one interface that meets the needs of the majority of end users.

  Why in your opinion is it less expensive or cost effective

Why in your opinion is it less expensive/cost effective? vMotion, what is it and why it is important for HA (how we can restore a VM from SAN storage).

  Write a function to calculate the dft

In Matlab, write a function to calculate the DFT using simple multiplications and summations, write a function to implement the fast fourier transform, and write a function to reorder an array according to bit reversed index. Please provide all co..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd