Write the function body for each

Assignment Help Computer Engineering
Reference no: EM132106327

Program 1 ( selection statement )

Write a "Temperature Conversion" program.

Prompt the user to choose: 1) Centigrade to Fahrenheit, 2) Fahrenheit to centigrade.

Prompt the user for temp to convert.

Calculate new temp2. The calculation of the new temp2 depends on choice 1 or 2 above.

Print out temp2.

Be sure to use the C and F temp notation. (Hint: use decimal data types)

Use filename week3YourNameProg1Temp

Program 2 ( loop statement )

Fix this program, so that this program prints out the numbers 1 to 10.

What does it do as currently written ?

#include <iostream>
using namespace std;
int main() {
for( int i = 1; i > 0; i ++) {
cout << "i = " << i << endl;
}
system("pause");
return 0;
}
Use filename week3YourNameProg2Fix

Program 3 ( Nested loop statement )

Write program using two(2) nested ‘for' loops to print out the values of a Multiplication Table 12 By 12.

Output should look like Table: 12 columns and 12 rows. SMake it look lined up... Hint Use the setw() function.

Hint: Multiply the first for loop value by the second for loop value...

Use filename week3YourNameProg3Mult

Program 4 - ( Functions )

In one program, write 3 separate functions.

1) Write the function body for each:

int squareInteger s( int x)

double squareDouble( double d)

float squareFloat ( float f)

They basically do the same thing, square a number, but use different argument datatype types.

2) Test Each function: Using int 6, double 6.9, float 9.1. Explain the results.

Use filename week3YourNameProg4funs

Be sure to include the code, test cases, conclusions and screen prints of the successful execution for each program.

Reference no: EM132106327

Questions Cloud

Pros and cons of insisting that the entire family : What are the pros and cons of insisting that the entire family attend the initial consultation? What would you do if you learned that some of the family members
Explain the basic concept of the process management : How a single process (parent process) creates a child process and how they work on Unix/Linux(/Mac OS X/Windows) environment.
Makes a recursive call to put a queen on the next row : The function will know it hit the base case because the position (or the column) is out of bounds (NOT because you generated all possible permutations).
Perform three function calls : Write a program that does the following: .Declare three integer variables in main0, called var1, var2, var3 .
Write the function body for each : Fix this program, so that this program prints out the numbers 1 to 10. What does it do as currently written ?
Convert the character in r0 from upper-case to lower-case : Convert the character in R0 from upper-case to lower-case by operating on it, NOT replacing it. The lower-case converted character should stay in R0.
Difference for a two-tailed test : If the sample mean difference (i.e. M1 - M2) is 8 points, is this enough to indicate a significant difference for a two-tailed test at the .05 level?
Ask the user to type on the keyboard any user-supplied value : Modify program 1 above so that it computes and then displays on the console computations of zNo(n) for a user-specified values.
What age and stage does this issue typically impact a person : At what age and stage does this issue typically impact a person? What is its potential impact on a person's development progress?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Assume you are a wireless network contractor

How would you describe the OSI model to somebody like this potential client who does not have a technical background? Come up with an analogy, that would help clarify your explanation. Note: If you decide to use an analogy it should be original an..

  Review the agile and systems development life cycle sdlc

question 1. review the agile and systems development life cycle sdlc software development methodologies in your

  Draw binary search trees that function insert will construct

Draw the binary search trees that function insert will construct for the list of 14 names presented in each of the following orders and inserted.

  In what ways such a structure is similar to a list

One of the problems of storing data in a matrix (a two-dimensional Cartesian structure) is that if not all of the elements are used, there might be quite a waste of space. In order to handle this, we can use a construct known as a "sparse matrix".

  How could you define the uses relation

How could you define the USES relation for 143, considering the modules it uses by calling its formal procedure parameter?

  Describe exact investigative techniques that you would use

Describe the exact investigative techniques that you would use to analyze the users' information, habits, and history for each program.

  Securing system using iptable firewall

Discuss the advantages and disadvantages of firewalls with iptables and make suggestions to overcome the disadvantages in your report - Start the services and ensure that they are available for you to do experiment with IPTable Firewall.

  Describe quality management at the performer level

Evaluate and summarize overall quality management at the organization level. Evaluate and summarize quality management at the process level. Evaluate and describe quality management at the performer level.

  What safe equivalent function should they use to prevent

They see the function, strcpy being called. What safe equivalent function should they use to prevent a buffer overflow?

  Write a program that prompts the user to input the lengths

Write a program that prompts the user to input the lengths and widths of the door, each window, the bookshelf, and the length, width, and height of the room.

  How the applications are being used in your specialization

Examine how these applications are being used in your specialization. Determine how graph theory has advanced the knowledge in your area of specialization.

  What is the period of the external signal

Assuming a 2 MHz counter clock frequency. what is the period of the external signal in Figure?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd