Order # 13501

profiletutorthammy
13501_Assessment_1_____IT-FP2240_-_Spring_2019_-_Section_01.pdf

6/23/2019 Assessment 1 – IT-FP2240 - Spring 2019 - Section 01

https://courserooma.capella.edu/webapps/blackboard/content/listContent.jsp?course_id=_179937_1&content_id=_7602704_1&mode=reset 1/4

Assessment 1 Programming in C: Getting Started

Overview

For this assessment, you will:

Write logical, syntactically correct C programs that use proper variables to perform arithmetic calculations. Interact with the user via text in the terminal window. Write C code that is properly commented and formatted.

Note: Each assessment builds on the previous one, so you must complete the assessments in order in this course.

Computers are powerful tools that are a part of daily life. That power, though, is only useful when computers are running programs consisting of a structured set of instructions that apply their abilities to solving problems. In this unit, you will start learning how to create your own programs and learn to use the computer's capabilities in order to move from being a user of programs to being a creator of programs. You will learn about basic elements used in programs, such as variables, data types, expressions, and functions for the basic input and output of text. You will also gain experience in writing C code, compiling the code to produce an executable program, and test- running the program in the development environment.

By successfully completing this assessment, you will demonstrate your proficiency in the following course competencies and assessment criteria:

Competency 4: Design a simple program that makes use of fundamental programming concepts. Write a logical, syntactically correct C program. Use variables and data types effectively in a C program. Handle input and output properly in the terminal window. Perform arithmetic calculations using expressions in C.

Competency 5: Communicate effectively. Format and comment C source code.

SHOW LESS 

Competency Map

Use this online tool to track your performance and progress through your course.

CHECK YOUR PROGRESS

Context

In this course, you will be using Code::Blocks as your integrated development environment (IDE) for writing, compiling, and running your C programs. The best way to start getting to know the C programming language and the tools you will use in this course is by using them.

Details Attempt 1 Available Attempt 2 Attempt 3

Tutorials Support Log Out Jeannette Hernandez 29

6/23/2019 Assessment 1 – IT-FP2240 - Spring 2019 - Section 01

https://courserooma.capella.edu/webapps/blackboard/content/listContent.jsp?course_id=_179937_1&content_id=_7602704_1&mode=reset 2/4

Before getting started on the programs for the first assessment, log in to Code::Blocks.

Start by typing in some of the code examples from the textbook readings for this unit into Code::Blocks. It is important to type the code in yourself (rather than copy and paste) so that you start getting to know the C language. Pay particular attention to the use of capital or lowercase letters, the use of punctuation, and the indentation of the code.

Follow these tasks:

Try building the code. Work on fixing problems until the program builds without errors. When the program builds (compiles) successfully, try running it. Be sure to close the terminal window each time after running the program.

SHOW LESS 

Questions to Consider

To deepen your understanding, you are encouraged to consider the questions below and discuss them with a fellow learner, a work associate, an interested friend, or a member of your professional community.

What are the basic parts of a C program? What are variables and how are they used in programs? What are the main data types used in C programs and what types of data are they used for? How is C source code converted into an executable program?

SHOW LESS 

Resources

Required Resources

The following resources are required to complete the assessment.

Bookstore Resources The resources listed below are required to complete the assessments in this course. These resources are available from the Capella University Bookstore. When searching the bookstore, be sure to look for the Course ID with the specific -FP (FlexPath) course designation.

Kochan, S. G. (2014). Programming in C (4th ed.). Indianapolis, IN: Developer's Library/Sams Publication. Perry, G. (2014). C programming: Absolute beginner's guide (3rd ed.). Upper Saddle River, NJ: Pearson Education.

Use your C Programming: Absolute Beginners Guide text to read the following:

Introduction, pages 1–4. Chapter 1, "What Is C Programming, and Why Should I Care," pages 5–11. Chapter 2, "Writing Your First C Program," pages 13–22. Chapter 3, "What Does This Do? Clarifying Your Code With Comments," pages 23–29. Chapter 4, "Your World Premiere – Putting Your Program's Results up on the Screen," pages 31–40. Chapter 5, "Adding Variables to Your Programs," pages 41–48. Chapter 6, "Adding Words to Your Programs," pages 49–56. Chapter 7 (part), "Making Your Programs More Powerful With #include and #define," pages 57–61. Chapter 8, "Interacting With Users," pages 65–72.

Tutorials Support Log Out Jeannette Hernandez 29

6/23/2019 Assessment 1 – IT-FP2240 - Spring 2019 - Section 01

https://courserooma.capella.edu/webapps/blackboard/content/listContent.jsp?course_id=_179937_1&content_id=_7602704_1&mode=reset 3/4

Chapter 9, "Crunching the Number – Letting C Handle the Math for You," pages 73–81.

Use your Programming in C text to read the following:

Chapter 1, "Some Fundamentals," pages 5–10. Chapter 2, "Compiling and Running Your First Program," pages 11–19. Chapter 3 (part), "Variables, Data Types, and Arithmetic Expressions," pages 21–36

In this course, you will use Code::Blocks to edit, compile, and run your code, so the specific steps for compiling and running code mentioned in chapters 1 and 2 above do not apply.

For more information on printf() and scanf(), see the following reference section in Programming in C:

Chapter 15 (part), "Input and Output Operations in C," pages 346–358.

You may wish to refer to the section "Formatted I/O: printf() and scanf()" throughout the course for fuller details on the printf() and scanf() functions.

Capella Resources Click the links provided to view the following resources:

Assessment 1: Part 1: Code for Commenting.

Software For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.

Open-Source Software

Downloading and Installing Code::Blocks With C/C++.

If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.

Assessment Instructions

This assessment 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 - IT-FP2240 - u01a1 - Part 1 * 10/01/2015 Rev. 1

Tutorials Support Log Out Jeannette Hernandez 29

6/23/2019 Assessment 1 – IT-FP2240 - Spring 2019 - Section 01

https://courserooma.capella.edu/webapps/blackboard/content/listContent.jsp?course_id=_179937_1&content_id=_7602704_1&mode=reset 4/4

*/

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. 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, download your .c source code files and zip them together for submission.

Requirements

Include a title page and reference page, if necessary.

APA format. Times New Roman font, 12 pt. Double-spaced.

How to use the scoring guide

Programming in C: Getting Started Scoring Guide

Use the scoring guide to enhance your learning.

VIEW SCORING GUIDE

This button will take you to the next available assessment attempt tab, where you will be able to submit your assessment.

SUBMIT ASSESSMENT

Tutorials Support Log Out Jeannette Hernandez 29