arning Objectives: eate functions in C++ ply engineering problems to programming. O Materials: mputer with C++ and Visual Studio installed. ocedure:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Lab 27
Introduction to Functions
Learning Objectives:
Create functions in C++
Apply engineering problems to programming.
Lab Materials:
Computer with C++ and Visual Studio installed.
Procedure:
Create a new C++ file with the proper lab name.
Wood moves (expands and contracts) with changes in humidity.
Different species of wood react differently. Most wood movement is
across the grain, not with the grain. As humidity increases, the wood
absorbs moisture and expands.
To calculate the wood movement:
Delta-Width = width * change in moisture content * moisture co-
efficient.
Quartersawa
Flatsawn
Species
Alder
0.0015
0.0026
Cherry
0.0013
0.0025
Red Oak
0.0016
0.0037
Black Walnut
0.0019
0.0027
Measurement is in inches.
Write a that will ask the user for the change in moisture
program
content (expressed as a percent) and the width of the board.
Display a menu that asks the user to choose a species and if it is flat or
quartersawn
Calculate and display the amount of wood movement as well as the
width of the board after it has expanded or contracted.
Use functions as appropriate.
Deliverables:
Please submit a document with your lab results in the appropriate
format. For C++ programs, this is the .CPP file. (See lab submission
document). Remember that a document without a name will receive a
grade of 0. C++ programs without the proper comments will receive a 0.
Please name your file based on lab submission rules. Upload the
document to the dropbox.
Transcribed Image Text:Lab 27 Introduction to Functions Learning Objectives: Create functions in C++ Apply engineering problems to programming. Lab Materials: Computer with C++ and Visual Studio installed. Procedure: Create a new C++ file with the proper lab name. Wood moves (expands and contracts) with changes in humidity. Different species of wood react differently. Most wood movement is across the grain, not with the grain. As humidity increases, the wood absorbs moisture and expands. To calculate the wood movement: Delta-Width = width * change in moisture content * moisture co- efficient. Quartersawa Flatsawn Species Alder 0.0015 0.0026 Cherry 0.0013 0.0025 Red Oak 0.0016 0.0037 Black Walnut 0.0019 0.0027 Measurement is in inches. Write a that will ask the user for the change in moisture program content (expressed as a percent) and the width of the board. Display a menu that asks the user to choose a species and if it is flat or quartersawn Calculate and display the amount of wood movement as well as the width of the board after it has expanded or contracted. Use functions as appropriate. Deliverables: Please submit a document with your lab results in the appropriate format. For C++ programs, this is the .CPP file. (See lab submission document). Remember that a document without a name will receive a grade of 0. C++ programs without the proper comments will receive a 0. Please name your file based on lab submission rules. Upload the document to the dropbox.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY