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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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