SlideShare a Scribd company logo
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
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
Vikram Nandini
 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
Mugilvannan11
 
C programming
C programmingC programming
C programming
preetikapri1
 
C tutorials
C tutorialsC tutorials
C tutorials
sujit11feb
 
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
ULLPTT
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdf
vino108206
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
Alok 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 SEM
Mansi Tyagi
 
Chapter 13.1.4
Chapter 13.1.4Chapter 13.1.4
Chapter 13.1.4
patcha535
 
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
SanketShah544615
 
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
Jeremiah 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 Free
Dheeraj 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.pdf
lailoesakhan
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
MarilouANDERSON
 
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
CESAR A. RUIZ C
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
AashutoshChhedavi
 
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 programming
Mithun DSouza
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
rprajat007
 

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.docx
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 
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
dunningblair
 

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

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 

Recently uploaded (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 

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.