Create program that print three lines of text about yourself

Assignment Help Programming Languages
Reference no: EM132280111

Assignment: This assignment consists of four short programs. Use Code: Blocks to complete your work. You will submit the four C source code files for this assignment. Please zip the files and include your name in the name of the compressed file.

Part 1: Commenting Code

Including comments in source code that explains what the code does and how it does it are an important professional best practice. Code that is well-commented and well-formatted facilitates communication between programmers and others needing to work with the code. Commenting your code needs to be a habit from the beginning. Adding comments to code will also help reinforce important C programming concepts in your own mind.

Type in the code provided in the assignment Resources, build/compile the program, and run it. Typing the code in yourself rather than copying and pasting will help you get to know the C language. When you have the code running, go through the code and add comments to explain what the code does and how it does it. Be sure to add a header like the following to all code files (with your name and the date).

/* Ann Smith - IT2240 - U01a1 - Part 1

* 10/01/2015 Rev. 1

*/

You should add at least five comments to the code provided. Be sure to recompile and test the code after you have added your comments to make sure you have not introduced any syntax errors.

Part 2: About You

Create a program that prints three lines of text about yourself. Be sure to include appropriate spacing and new line characters to make the output in the terminal window readable. As with all programming code, but sure to format the program correctly and include comments and a header for the file, such as shown above.

Part 3: Integer and Floating Point Arithmetic

Write a single program that prints the results of two arithmetic expressions using integers and the results of two floating-point calculations (for a total of 4 calculations). Print out both the arithmetic expressions and the answers calculated by the code. For this program, it is fine to use "hard-coded" values (the numbers used in the calculations are provided in the code) rather than user input. Be sure to format the code correctly and include relevant comments in the source code (including the comment at the top of the file with your name and identification of the program).

Part 4: User Input

Write a program that prompts the user to enter a character, an integer, and floating point number. After reading the input, the program should print out the values entered. Be sure to format the code correctly and include relevant comments.

When you are ready to turn in your assignment, please zip your .c source code files together for submission.

Reference no: EM132280111

Questions Cloud

Explain roles and responsibilities of the developer : In this assignment, you will articulate the roles played by team members in a software development project. You will explain how the Java programming language.
Easiest way to remember mitosis and meiosis : What is the easiest way to remember mitosis and meiosis? Please explain both cycles.
Advantage resulting from sexual reproduction : 1. Explain why variation among offspring is a potential evolutionary advantage resulting from sexual reproduction
What do you believe was the notable policy pushed : Explain how effective the Ronald Reagan Administration was in promoting their pro-capitalist, anti-communist agenda?
Create program that print three lines of text about yourself : Create a program that prints three lines of text about yourself. Be sure to include appropriate spacing and new line characters to make the output.
Write review on article - unauthorized access : Issues affect the security of the system, data, assets, and resources of an organization. There are several challenges and opportunities
Offspring in a cross between a tall pea plant : 1. Use a Punnett square to predict the offspring in a cross between a tall pea plant (heterozygous) and a tall pea plant (heterozygous).
Inheritance differ from typical mendelian inheritance : How does polygenic inheritance differ from typical Mendelian inheritance? Please be sure to include the special circumstance of epistasis in your answer.
Compute the multifactor productivity : Compute the multifactor productivity (MFP) (labor plus equipment) under the Prior to buying the new equipment.

Reviews

Write a Review

Programming Languages Questions & Answers

  Develop an external css to provide layout

Cascading Style Sheets are used to provide style, presentation, and layout for the HTML content of a Web page. You will develop an external CSS to provide style

  How did you create a module or method in quicklab

How did you create a ‘module' or ‘method' in QuickLab? Provide your screenshot! How did you document your program (Provide your example--codes or screenshot?

  Research on dynamic arrays

Write a 2 page research paper (excluding title and reference pages) on dynamic arrays. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

  Develop a computer program that determines shipping costs

Develop a PAC and flowcharts for a program that does the warehousing company has contracted you to develop a computer program that determines shipping costs for items by size.0

  Write program to permit user to enter last names

Write down the program which permits the user to enter last names of five candidates in local election and number of votes received by each candidate.

  Write program which reads in side of a square

Write a program which reads in side of a square and then prints that square out of asterisks. Program must work for hollow squares of all side sizes between 1 and 20.

  What will the exp days column contain

If expiration_date contains a value that's equivalent to November 2, 2008 and the SYSDATE function returns a value that's equivalent to December 17, 2008, what will the exp_days column contain when this code is executed

  Explain the purpose of the attributes

Imagine you are a part of a team that is tasked with writing a mobile app that will allow users to store information for all of their contacts (e.g., friends, family, etc.). Identify at least two (2) attributes of the object contact in this applic..

  Write a program that searches for a particular item

Write a program that searches for a particular item in a huge random array and see how long it take, using linear and binary searches.

  What is code reuse

What is code reuse. How does inheritance help achieve code reuse

  How to execute your system

Write a brief report. Otherwise you need to implement it using WSDL in this assignment - You also need to show screenshots of the execution of your system.

  Explain the use of xml dom

When the XMLHttpRequest object receives XML data, it parses and stores the data as an XML DOM object in the responseXML property. Why does the XML DOM used in the above example?

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