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

  Build a grade performance record and prediction tool

You are to build a grade performance record and prediction tool for your course. This tool shall record the individual grades of a student

  Object-oriented programming-event-driven programming

Use the Internet or Strayer databases to research the advantages, features, and common examples of OOP and EDP. Note: You may use the Association for Computing Machinery (ACM) Digital Library to support research on the above topics. Instructions d..

  Calculate the cost of carrying additional luggage results

The application used to calculate the cost of carrying additional luggage results in erroneous amount, if the weight of the luggage is a fractional number. Help the development team modify the code snippet so that the cost of carrying additional l..

  C program to randomly generate more than ten ip address

Write C or C++ program which Randomly generates more than 10 IP addresses written in decimal format and write results in text file (e.g. Dec_IPAddresses.txt)

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Implement a simple calculator program

Implement a simple calculator

  Write a program that skip s leading whitespace character

a) Write a program that skip s leading whitespace character s in each line of the pro vided data file CPPHumor .txt . Save the results in a new file

  Compound operators or arithmetic assignment operators

Rewrite the given assignment statement using a combined assignment operator: (Use single spaces between operands and operators)

  Explain the chess moves with the help of the program

A user by pressing "v" gives for example Kb9 which is not valid move he will get a notation on screen "not valid move" . iF HE gives Kb2 then gets on screen "Valid move. Ok"

  Difference between a constant pointer

Explain the difference between a constant pointer to non-constant data and a non-constant pointer to constant data. Show the syntax to declare them.

  Counts all occurrences of a given string from such a bag

Write a C++ function that removes and counts all occurrences of a given string from such a bag.

  Examine the differences between a linear and augmented line

"Developing a Website" Please respond to the following: Examine the differences between a linear and augmented linear structure. Examine the differences between hierarchical and linear structures. Explain why a coherent structure is necessary. Provid..

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