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

  What does the given code print

What does the following code print: char* s1 = "ABCDE"; char* s2 = "ABCE"; if (strcmp(s1,s2) endl; else cout = " endl.

  What is the xml editor

should C++ programming language be extended to include an XML editor and parser as is the case for the Java® programming language, or should this be built into the Integrated Development Environment (IDE) that supports the programming language

  Perform ticket bookings for various flights

The development team of SoftSols Inc. analyzes the source code of the existing software and notes the following observations: The software contains a private class, named bookTickets, that contains the methods used to perform ticket bookings for va..

  Recursive function

What is the result of the following recursive function when called with mm(10)? Write out the execution trace of this call to mm(10).

  Take four unsigned char bytes and combine

Take four unsigned char bytes and combine them into a single integer type. You will needed shifts and one of the logical bit operators.

  Write a program to find the max value

Write a program to find the max value in an unsigned char array[100].

  Define inheritance and polymorphism

Inheritance and Polymorphism, The objective of this programming assignment is to experience the use of inheritance in Java and to see how polymorphism works with inheritance in Java.

  Write a program that ask a user to enter a list of names

Write a program that ask a user to enter a list of names. When you finish, The program will show the total number of characters in all the names.

  Write a method named negative sum

Write a method named negativeSum that accepts a Scanner as a parameter reading input from a file containing a series of integers, and determine whether the sum starting from the first number is ever negative

  Mplement the function pop() which deletes the element

Assume that a doubly linked list "header" stores the elements of a priority queue. Implement the function pop(), which deletes the element with the largest value from the list (priority queue).

  Program to calculate the records in database

The O-So-Good Chocolate Company produces different types of chocolates daily. They need a little summary report that shows how much of each chocolate type they produce for a given month. This way they can plan next month's production schedule.

  Declare and initialize an appropriate variable

Show the source code for a C# console application names ‘Sibs' that prints your frist name on the first line, your last name on the second line, and the number of siblings you have on the third line Declare and initialize an appropriate variable fo..

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