SlideShare a Scribd company logo
Instructions
This program gets values from the user, and then runs a
calculation. The values are passed by reference (by address), so
the main() function sees the changed values of the variables.
The first function (getValues()) gets user input. The second
function (calcCubic), performs the calculations, and the third
function (printCubic()) prints the value of the calculation.
Here is the code:
And here is the output:
Submission Instructions
Now, you enter the code, and run it. (No flowchart this time)
Upload your .c file and a screenshot of your code output saved
in a Word document

More Related Content

More from lauricesatu

Assignment 1 Discussion Question Objective vs ProjectiveRecall.docx
Assignment 1 Discussion Question Objective vs ProjectiveRecall.docxAssignment 1 Discussion Question Objective vs ProjectiveRecall.docx
Assignment 1 Discussion Question Objective vs ProjectiveRecall.docx
lauricesatu
 
Assignment 1 Discussion QuestionTo extend its international pre.docx
Assignment 1 Discussion QuestionTo extend its international pre.docxAssignment 1 Discussion QuestionTo extend its international pre.docx
Assignment 1 Discussion QuestionTo extend its international pre.docx
lauricesatu
 
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docxAssignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
lauricesatu
 
Assignment 1 Discussion Question Accepting Cultural Differences.docx
Assignment 1 Discussion Question Accepting Cultural Differences.docxAssignment 1 Discussion Question Accepting Cultural Differences.docx
Assignment 1 Discussion Question Accepting Cultural Differences.docx
lauricesatu
 
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docxAssignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
lauricesatu
 
Assignment 1 Discussion AssignmentThe discussion assignment p.docx
Assignment 1 Discussion AssignmentThe discussion assignment p.docxAssignment 1 Discussion AssignmentThe discussion assignment p.docx
Assignment 1 Discussion AssignmentThe discussion assignment p.docx
lauricesatu
 
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docxAssignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
lauricesatu
 
Assignment 1 Describing and Applying Victimization TheoryDue Week.docx
Assignment 1 Describing and Applying Victimization TheoryDue Week.docxAssignment 1 Describing and Applying Victimization TheoryDue Week.docx
Assignment 1 Describing and Applying Victimization TheoryDue Week.docx
lauricesatu
 
Assignment 1 Describing and Applying Victimization TheoryDue .docx
Assignment 1 Describing and Applying Victimization TheoryDue .docxAssignment 1 Describing and Applying Victimization TheoryDue .docx
Assignment 1 Describing and Applying Victimization TheoryDue .docx
lauricesatu
 
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docxAssignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
lauricesatu
 
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docxAssignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
lauricesatu
 
assignment 1 Do research on the web to find an example of a major .docx
assignment 1  Do research on the web to find an example of a major .docxassignment 1  Do research on the web to find an example of a major .docx
assignment 1 Do research on the web to find an example of a major .docx
lauricesatu
 
ASSIGNMENT - Legal Case 2University and Community College Sy.docx
ASSIGNMENT - Legal Case 2University and Community College Sy.docxASSIGNMENT - Legal Case 2University and Community College Sy.docx
ASSIGNMENT - Legal Case 2University and Community College Sy.docx
lauricesatu
 
Assignment #4NOTE This paper must be submitted no later than th.docx
Assignment #4NOTE This paper must be submitted no later than th.docxAssignment #4NOTE This paper must be submitted no later than th.docx
Assignment #4NOTE This paper must be submitted no later than th.docx
lauricesatu
 
ASSIGNMENT #1Select one of the following options to deliver y.docx
ASSIGNMENT #1Select one of the following options to deliver y.docxASSIGNMENT #1Select one of the following options to deliver y.docx
ASSIGNMENT #1Select one of the following options to deliver y.docx
lauricesatu
 
Assignment #1Attached quizAssignment #2Review the list of .docx
Assignment #1Attached quizAssignment #2Review the list of .docxAssignment #1Attached quizAssignment #2Review the list of .docx
Assignment #1Attached quizAssignment #2Review the list of .docx
lauricesatu
 
Assignment Cultural Activity ReportAs a way of experiencing .docx
Assignment  Cultural Activity ReportAs a way of experiencing .docxAssignment  Cultural Activity ReportAs a way of experiencing .docx
Assignment Cultural Activity ReportAs a way of experiencing .docx
lauricesatu
 
Assessment4– Major EssayPersonalManag.docx
Assessment4– Major EssayPersonalManag.docxAssessment4– Major EssayPersonalManag.docx
Assessment4– Major EssayPersonalManag.docx
lauricesatu
 
Assigment is to write a one and a half page paper on the movie Sev.docx
Assigment is to write a one and a half page paper on the movie Sev.docxAssigment is to write a one and a half page paper on the movie Sev.docx
Assigment is to write a one and a half page paper on the movie Sev.docx
lauricesatu
 
Asset Purchase AgreementThe attached draft aircraft purchase agree.docx
Asset Purchase AgreementThe attached draft aircraft purchase agree.docxAsset Purchase AgreementThe attached draft aircraft purchase agree.docx
Asset Purchase AgreementThe attached draft aircraft purchase agree.docx
lauricesatu
 

More from lauricesatu (20)

