SlideShare a Scribd company logo
1 of 2
Write a C program.
Use a while loop for user input values until terminating with either 'q' or 9999 . The program
can run to quit by inputting q or 9999. Please implement one of them to quit a program from q or
9999, or both. Sum all the input values which are integer, and float numbers, but not minus
values. Get an average, biggest value, and smallest value from the input values.
while loop is required to get values (int, float) by a user
sum all input values, calculate the average and find the biggest value and smallest value from the
input values
If a user put 'q', stop the while looping to get the input value
Print out the results below for example.
Thank you for coming to our mini calculator!
please enter an integer or float number, q or 9999 to quit: 10
please enter an integer or float number, q or 9999 to quit: 5.5
please enter an integer or float number, q or 9999 to quit: 15.1
please enter an integer or float number, q or 9999 to quit: q or 9999
------------------------------------------------------------
You entered 3 values.
Sum: 30.6 Average: 10.2 Largest value: 15.1 Smallest value: 5.5
-------------------------------------------------------------
5. Submit your C source code file named, pgm2_ITEC4364_yourname.c
6. Submit a screen capture the compile and run your program
7. Your program should compile and run successfully
Write a C program- Use a while loop for user input values until termin.docx

More Related Content

Similar to Write a C program- Use a while loop for user input values until termin.docx

C code This program will calculate the sum of 10 positive .docx
 C code This program will calculate the sum of 10 positive .docx C code This program will calculate the sum of 10 positive .docx
C code This program will calculate the sum of 10 positive .docxaryan532920
 
Chapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docxChapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docxShamshad
 
02 Control Structures - Loops & Conditions
02 Control Structures - Loops & Conditions02 Control Structures - Loops & Conditions
02 Control Structures - Loops & ConditionsEbad ullah Qureshi
 
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxCMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxclarebernice
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdfYashMirge2
 
Practiceproblems(1)
Practiceproblems(1)Practiceproblems(1)
Practiceproblems(1)Sena Nama
 
C101-PracticeProblems.pdf
C101-PracticeProblems.pdfC101-PracticeProblems.pdf
C101-PracticeProblems.pdfT17Rockstar
 
7 Examples of C Program (Civil Engineering)
7 Examples of C Program (Civil Engineering)7 Examples of C Program (Civil Engineering)
7 Examples of C Program (Civil Engineering)Faisal F Rafat
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 

Similar to Write a C program- Use a while loop for user input values until termin.docx (14)

C code This program will calculate the sum of 10 positive .docx
 C code This program will calculate the sum of 10 positive .docx C code This program will calculate the sum of 10 positive .docx
C code This program will calculate the sum of 10 positive .docx
 
Chapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docxChapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docx
 
Project two c++ tutorial
Project two c++ tutorialProject two c++ tutorial
Project two c++ tutorial
 
02 Control Structures - Loops & Conditions
02 Control Structures - Loops & Conditions02 Control Structures - Loops & Conditions
02 Control Structures - Loops & Conditions
 
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxCMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
 
3.2 looping statement
3.2 looping statement3.2 looping statement
3.2 looping statement
 
Input output
Input outputInput output
Input output
 
Practiceproblems(1)
Practiceproblems(1)Practiceproblems(1)
Practiceproblems(1)
 
C101-PracticeProblems.pdf
C101-PracticeProblems.pdfC101-PracticeProblems.pdf
C101-PracticeProblems.pdf
 
7 Examples of C Program (Civil Engineering)
7 Examples of C Program (Civil Engineering)7 Examples of C Program (Civil Engineering)
7 Examples of C Program (Civil Engineering)
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
Building Simple C Program
Building Simple  C ProgramBuilding Simple  C Program
Building Simple C Program
 

More from DavidgflFishery

Which of the following is formed from a cholesterol -backbone- Aldoste.docx
Which of the following is formed from a cholesterol -backbone- Aldoste.docxWhich of the following is formed from a cholesterol -backbone- Aldoste.docx
Which of the following is formed from a cholesterol -backbone- Aldoste.docxDavidgflFishery
 
