SlideShare a Scribd company logo
1 of 3
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.
This assignment consists of four short programs. Use CodeBlock.docx

More Related Content

Similar to This assignment consists of four short programs. Use CodeBlock.docx

C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptxMugilvannan11
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comULLPTT
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdfvino108206
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5Alok Jain
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
 
Chapter 13.1.4
Chapter 13.1.4Chapter 13.1.4
Chapter 13.1.4patcha535
 
Unit-2_Getting Started With ‘C’ Language (3).pptx
Unit-2_Getting Started With ‘C’ Language (3).pptxUnit-2_Getting Started With ‘C’ Language (3).pptx
Unit-2_Getting Started With ‘C’ Language (3).pptxSanketShah544615
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy
 
Chapter 3(1)
Chapter 3(1)Chapter 3(1)
Chapter 3(1)TejaswiB4
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course FreeDheeraj Patidar
 
ProgFund_Lecture_7_Intro_C_Sequence.pdf
ProgFund_Lecture_7_Intro_C_Sequence.pdfProgFund_Lecture_7_Intro_C_Sequence.pdf
ProgFund_Lecture_7_Intro_C_Sequence.pdflailoesakhan
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdfMarilouANDERSON
 
C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it securityCESAR A. RUIZ C
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeksAashutoshChhedavi
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++Seble Nigussie
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programmingMithun DSouza
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programmingrprajat007
 

Similar to This assignment consists of four short programs. Use CodeBlock.docx (20)

C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
 
C programming
C programmingC programming
C programming
 
C tutorials
C tutorialsC tutorials
C tutorials
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdf
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
Chapter 13.1.4
Chapter 13.1.4Chapter 13.1.4
Chapter 13.1.4
 
Unit-2_Getting Started With ‘C’ Language (3).pptx
Unit-2_Getting Started With ‘C’ Language (3).pptxUnit-2_Getting Started With ‘C’ Language (3).pptx
Unit-2_Getting Started With ‘C’ Language (3).pptx
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testing
 
Chapter 3(1)
Chapter 3(1)Chapter 3(1)
Chapter 3(1)
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
 
ProgFund_Lecture_7_Intro_C_Sequence.pdf
ProgFund_Lecture_7_Intro_C_Sequence.pdfProgFund_Lecture_7_Intro_C_Sequence.pdf
ProgFund_Lecture_7_Intro_C_Sequence.pdf
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
 
C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it security
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programming
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
 

More from dunningblair

Write about one of the photographers from the list below.William.docx
Write about one of the photographers from the list below.William.docxWrite about one of the photographers from the list below.William.docx
Write about one of the photographers from the list below.William.docxdunningblair
 
Write about the measure, including what construct the measure report.docx
Write about the measure, including what construct the measure report.docxWrite about the measure, including what construct the measure report.docx
Write about the measure, including what construct the measure report.docxdunningblair
 
Write about Current state of E. I. Du Pont De Nemours and Company an.docx
Write about Current state of E. I. Du Pont De Nemours and Company an.docxWrite about Current state of E. I. Du Pont De Nemours and Company an.docx
Write about Current state of E. I. Du Pont De Nemours and Company an.docxdunningblair
 
Write about your childhood.  What are some of the pleasant memories .docx
Write about your childhood.  What are some of the pleasant memories .docxWrite about your childhood.  What are some of the pleasant memories .docx
Write about your childhood.  What are some of the pleasant memories .docxdunningblair
 
Write a well written business plan with a table of contents for Ma.docx
Write a well written business plan with a table of contents for Ma.docxWrite a well written business plan with a table of contents for Ma.docx
Write a well written business plan with a table of contents for Ma.docxdunningblair
 
Write a two page paper, to include an introduction and conclusion as.docx
Write a two page paper, to include an introduction and conclusion as.docxWrite a two page paper, to include an introduction and conclusion as.docx
Write a two page paper, to include an introduction and conclusion as.docxdunningblair
 
