programming with C

programming with C

 

programming with C

Save your time!

  • Proper editing and formatting
  • Free revision, title page, and bibliography
  • Flexible prices and money-back guarantee

 

Assignment

1 Write a program that will first allow a user to choose one of two options:

Make sure you submit a unique essay

Our writers will provide you with an essay sample written from scratch: any topic, any deadline, any instructions.

100% ORIGINAL

1. Convert a temperature from degrees Celsius to degrees Fahrenheit. 2. Convert a temperature from degrees Fahrenheit to degrees Celsius.

The program should then prompt for the temperature value to be entered and output the new value that results from the conversion. To convert from Celsius to Fahrenheit
you can multiply the value by 1.8 and then add 32. To convert from Fahrenheit to Celsius, you can subtract 32 from the value, then multiply by 5, and divide the result
by 9.

2 Write a program that takes 4 numbers a, b, c and d, then find and prints the minimum value.

3 Write a program that prompts the user to enter the date as three integer values for the month, the day in the month, and the year. The program should then output the
date in the form 31st December 2016 when the user enters 12 31 2016, for example. You will need to work out when th, nd, st, and rd need to be appended to the day
value. Don’t forget 1st, 2nd, 3rd, 4th… 11th, 12th, 13th, 14th; and 21st, 22nd, 23rd, and 24th,etc..

1- FILE NAME
SUBMIT ONE FILE FOR ALL YOUR PROGRAMS.
Always add your Firstname_lastname_assignment_X to the filename where X=assignment number.
2- FILE EXTENSION
Sumbit as .c file that I can compile and execute directly with dev c++.
3- DO NOT SUBMIT TEXT FILES OR .doc, .docx or pdf FILES
3- COMMENTS IN PROGRAM
Always add comments inside your program to explain the code. You can use // at the beginning to add comments. Comment out all those sections that are text
explanations in the code.
Example
// Your Name, Program Name, Question number
// Explanation here
4- COMMENT SECTIONS OF CODE FOR ALL QUESTIONS
After finishing and testing your program
Use
/* <program text> */
for all program sections or for separating Question Code. I will un-comment to compile and run each program to see your work.
Example:
// Q1 code
/* Your program code goes below
*/
// Q2 code below (Same as above)
========================== MORE DETAILS BELOW ========
Example one .c file. The file should look like as follows.

// Your name and ID

// program 1 code version 1
/* Tell what program one version 1 does … etc..
……
Add all the explanations etc. as required tht you answer the questions and show that you understand the code
*/

Program 1 code // version 1
Here you have your code for program 1 version 1
(Make sure to add your comments in code also always and as necessary to explain the program step)

/* At the end of program provide your inputs outputs and console printout as a comment
for version 1. This is multiple lines enclosed in comment start and end
*/
//————————————————————————
// program 1 code version 2 (IF REQUIRED in ASSIGNMENT)
/* Tell what program one does … etc..
……
Add all the explanations etc.
*/
//
Program 1 code // version 2
Here you have code for program 1 version 2 with comments
……
* At the end of program provide your inputs outputs and console printout as a comment
for version 2 etc. This is multiple lines enclosed in comment start and end
*/
/—————————————————————-
Follow same above style for all your programs (program 2, 3 .. etc.)

For your own testing you can test programs as separate files but you must send me the same code with plenty of comments in one .c file.

REMEMBER when you submit everything must be in one .c file and the name of file “fistname_lastname_assignmentX.c” where X = assignment number before submitting.