Which of these groups are the closest living relatives of animals- a-.docx
Which of these groups are the closest living relatives of animals- a-.docxWhich of these groups are the closest living relatives of animals- a-.docx
Which of these groups are the closest living relatives of animals- a-.docxDavidgflFishery
 
Which of the following statements about the reproductive biology of fu (1).docx
Which of the following statements about the reproductive biology of fu (1).docxWhich of the following statements about the reproductive biology of fu (1).docx
Which of the following statements about the reproductive biology of fu (1).docxDavidgflFishery
 
Which of the following is most influenced by the SRY gene- gender iden.docx
Which of the following is most influenced by the SRY gene- gender iden.docxWhich of the following is most influenced by the SRY gene- gender iden.docx
Which of the following is most influenced by the SRY gene- gender iden.docxDavidgflFishery
 
Which of the following is NOT one of the arguments managers typically.docx
Which of the following is NOT one of the arguments managers typically.docxWhich of the following is NOT one of the arguments managers typically.docx
Which of the following is NOT one of the arguments managers typically.docxDavidgflFishery
 
Which of the following is-are assumptions of the Hardy-Weinberg theore.docx
Which of the following is-are assumptions of the Hardy-Weinberg theore.docxWhich of the following is-are assumptions of the Hardy-Weinberg theore.docx
Which of the following is-are assumptions of the Hardy-Weinberg theore.docxDavidgflFishery
 
Which of the following is not a correct way to state a null hypothesis.docx
Which of the following is not a correct way to state a null hypothesis.docxWhich of the following is not a correct way to state a null hypothesis.docx
Which of the following is not a correct way to state a null hypothesis.docxDavidgflFishery
 
Which of the following is not an example of a deductible temporary dif (1).docx
Which of the following is not an example of a deductible temporary dif (1).docxWhich of the following is not an example of a deductible temporary dif (1).docx
Which of the following is not an example of a deductible temporary dif (1).docxDavidgflFishery
 
Which of the following is TRUE with regard to primase- It is responsib.docx
Which of the following is TRUE with regard to primase- It is responsib.docxWhich of the following is TRUE with regard to primase- It is responsib.docx
Which of the following is TRUE with regard to primase- It is responsib.docxDavidgflFishery
 
Which of the following is true regarding keratin- a- it is actually a.docx
Which of the following is true regarding keratin-  a- it is actually a.docxWhich of the following is true regarding keratin-  a- it is actually a.docx
Which of the following is true regarding keratin- a- it is actually a.docxDavidgflFishery
 
Which of the following is true about using monocultures in agriculture.docx
Which of the following is true about using monocultures in agriculture.docxWhich of the following is true about using monocultures in agriculture.docx
Which of the following is true about using monocultures in agriculture.docxDavidgflFishery
 
Which of the following statements is (are) true- Firms are motivated t.docx
Which of the following statements is (are) true- Firms are motivated t.docxWhich of the following statements is (are) true- Firms are motivated t.docx
Which of the following statements is (are) true- Firms are motivated t.docxDavidgflFishery
 
Which of the following statements best describes a hormone- A hommone.docx
Which of the following statements best describes a hormone- A hommone.docxWhich of the following statements best describes a hormone- A hommone.docx
Which of the following statements best describes a hormone- A hommone.docxDavidgflFishery
 
Which of the following was an interesting result from the Griffith exp.docx
Which of the following was an interesting result from the Griffith exp.docxWhich of the following was an interesting result from the Griffith exp.docx
Which of the following was an interesting result from the Griffith exp.docxDavidgflFishery
 
Which of the following steps are a part of QTL association studies- br.docx
Which of the following steps are a part of QTL association studies- br.docxWhich of the following steps are a part of QTL association studies- br.docx
Which of the following steps are a part of QTL association studies- br.docxDavidgflFishery
 
