Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 7: Programs Chapters 3 and 6- Modules and Functions (25 Points Each) Directions (Read CAREFULLY and follow COMPLETELY) Create the following programs in C++

image text in transcribed
Part 7: Programs Chapters 3 and 6- Modules and Functions (25 Points Each) Directions (Read CAREFULLY and follow COMPLETELY) Create the following programs in C++ that perform the purpose described and show the sample output (with user input where applicable) . Include at least three lines of comments/remarks in each program, including your name, the date, and a description of the program. Upload your .cpp source files to Moodle for each of the programs listed Add to Homework 3's Word file the output of your program Add pseudocode or a flowchart for ONE of the two Be sure to adhere to the college and course academic and the screenshot of the run. programs below and add it to your Word/PDF document. honesty policy 1. Prompt the user for a Fahrenheit temperature in the main part of the program, then pass this value to a user-defined module/function which will convert it to Celsius and professionally display the Celsius conversion. Celsius - (5/9) (Fahrenheit- 32) In other words, the input will occur in the main portion of the program and the process to convert the temperature and output the results will occur in the module (function). Your program should run like this (round the Celsius result down to two digits to the right of the decimal and display both temperatures) Enter Fahrenheit temperature to convert: 100 100.00 Fahrenheit is equal to 37.78 Celsius 2. Create a program that will calculate the amount of change to give back in amounts less than a dollar. In the main, ask the user to enter how much money (in cents) they need to receive change for. Pass this amount to function that will calculate and output the correct change, using the most quarters possible first, then the most dimes, the most nickels and finally any pennies required. Hint: Use the Modulus and division operators. Here are two sample runs of the program

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_2

Step: 3

blur-text-image_3

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Path-goal theory assumes that

Answered: 1 week ago