Write a well-developed essay of at least 4-5 solid, long paragraphs .docx
Write a well-developed essay of at least 4-5 solid, long paragraphs .docxWrite a well-developed essay of at least 4-5 solid, long paragraphs .docx
Write a well-developed essay of at least 4-5 solid, long paragraphs .docxdunningblair
 
Write a two page introduction of Virtual Reality. I have the paper w.docx
Write a two page introduction of Virtual Reality. I have the paper w.docxWrite a two page introduction of Virtual Reality. I have the paper w.docx
Write a two page introduction of Virtual Reality. I have the paper w.docxdunningblair
 
Write a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docxWrite a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docxdunningblair
 
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docxWrite a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docxdunningblair
 
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docxWrite a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docxdunningblair
 
Write a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docxWrite a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docxdunningblair
 
Write a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docxWrite a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docxdunningblair
 
Write a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docxWrite a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docxdunningblair
 
Write a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docxWrite a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docxdunningblair
 
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docxWrite a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docxdunningblair
 
Write a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docxWrite a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docxdunningblair
 
Write a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docxWrite a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docxdunningblair
 
Write a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docxWrite a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docxdunningblair
 
Write a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docxWrite a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docxdunningblair
 

More from dunningblair (20)

Write about one of the photographers from the list below.William.docx
Write about one of the photographers from the list below.William.docxWrite about one of the photographers from the list below.William.docx
Write about one of the photographers from the list below.William.docx
 
Write about the measure, including what construct the measure report.docx
Write about the measure, including what construct the measure report.docxWrite about the measure, including what construct the measure report.docx
Write about the measure, including what construct the measure report.docx
 
Write about Current state of E. I. Du Pont De Nemours and Company an.docx
Write about Current state of E. I. Du Pont De Nemours and Company an.docxWrite about Current state of E. I. Du Pont De Nemours and Company an.docx
Write about Current state of E. I. Du Pont De Nemours and Company an.docx
 
Write about your childhood.  What are some of the pleasant memories .docx
Write about your childhood.  What are some of the pleasant memories .docxWrite about your childhood.  What are some of the pleasant memories .docx
Write about your childhood.  What are some of the pleasant memories .docx
 
Write a well written business plan with a table of contents for Ma.docx
Write a well written business plan with a table of contents for Ma.docxWrite a well written business plan with a table of contents for Ma.docx
Write a well written business plan with a table of contents for Ma.docx
 
Write a two page paper, to include an introduction and conclusion as.docx
Write a two page paper, to include an introduction and conclusion as.docxWrite a two page paper, to include an introduction and conclusion as.docx
Write a two page paper, to include an introduction and conclusion as.docx
 
Write a well-developed essay of at least 4-5 solid, long paragraphs .docx
Write a well-developed essay of at least 4-5 solid, long paragraphs .docxWrite a well-developed essay of at least 4-5 solid, long paragraphs .docx
Write a well-developed essay of at least 4-5 solid, long paragraphs .docx
 
Write a two page introduction of Virtual Reality. I have the paper w.docx
Write a two page introduction of Virtual Reality. I have the paper w.docxWrite a two page introduction of Virtual Reality. I have the paper w.docx
Write a two page introduction of Virtual Reality. I have the paper w.docx
 
Write a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docxWrite a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docx
 
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docxWrite a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
 
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docxWrite a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
 
Write a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docxWrite a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docx
 
Write a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docxWrite a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docx
 
Write a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docxWrite a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docx
 
Write a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docxWrite a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docx
 
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docxWrite a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
 
Write a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docxWrite a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docx
 
Write a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docxWrite a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docx
 
Write a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docxWrite a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docx
 
Write a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docxWrite a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docx
 

Recently uploaded

Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

This assignment consists of four short programs. Use CodeBlock.docx

  • 1. 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
  • 2. 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.