Design and code an ansi standard c program

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

Design and code an ANSI Standard C program which enhances the code below only so as to make it a modular program. (each of the program four tasks of ask, get, alter and display are now separate functions).

This will necessitate designing appropriate ask, get, alter and display functions. It will also necessitate coding four ANSI Standard function prototypes, function calls in main() and single-task function definitions. Explain in a brief function comment, what the function's task is and if it needs to have data passed into it, if it needs to return a value to the method that called it (main) or possibly both or neither.

Do not use any global variables, only local variables - in other words, declare all your variables inside and at the top of your functions, to include main().
===============
Code to enhance:

#include <stdio.h>

int main()
{

float fahrenheit;
float celsius;

printf("Enter the Fahrenheit temperature as a whole number: ");
scanf("%f",&fahrenheit);

celsius = 5.0/9.0*(fahrenheit - 32);

printf("Fahrenheit temperature %0.2fn",fahrenheit);
printf("Celsius temperature %0.2fn",celsius);
}

Reference no: EM13939068

Questions Cloud

Assessment of a new emerging market : This assignment's purpose is to perform a country analysis and assessment of a new emerging market where rapid GDP growth has created attractive investment opportunities.
Explain why the disynaptic circuit is necessary : Why there are two neurons in the autonomic system efferent pathway when there is only one in the somatic efferent pathway. Explain why the disynaptic circuit is necessary.
Plus the company stops the projects and sells : Plus the company stops the projects and sells off the project for an additional $16 Million inflow. Thus, total inflows at year ten equals $28 Million.
Find how many years : Find how many years it will take for $15,500 to increase to $30,000 in a savings account with a 6.75 % interest rate with 4 compounding yearly.
Design and code an ansi standard c program : Design and code an ANSI Standard C program which enhances the code below only so as to make it a modular program. (each of the program four tasks of ask, get, alter and display are now separate functions).
Assume the average word is five letters long : Many computers use one byte (8 bits) of data for each letter of the alphabet. There are 44 millions words in the Encyclopedia Brittanica.(a) What is the bit density (bit/in^2) of the head of a pin if the entire encyclopedia is printed on it? Assume t..
Research the history of graphic novels : Research the history of graphic novels. where did they orginate? what defines a graphic novel? how have graphic novels evolved over the past 50 years
What is the probability of two faces : A dice has one face painted in red, two other faces painted in blue, and the other three faces painted in green. If we throw the dice twice, what is the probability of two faces upward show the same color?
The high growth company last dividend : If High Growth's required rate of return is 13%, what is the company's current stock price?

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