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
 
nalyzing culverts from a hydraulics perspective can be daunting.docx
nalyzing culverts from a hydraulics perspective can be daunting.docxnalyzing culverts from a hydraulics perspective can be daunting.docx
nalyzing culverts from a hydraulics perspective can be daunting.docxShahzadAliDurraniSch
 
C++ Tutorial.docx
C++ Tutorial.docxC++ Tutorial.docx
C++ Tutorial.docxPinkiVats1
 
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 (15)

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)
 
nalyzing culverts from a hydraulics perspective can be daunting.docx
nalyzing culverts from a hydraulics perspective can be daunting.docxnalyzing culverts from a hydraulics perspective can be daunting.docx
nalyzing culverts from a hydraulics perspective can be daunting.docx
 
C++ Tutorial.docx
C++ Tutorial.docxC++ Tutorial.docx
C++ Tutorial.docx
 
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
 

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

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

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