Calculate the circumference a circle

Assignment Help C/C++ Programming
Reference no: EM131482876

Assignment: Functions

In this assignment, you will Design, C-code and Write a test plan for a program that performs the following task:

Write your own unique program that has a function call in the main inside a sentinel loop. Use the sentinel value -99 to exit the loop. The main should prompt the user for one number, then execute the function and display the results from the function.

The function should have one input Integer argument and return a Float value. The function that you MUST use is defined below.

If your Last Name begins with:
A-F - do no. 1
G-L - do no. 2
M-R - do no. 3
S-Z - do no. 4

1)Calculate the Area of a circle. Input: one number

2)Calculate the Circumference a circle. Input: one number

3)Convert the temperature from Celcius to Farenheit Input: one number

4)Convert the temperature from Farenheit to Celcius. Input: one number

There are 3 components of your submission including:

- DESIGN - Design your program using one of following three design tools:

Note: you need a design for both the main and the function

o Program Design (i.e. outline) - Make sure you include the start and end of the Loop and include any selection/decision conditions.

o Pseudo-code - Design your program using the pseudo-code commands

o Flowchart - Provide a flowchart for your design using the flowchart symbols that we learned in class. You can use Excel, Word, Powerpoint, Visio or any software you have available that will allow to draw shapes and connectors.

- TEST PLAN - Prepare at least 3 sets of input data (Test data) along with their expected output for testing your program. Your test data can be presented in the form of a table as follows (note: feel free to adapt to your design. Note: A test set is one execution of the program - NOT one loop.

- C-code - submit your C-code as a separate file (.txt or .c)

o Include a screen shot of the execution of you program.
o Make sure your C-code is documented with Header and in-line comments and properly indented.

The Design, Test Plan should be placed in a Word or PDF document for submission.

Reference no: EM131482876

Questions Cloud

Give an example of market failure : Academic studies suggest that the amount people tip at restaurants is only slightly related to the quality of service, and that tips are poor measures.
How to use the pmt function : The Excel PMT function is used to calculate the payment for a loan based on constant payments and a constant interest rate.
Business venture from assignment : Indicate the risk level associated with your business venture from Assignment 1. (Food Industry) Then
Why does it seem to be such contentious political issues : The U.S. Department of Labor reports that of the roughly 145 million people employed, just over half (73.9 million) are paid hourly, but less than 3%.
Calculate the circumference a circle : Calculate the Circumference a circle. Input: one number 3)Convert the temperature from Celcius to Farenheit Input: one number.
Project on recycling of papers : Prepare a project on given topic  - Topic is recycling of papers
Compare and contrast the of theories of goal setting : Compare and contrast the significant similarities and differences among the theories of goal setting, self-efficacy, and reinforcement.
Describe the case of adam smith : Adam Smith, in his famous book The Wealth of Nations, noted, "Every individual neither intends to promote the public interest, nor knows how much.
Establish the correct macro-hedge : Should the bank go short or long on the futures contracts to establish the correct macro- hedge?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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