C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
14. (Data Processing) a. A national medical testing laboratory wants a new computer system
to analyze its test results. The system must be capable of processing each day's results as
well as retrieving and outputting a printed report of all results meeting certain criteria,
such as all results for a particular doctor or for hospitals in a certain state. Determine
three or four major program units into which this system could be separated. (Hint: One
possible program unit is "Prepare Daily Results" to create each day's reports.)
b. Suppose someone enters incorrect data for a test result, and the error is discovered
after the system has entered and stored the data. What program unit is needed to cor-
rect this problem? Discuss why such a program unit might or might not be required
by most systems.
c. Assume a program unit exists that allows users to change data that has been entered
and stored incorrectly. Discuss the need for including an "audit trail" that would allow
reconstructing…
(i)Define data type.
A variable is declared as being of a particular type.
ii) Give three attributes of the variable that must be made known to the compiler.
(C program only)
2: Return structure from a function
Create a function that will get information of students using structure. When the function is called it will return a structure. The returned structure is displayed from the main() function.
Input
1. name
Constraints
accept string until \n is encountered
2. age
Constraints
The input must be an integer value
Output
Enter student name: Juan deal CruzEnter age: 18
Displaying Information:Name: Juan dela CruzAge: 18
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- (SQL Table) ERD for the University database Narrative Description of the University Database Students take courses at the university. A student can serve as a mentor for one or more other students, but he/she is not required to do so. Further, each student can have one other student as his/her mentor, but this, too, is not required. A student, however, is required to be assigned to one and only one faculty member. In turn, a faculty member advises many students but is not required to advise any students. Courses are offered in multiple sections. A course consists of a prefix as well as a course number. For example, in this course, CSIS is the course prefix, and 325 is the course number. CSIS 325 is offered in multiple sections, some residentially and some online. All residential sections must be taught in a classroom on a campus; whereas online classes are not assigned to a classroom. Sections are represented by a three-digit section number such as 001, 002, B01, etc. A given…arrow_forward4. (Data processing) a. Declare a single structure data type suitable for an employee structureof the type shown in the following chart:Number Name Rate Hours3462 Jones 14.62 406793 Robbins 15.83 386985 Smith 15.22 457834 Swain 16.89 408867 Timmins 16.43 359002 Williams 14.75 42b. Using the data type declared in Exercise 4a, write a C++ program that interactively acceptsthe chart’s data in an array of six structures. After the data has been entered, the programshould create a payroll report listing each employee’s name, number, and gross pay. Includethe total gross pay of all employees at the end…arrow_forward(Q3) This is a Data Structures problem and the programming language used is Lisp. Solve the question we detailed steps and make it concise and easy to understand. Please and thank you.arrow_forward
- *Explain with details* A clinical laboratory has a vacancy for a medical transcriptionist. The job requires candidates to be able to type at least 60 words per minute with an error rate of no more than 5%. Candidate A has more than 10 years in medical transcription, types 65 words per minute with a 2% error rate. She also has a very strong work record; however, she has been diagnosed with strong indications of carpel tunnel syndrome in her right wrist. To limit the tingling sensation and pain she occasionally experiences, she wears a wrist brace that extends over the lower portion of her hand on both sides and is visible even when she wears long sleeves. Candidate A applies in person for the job. She completes the application and takes a typing test. Impressed with her application, resume, and score on the typing test, the recruiter offers to immediately interview Candidate A for the position. One week later, Candidate A calls the employer to determine her status for employment. The…arrow_forwardNeed help with part b) i). Please explain each step and neatly type up. Thank you :)arrow_forward(c) Write structure declaration name product to store information data as below: [C2, SP1] 1. country (string) 2. partNum (int) 3. partName (string) 4. cost (double)arrow_forward
- (Database management ) Consider a Superstore Database which consists of 3 tables, Orders, Returns, and Managers. The CSV files have been provided along with this DOC file in the Midterm 2 Link in the Moodle. Answer the questions as below: Create the three tables with their SQL queries in a newly created Database Superstore and paste the code in text format below. Make sure to assign primary and foreign keys as needed. Be careful while using the Unique and NOT NULL constraints. Use them only when required. Use correct data type for each attribute in an Entity. Use PG-ADMIN to create these tables as the tables will be needed to answer questions in question 2. Use the created table as in Question 1, solve the problems as mentioned below. You will have to import the respective CSV files of the above-created tables as without them, it is impossible to solve the questions below. If you are not able to upload the files successfully, do not leave the query questions. Just write the query to…arrow_forwardProblem 1: (Hint: Use a sequential structure) How do you calculate the miles you are getting per gallon of gasoline if you record the mileage readings from your car’s odometer each time you fill up the gas tank? Two odometer readings should be inputted, one reading is before you fill up the gas tank, and the second reading is when you refill the gas tank. The third input is the quantity of gallons of gasoline purchased when the gas tank is refilled. After inputting these 3 values, calculate and output:arrow_forwardProblem 1: (Hint: Use a sequential structure) How do you calculate the miles you are getting per gallon of gasoline if you record the mileage readings from your car’s odometer each time you fill up the gas tank? Two odometer readings should be inputted, one reading is before you fill up the gas tank, and the second reading is when you refill the gas tank. The third input is the quantity of gallons of gasoline purchased when the gas tank is refilled. After inputting these 3 values, calculate and output: The miles traveled between gas refills The average miles per gallon based on the miles traveled and the amount of gasoline purchased after the time the gas tank is refilled Algorithm: Data Example:arrow_forward
- Problem 17. [ 1 point for correctness ] Use the Design Recipe to define a function pulse_rate that has two parameters. The first is the number of seconds a nurse has counted pulses, and the second is the number of pulses counted (both ints). The function should return the pulse rate, pulses/minute, as a float. Don't forget to convert seconds to minutes! Include a Docstring.(use Python) For example: Test Result print(round(pulse_rate(30,22),1)) 44.0 Use this statement to test your pulse_rate function: assert_equal(round(pulse_rate(30, 22),1),44.0)arrow_forwardHuffman Code[Problem Description]For an English article, the frequency of occurrence of 26 lowercase letters is counted, and then they are encoded by Hoffman code.[Basic Requirements]1) Read the original text file from the file and display the text on the screen..2) Output the number of occurrences of 26 English lowercase letters, and the corresponding Hoffman code... Below is the data to be displayed At present, most of the dynamic sign language recognition is only for sign language words,the continuous sign language sentence recognition research and the corresponding results are less, because the segmentation of such sentence is very difficult. In this paper, a sign languagesentence recognition algorithm is proposed based on weighted key frames. Key frames can be regardedas the basic unit of sign word, therefore, according to the key frames we can get related vocabularies, and thus we can further organize these vocabularies into meaningful sentence. Such work can avoid the…arrow_forward(USING PYTHON) create a function create employee_objects that takes a list of data as input and returns back a list with each element as an object that belongs to class Employee def create employee_objects (data): #start of code # end of code employees_list = create employee_objects (employees_data) Expected output: 29arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Boolean Algebra - Digital Logic and Logic Families - Industrial Electronics; Author: Ekeeda;https://www.youtube.com/watch?v=u7XnJos-_Hs;License: Standard YouTube License, CC-BY
Boolean Algebra 1 – The Laws of Boolean Algebra; Author: Computer Science;https://www.youtube.com/watch?v=EPJf4owqwdA;License: Standard Youtube License