Assignment 1 Discussion Question Objective vs ProjectiveRecall.docx
Assignment 1 Discussion Question Objective vs ProjectiveRecall.docxAssignment 1 Discussion Question Objective vs ProjectiveRecall.docx
Assignment 1 Discussion Question Objective vs ProjectiveRecall.docx
 
Assignment 1 Discussion QuestionTo extend its international pre.docx
Assignment 1 Discussion QuestionTo extend its international pre.docxAssignment 1 Discussion QuestionTo extend its international pre.docx
Assignment 1 Discussion QuestionTo extend its international pre.docx
 
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docxAssignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
Assignment 1 Discussion QuestionThe Mexican ceramics folk-art.docx
 
Assignment 1 Discussion Question Accepting Cultural Differences.docx
Assignment 1 Discussion Question Accepting Cultural Differences.docxAssignment 1 Discussion Question Accepting Cultural Differences.docx
Assignment 1 Discussion Question Accepting Cultural Differences.docx
 
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docxAssignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
Assignment 1 Discussion Question Understanding Others’ Cultural Pr.docx
 
Assignment 1 Discussion AssignmentThe discussion assignment p.docx
Assignment 1 Discussion AssignmentThe discussion assignment p.docxAssignment 1 Discussion AssignmentThe discussion assignment p.docx
Assignment 1 Discussion AssignmentThe discussion assignment p.docx
 
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docxAssignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
Assignment 1 Designing FERPA Technical SafeguardsImagine you are .docx
 
Assignment 1 Describing and Applying Victimization TheoryDue Week.docx
Assignment 1 Describing and Applying Victimization TheoryDue Week.docxAssignment 1 Describing and Applying Victimization TheoryDue Week.docx
Assignment 1 Describing and Applying Victimization TheoryDue Week.docx
 
Assignment 1 Describing and Applying Victimization TheoryDue .docx
Assignment 1 Describing and Applying Victimization TheoryDue .docxAssignment 1 Describing and Applying Victimization TheoryDue .docx
Assignment 1 Describing and Applying Victimization TheoryDue .docx
 
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docxAssignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
Assignment 1 Criminal Conduct and Criminal Law Due Week 4 and wor.docx
 
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docxAssignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
Assignment 1 Clinical and Forensic EvaluationsA forensic mental h.docx
 
assignment 1 Do research on the web to find an example of a major .docx
assignment 1  Do research on the web to find an example of a major .docxassignment 1  Do research on the web to find an example of a major .docx
assignment 1 Do research on the web to find an example of a major .docx
 
ASSIGNMENT - Legal Case 2University and Community College Sy.docx
ASSIGNMENT - Legal Case 2University and Community College Sy.docxASSIGNMENT - Legal Case 2University and Community College Sy.docx
ASSIGNMENT - Legal Case 2University and Community College Sy.docx
 
Assignment #4NOTE This paper must be submitted no later than th.docx
Assignment #4NOTE This paper must be submitted no later than th.docxAssignment #4NOTE This paper must be submitted no later than th.docx
Assignment #4NOTE This paper must be submitted no later than th.docx
 
ASSIGNMENT #1Select one of the following options to deliver y.docx
ASSIGNMENT #1Select one of the following options to deliver y.docxASSIGNMENT #1Select one of the following options to deliver y.docx
ASSIGNMENT #1Select one of the following options to deliver y.docx
 
Assignment #1Attached quizAssignment #2Review the list of .docx
Assignment #1Attached quizAssignment #2Review the list of .docxAssignment #1Attached quizAssignment #2Review the list of .docx
Assignment #1Attached quizAssignment #2Review the list of .docx
 
Assignment Cultural Activity ReportAs a way of experiencing .docx
Assignment  Cultural Activity ReportAs a way of experiencing .docxAssignment  Cultural Activity ReportAs a way of experiencing .docx
Assignment Cultural Activity ReportAs a way of experiencing .docx
 
Assessment4– Major EssayPersonalManag.docx
Assessment4– Major EssayPersonalManag.docxAssessment4– Major EssayPersonalManag.docx
Assessment4– Major EssayPersonalManag.docx
 
Assigment is to write a one and a half page paper on the movie Sev.docx
Assigment is to write a one and a half page paper on the movie Sev.docxAssigment is to write a one and a half page paper on the movie Sev.docx
Assigment is to write a one and a half page paper on the movie Sev.docx
 
Asset Purchase AgreementThe attached draft aircraft purchase agree.docx
Asset Purchase AgreementThe attached draft aircraft purchase agree.docxAsset Purchase AgreementThe attached draft aircraft purchase agree.docx
Asset Purchase AgreementThe attached draft aircraft purchase agree.docx
 

Recently uploaded

The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
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
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
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
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
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
 
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
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
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
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 

Recently uploaded (20)

The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
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
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
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
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
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
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 

InstructionsThis program gets values from the user, and then

  • 1. Instructions This program gets values from the user, and then runs a calculation. The values are passed by reference (by address), so the main() function sees the changed values of the variables. The first function (getValues()) gets user input. The second function (calcCubic), performs the calculations, and the third function (printCubic()) prints the value of the calculation. Here is the code: And here is the output: Submission Instructions Now, you enter the code, and run it. (No flowchart this time) Upload your .c file and a screenshot of your code output saved in a Word document