Which of the following is NOT a scenario that would call for the forma.docx
Which of the following is NOT a scenario that would call for the forma.docxWhich of the following is NOT a scenario that would call for the forma.docx
Which of the following is NOT a scenario that would call for the forma.docxDavidgflFishery
 
Which of the following is correctly paired- Two answer choices are cor.docx
Which of the following is correctly paired- Two answer choices are cor.docxWhich of the following is correctly paired- Two answer choices are cor.docx
Which of the following is correctly paired- Two answer choices are cor.docxDavidgflFishery
 
Which of the following statements about -deepening- and-or -widening-.docx
Which of the following statements about -deepening- and-or -widening-.docxWhich of the following statements about -deepening- and-or -widening-.docx
Which of the following statements about -deepening- and-or -widening-.docxDavidgflFishery
 
Which of the following items would be considered 'fossils' when dug ou.docx
Which of the following items would be considered 'fossils' when dug ou.docxWhich of the following items would be considered 'fossils' when dug ou.docx
Which of the following items would be considered 'fossils' when dug ou.docxDavidgflFishery
 
Which of the following is NOT correct about the Golgi apparatus- Defec.docx
Which of the following is NOT correct about the Golgi apparatus- Defec.docxWhich of the following is NOT correct about the Golgi apparatus- Defec.docx
Which of the following is NOT correct about the Golgi apparatus- Defec.docxDavidgflFishery
 

More from DavidgflFishery (20)

Which of the following is formed from a cholesterol -backbone- Aldoste.docx
Which of the following is formed from a cholesterol -backbone- Aldoste.docxWhich of the following is formed from a cholesterol -backbone- Aldoste.docx
Which of the following is formed from a cholesterol -backbone- Aldoste.docx
 
Which of these groups are the closest living relatives of animals- a-.docx
Which of these groups are the closest living relatives of animals- a-.docxWhich of these groups are the closest living relatives of animals- a-.docx
Which of these groups are the closest living relatives of animals- a-.docx
 
Which of the following statements about the reproductive biology of fu (1).docx
Which of the following statements about the reproductive biology of fu (1).docxWhich of the following statements about the reproductive biology of fu (1).docx
Which of the following statements about the reproductive biology of fu (1).docx
 
Which of the following is most influenced by the SRY gene- gender iden.docx
Which of the following is most influenced by the SRY gene- gender iden.docxWhich of the following is most influenced by the SRY gene- gender iden.docx
Which of the following is most influenced by the SRY gene- gender iden.docx
 
Which of the following is NOT one of the arguments managers typically.docx
Which of the following is NOT one of the arguments managers typically.docxWhich of the following is NOT one of the arguments managers typically.docx
Which of the following is NOT one of the arguments managers typically.docx
 
Which of the following is-are assumptions of the Hardy-Weinberg theore.docx
Which of the following is-are assumptions of the Hardy-Weinberg theore.docxWhich of the following is-are assumptions of the Hardy-Weinberg theore.docx
Which of the following is-are assumptions of the Hardy-Weinberg theore.docx
 
Which of the following is not a correct way to state a null hypothesis.docx
Which of the following is not a correct way to state a null hypothesis.docxWhich of the following is not a correct way to state a null hypothesis.docx
Which of the following is not a correct way to state a null hypothesis.docx
 
Which of the following is not an example of a deductible temporary dif (1).docx
Which of the following is not an example of a deductible temporary dif (1).docxWhich of the following is not an example of a deductible temporary dif (1).docx
Which of the following is not an example of a deductible temporary dif (1).docx
 
Which of the following is TRUE with regard to primase- It is responsib.docx
Which of the following is TRUE with regard to primase- It is responsib.docxWhich of the following is TRUE with regard to primase- It is responsib.docx
Which of the following is TRUE with regard to primase- It is responsib.docx
 
Which of the following is true regarding keratin- a- it is actually a.docx
Which of the following is true regarding keratin-  a- it is actually a.docxWhich of the following is true regarding keratin-  a- it is actually a.docx
Which of the following is true regarding keratin- a- it is actually a.docx
 
Which of the following is true about using monocultures in agriculture.docx
Which of the following is true about using monocultures in agriculture.docxWhich of the following is true about using monocultures in agriculture.docx
Which of the following is true about using monocultures in agriculture.docx
 
Which of the following statements is (are) true- Firms are motivated t.docx
Which of the following statements is (are) true- Firms are motivated t.docxWhich of the following statements is (are) true- Firms are motivated t.docx
Which of the following statements is (are) true- Firms are motivated t.docx
 
Which of the following statements best describes a hormone- A hommone.docx
Which of the following statements best describes a hormone- A hommone.docxWhich of the following statements best describes a hormone- A hommone.docx
Which of the following statements best describes a hormone- A hommone.docx
 
Which of the following was an interesting result from the Griffith exp.docx
Which of the following was an interesting result from the Griffith exp.docxWhich of the following was an interesting result from the Griffith exp.docx
Which of the following was an interesting result from the Griffith exp.docx
 
Which of the following steps are a part of QTL association studies- br.docx
Which of the following steps are a part of QTL association studies- br.docxWhich of the following steps are a part of QTL association studies- br.docx
Which of the following steps are a part of QTL association studies- br.docx
 
Which of the following is NOT a scenario that would call for the forma.docx
Which of the following is NOT a scenario that would call for the forma.docxWhich of the following is NOT a scenario that would call for the forma.docx
Which of the following is NOT a scenario that would call for the forma.docx
 
Which of the following is correctly paired- Two answer choices are cor.docx
Which of the following is correctly paired- Two answer choices are cor.docxWhich of the following is correctly paired- Two answer choices are cor.docx
Which of the following is correctly paired- Two answer choices are cor.docx
 
Which of the following statements about -deepening- and-or -widening-.docx
Which of the following statements about -deepening- and-or -widening-.docxWhich of the following statements about -deepening- and-or -widening-.docx
Which of the following statements about -deepening- and-or -widening-.docx
 
Which of the following items would be considered 'fossils' when dug ou.docx
Which of the following items would be considered 'fossils' when dug ou.docxWhich of the following items would be considered 'fossils' when dug ou.docx
Which of the following items would be considered 'fossils' when dug ou.docx
 
Which of the following is NOT correct about the Golgi apparatus- Defec.docx
Which of the following is NOT correct about the Golgi apparatus- Defec.docxWhich of the following is NOT correct about the Golgi apparatus- Defec.docx
Which of the following is NOT correct about the Golgi apparatus- Defec.docx
 

Recently uploaded

Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeSaadHumayun7
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxnuriaiuzzolino1
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024CapitolTechU
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptxmanishaJyala2
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPragya - UEM Kolkata Quiz Club
 

Recently uploaded (20)

Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptx
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 

Write a C program- Use a while loop for user input values until termin.docx

  • 1. Write a C program. Use a while loop for user input values until terminating with either 'q' or 9999 . The program can run to quit by inputting q or 9999. Please implement one of them to quit a program from q or 9999, or both. Sum all the input values which are integer, and float numbers, but not minus values. Get an average, biggest value, and smallest value from the input values. while loop is required to get values (int, float) by a user sum all input values, calculate the average and find the biggest value and smallest value from the input values If a user put 'q', stop the while looping to get the input value Print out the results below for example. Thank you for coming to our mini calculator! please enter an integer or float number, q or 9999 to quit: 10 please enter an integer or float number, q or 9999 to quit: 5.5 please enter an integer or float number, q or 9999 to quit: 15.1 please enter an integer or float number, q or 9999 to quit: q or 9999 ------------------------------------------------------------ You entered 3 values. Sum: 30.6 Average: 10.2 Largest value: 15.1 Smallest value: 5.5 ------------------------------------------------------------- 5. Submit your C source code file named, pgm2_ITEC4364_yourname.c 6. Submit a screen capture the compile and run your program 7. Your program should compile and run successfully