Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use C++ language Lab 5 CMPSC 201- Fall 2017 Due by the end of your recitation section on 10/6/17 Goal: practicing nested loops Problem:

image text in transcribedPlease use C++ language
Lab 5 CMPSC 201- Fall 2017 Due by the end of your recitation section on 10/6/17 Goal: practicing nested loops Problem: You have been asked to develop a program to help analyze data obtained from a company manufacturing widgets for heat transfer. The company makes batches of 100 widgets at a time. After production, the company measures the thermal conductivity of each widget. You should create a program that will prompt the user to enter the batch name and the thermal conductivity of each widget one at a time, determine the minimum conductivity for that batch, determine the maximum conductivity for that batch, and the determine the average conductivity for that batch. When the user enters an invalid conductivity measurement of below 3 or above10, he/she should be told that the entered conductivity measurement is invalid that the user should be prompted to enter the conductivity again as long as he/she enters an invalid conductivity measurement. The evaluation process should be repeated as long as there are more batches to be analyzed (do not ask the user to enter the number of batches). The output of your analysis for one batch should be similar to that given below with appropriate values in the blanks. "Batch minimum thermal conductivity of conductivity of had an average thermal conductivity of a and a maximum thermal Use a for loop to allow the user to enter the thermal conductivity of each widget in a batch. Use a while loop to check the validity of the user's input and prompt to re-enter invalid numbers. Use a do-while loop to repeat the process for other batches. Note: develop your program using batches (e.g. 10 to 15 widgets), then once you know your program is running change to 100 widgets per batch. Do not use any concepts beyond Chapter 5 of your textbook! Remember your problem description should be detailed enough so anyone reading it will know what the code should be doing without accessing any outside documentation. Do not skip on the details. Attach your C++ source file to the Assignment on CANVAS. Remember to confirm all your submissions to CANVAS

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions