QUESTION 1 Write a complete program that consists of the main function that will call 4 user-defined functions. The task of each function is described below. 1. The first function is to display your information such as: Full Name Matrix No Group 2. The second function is to display a Plagiarism Declaration statement "I confirm that this LAB TEST is my own work and is not copied fror a. b. C. 3. The third and the fourth functions are based on the following problem Sound travels through the air because of collisions between the molecules in the air. The temperature of the air affects the speed of the molecules, which in turn affects the speed of sound. The velocity of sound in dry air can be approximated by the formula: Velocity = 331.3 + 0.61 × Tc Write a function that allows the user to input a starting and an ending temperature. Within this temperature range, another function pass by value should output the temperature and the corresponding velocity in 1° increments using a do-while loop. For example, if the user entered 0 as the start temperature and 2 as the end temperature, then the program should output: At 0-degree Celsius the velocity of sound is 331.3 m/s At 1-degree Celsius the velocity of sound is 331.9 m/s At 2-degree Celsius the velocity of sound is 332.5 m/s Figure 1: Sample output display Global variables are not allowed to be used in your program. You can be creative to display the output program and not limited to above Figure 1. Your program should allow the user to repeat the process as often as the user wishes until he/she wants to exit the program.
QUESTION 1 Write a complete program that consists of the main function that will call 4 user-defined functions. The task of each function is described below. 1. The first function is to display your information such as: Full Name Matrix No Group 2. The second function is to display a Plagiarism Declaration statement "I confirm that this LAB TEST is my own work and is not copied fror a. b. C. 3. The third and the fourth functions are based on the following problem Sound travels through the air because of collisions between the molecules in the air. The temperature of the air affects the speed of the molecules, which in turn affects the speed of sound. The velocity of sound in dry air can be approximated by the formula: Velocity = 331.3 + 0.61 × Tc Write a function that allows the user to input a starting and an ending temperature. Within this temperature range, another function pass by value should output the temperature and the corresponding velocity in 1° increments using a do-while loop. For example, if the user entered 0 as the start temperature and 2 as the end temperature, then the program should output: At 0-degree Celsius the velocity of sound is 331.3 m/s At 1-degree Celsius the velocity of sound is 331.9 m/s At 2-degree Celsius the velocity of sound is 332.5 m/s Figure 1: Sample output display Global variables are not allowed to be used in your program. You can be creative to display the output program and not limited to above Figure 1. Your program should allow the user to repeat the process as often as the user wishes until he/she wants to exit the program.
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...
Related questions
Question
Question
![QUESTION 1
Write a complete program that consists of the main function that will call 4
user-defined functions. The task of each function is described below.
1.
The first function is to display your information such as:
Full Name
a.
b.
Matrix No
Group
2.
The second function is to display a Plagiarism Declaration statement
"I confirm that this LAB TEST is my own work and is not copied from
3.
The third and the fourth functions are based on the following problem
Sound travels through the air because of collisions between the molecules in
the air. The temperature of the air affects the speed of the molecules, which in
turn affects the speed of sound. The velocity of sound in dry air can be
approximated by the formula:
C.
Velocity = 331.3 + 0.61 × Tc
Write a function that allows the user to input a starting and an ending
temperature. Within this temperature range, another function pass by value
should output the temperature and the corresponding velocity in 1° increments
using a do-while loop. For example, if the user entered 0 as the start
temperature and 2 as the end temperature, then the program should output:
At 0-degree Celsius the velocity of sound is 331.3 m/s
At 1-degree Celsius the velocity of sound is 331.9 m/s
At 2-degree Celsius the velocity of sound is 332.5 m/s
Figure 1: Sample output display
Global variables are not allowed to be used in your program. You can be
creative to display the output program and not limited to above Figure 1. Your
program should allow the user to repeat the process as often as the user
wishes until he/she wants to exit the program.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1e882811-9ee3-4264-8348-be3b48cb68c9%2F39806807-34d2-438a-800d-b77b292f0925%2F0f6jsh3_processed.jpeg&w=3840&q=75)
Transcribed Image Text:QUESTION 1
Write a complete program that consists of the main function that will call 4
user-defined functions. The task of each function is described below.
1.
The first function is to display your information such as:
Full Name
a.
b.
Matrix No
Group
2.
The second function is to display a Plagiarism Declaration statement
"I confirm that this LAB TEST is my own work and is not copied from
3.
The third and the fourth functions are based on the following problem
Sound travels through the air because of collisions between the molecules in
the air. The temperature of the air affects the speed of the molecules, which in
turn affects the speed of sound. The velocity of sound in dry air can be
approximated by the formula:
C.
Velocity = 331.3 + 0.61 × Tc
Write a function that allows the user to input a starting and an ending
temperature. Within this temperature range, another function pass by value
should output the temperature and the corresponding velocity in 1° increments
using a do-while loop. For example, if the user entered 0 as the start
temperature and 2 as the end temperature, then the program should output:
At 0-degree Celsius the velocity of sound is 331.3 m/s
At 1-degree Celsius the velocity of sound is 331.9 m/s
At 2-degree Celsius the velocity of sound is 332.5 m/s
Figure 1: Sample output display
Global variables are not allowed to be used in your program. You can be
creative to display the output program and not limited to above Figure 1. Your
program should allow the user to repeat the process as often as the user
wishes until he/she wants to exit the program.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY