SlideShare a Scribd company logo
c programming 109
This lab relates to the following Skill Outcomes:Students will apply the steps in the program
development processStudents will implement object-oriented programming through
predefined classesStudents will develop graphical user interface applications using
appropriate controlsStudents will implement primitive data types for variables, constants,
fields, and listsStudents will select appropriate arithmetic operatorsStudents will analyze,
design, implement, test, and debug domain-specific applications which demonstrate basic
computation, input/output, control structures, operators, input validation, and
methodsThis lab covers material from Chapter 7 and Appendix B as well as concepts
covered in previous chapters. The purpose of this lab is to demonstrate the use of a list to
store and manipulate values entered by the user as well as to implement ToolTips, a
ComboBox, and a Menu System.Create an application that keeps track of the total donuts
sold, the average donuts sold, and the total of donut sales through the implementation of a
List (Do NOT use an Array).* The form should contain a menu system with the following
menu items (the menu items in the Tools menu are all related to the simple combo box for
the donut types):FileToolsHelpExitAdd Donut TypeAbout Remove Donut Type Clear All
Donut Types Display Donut Type Count An example is provided below of the form and
required message boxes:Form1Message Box for Display Donut List ButtonMessage Box for
About menu item (use YOUR name)* Use a Simple Combo Box to hold the donut types
initially populated with Chocolate and Glazed. Make sure and keep the list sorted in
ascending alphabetic order as donut types are added (hint: see Sort property of the Simple
Combo Box).Add Donut Type: The user should be able to add to the combo box. Do not
allow a blank donut type to be added to the combo box. Display an appropriate message if
this occurs. Focus should be returned to the text box portion of the combo box. This should
be coded in the Add Donut Type menu item click event handler.Remove Donut Type: The
user should be able to remove a donut type from the combo box. Display an appropriate
error message if the user selects Remove Donut Type without first selecting a donut type.
This should be coded in the Remove Donut Type menu item click event handler.Clear All
Donut Types: The user should be able to clear all donut types from the combo box. This
should be coded in the Clear All Donut Types menu item click event handler.Display Donut
Type Count: The user should also be able to display the count of donut types in the combo
box. This should be coded in the Display Donut Type Count menu item click event handler.*
The About menu item under the Help menu should display Your Name in a Message Box.
This should be coded in the About menu item click event handler.* The Exit menu item
under the File menu should exit the application. This should be coded in the Exit menu item
click event handler.* Implement a List of whole-numbers (no decimal places) to store the
number of donuts entered by the user (Do NOT implement an Array).* The Calculate button
adds the individual number of donuts to the List, calculates the Total of Donuts Sold,
Average Donuts Sold, and Total of Donut Sales. The Calculate button should then clear and
set the focus to the Number of Donuts text box for the next user entry.* The Display Donut
List button should display the items in the List using a Message Box. The Number of Donuts
text box should be cleared and focus set back to it for the next user entry.* The Clear Donut
List button should clear the List, as well as clear the input and output controls and set the
focus to the Number ofDonuts text box. It should also set the donut type combo box back to
unselected. Counters and accumulators should also be reset where appropriate. DO NOT
CLEAR THE DONUT TYPE COMBO BOX.* Include the following Data Validation and display
an appropriate message (Message Box OR ErrorProvider component may be used) and clear
and set the focus to the control causing the error (a nested if statement is
recommended):Number of Donuts must be a valid data type (i.e., TryParse method)Number
of Donuts must be greater than zero (accuracy validation)User must select an item from the
donut type combo box (text box portion of combo box should not be blank)* Add ToolTips
to ALL the buttons with descriptive text* ALL donut types cost .60 (assume all donut types
are the same price)The program must include standard features of a Windows application
including:Change the Text property of the form as indicated on the sample formAppropriate
naming conventions for all controlsButtons with appropriate name and keyboard access
keyAcceptButton and CancelButton properties should be assigned to the Calculate and Clear
Donut List buttons respectivelyAppropriate naming conventions and data type declarations
for variables2. Name your project using the naming convention provided in the syllabus:
CourseNumber_LastNameFirstInitial_LabXX (e.g., 3333_SharpJ_Lab07)3. Include the
appropriate identification information per the course syllabus using comment statments at
the top of your project code (see p. 102, 2.8 Comments, Blank Lines, and Indentation):
Name, 9-Digit ID, Due Date, Date Submitted, and Brief Description of Program.4. You will
need to zip/compress the project folder using an appropriate zip/compression utility such
as the one found in the Windows or WinZip, etc. Please DO NOT submit .rar (archive) files.5.
Attach and submit the zipped/compressed project folder file under the Lab 07 link under
Assessments in the Chapter 7 Module.

More Related Content

Similar to c programming 109.docx

b5ce01fe4c47f602c663bd3452653bb2.pdf
b5ce01fe4c47f602c663bd3452653bb2.pdfb5ce01fe4c47f602c663bd3452653bb2.pdf
b5ce01fe4c47f602c663bd3452653bb2.pdf
alibintooq
 
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
Automated Restaurant System (Command Design Pattern)PROBLEMY.docxAutomated Restaurant System (Command Design Pattern)PROBLEMY.docx
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
rock73
 
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docxCS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
mydrynan
 
BEX.pptx
BEX.pptxBEX.pptx
BEX.pptx
Phani163371
 
Sampling
SamplingSampling
Sampling
alifadakar1
 
Gui testing
Gui testingGui testing
Gui testing
subbumeyyappan
 
I really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdfI really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdf
pasqualealvarez467
 
How to create sales & e commerce pricelist promotions in odoo
How to create sales & e commerce pricelist promotions in odooHow to create sales & e commerce pricelist promotions in odoo
How to create sales & e commerce pricelist promotions in odoo
PlanetOdoo
 
Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020
Adhi Wikantyoso
 
CostingNet specific manual
CostingNet specific manualCostingNet specific manual
CostingNet specific manual
ibuyer.hk eddie
 
2 front panel
2  front panel2  front panel
2 front panel
Ankush Jamthikar
 
Maliram poonia project
Maliram poonia projectMaliram poonia project
C# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesC# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slides
Sami Mut
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
ssuser562afc1
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6helpido9
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6comp274
 
WinEst As 1. Es2. Tassignment stInfo (Esti.docx
WinEst As 1. Es2. Tassignment stInfo (Esti.docxWinEst As 1. Es2. Tassignment stInfo (Esti.docx
WinEst As 1. Es2. Tassignment stInfo (Esti.docx
alanfhall8953
 
Creating accessible modals and autocompletes
Creating accessible modals and autocompletesCreating accessible modals and autocompletes
Creating accessible modals and autocompletes
Russ Weakley
 

Similar to c programming 109.docx (20)

b5ce01fe4c47f602c663bd3452653bb2.pdf
b5ce01fe4c47f602c663bd3452653bb2.pdfb5ce01fe4c47f602c663bd3452653bb2.pdf
b5ce01fe4c47f602c663bd3452653bb2.pdf
 
Ma3696 Lecture 2
Ma3696 Lecture 2Ma3696 Lecture 2
Ma3696 Lecture 2
 
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
Automated Restaurant System (Command Design Pattern)PROBLEMY.docxAutomated Restaurant System (Command Design Pattern)PROBLEMY.docx
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
 
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docxCS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
 
BEX.pptx
BEX.pptxBEX.pptx
BEX.pptx
 
Sampling
SamplingSampling
Sampling
 
Gui testing
Gui testingGui testing
Gui testing
 
I really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdfI really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdf
 
How to create sales & e commerce pricelist promotions in odoo
How to create sales & e commerce pricelist promotions in odooHow to create sales & e commerce pricelist promotions in odoo
How to create sales & e commerce pricelist promotions in odoo
 
Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020
 
CostingNet specific manual
CostingNet specific manualCostingNet specific manual
CostingNet specific manual
 
2 front panel
2  front panel2  front panel
2 front panel
 
Maliram poonia project
Maliram poonia projectMaliram poonia project
Maliram poonia project
 
C# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesC# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slides
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
 
Spreadsheet Auditing
Spreadsheet  AuditingSpreadsheet  Auditing
Spreadsheet Auditing
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
WinEst As 1. Es2. Tassignment stInfo (Esti.docx
WinEst As 1. Es2. Tassignment stInfo (Esti.docxWinEst As 1. Es2. Tassignment stInfo (Esti.docx
WinEst As 1. Es2. Tassignment stInfo (Esti.docx
 
Creating accessible modals and autocompletes
Creating accessible modals and autocompletesCreating accessible modals and autocompletes
Creating accessible modals and autocompletes
 

More from write31

The candidates will develop a substantive understanding of six components.docx
The candidates will develop a substantive understanding of six components.docxThe candidates will develop a substantive understanding of six components.docx
The candidates will develop a substantive understanding of six components.docx
write31
 
Women in The Testament of the Bible shows.docx
Women in The Testament of the Bible shows.docxWomen in The Testament of the Bible shows.docx
Women in The Testament of the Bible shows.docx
write31
 
Write a article more than 2 pages in.docx
Write a article more than 2 pages in.docxWrite a article more than 2 pages in.docx
Write a article more than 2 pages in.docx
write31
 
Write a memo to the CIO that describes how to.docx
Write a memo to the CIO that describes how to.docxWrite a memo to the CIO that describes how to.docx
Write a memo to the CIO that describes how to.docx
write31
 
The topic is In the Western Catholic The.docx
The topic is In the Western Catholic The.docxThe topic is In the Western Catholic The.docx
The topic is In the Western Catholic The.docx
write31
 
Video if makes the speech compelling.docx
Video if makes the speech compelling.docxVideo if makes the speech compelling.docx
Video if makes the speech compelling.docx
write31
 
watch the video on The Role of HR Has.docx
watch the video on The Role of HR Has.docxwatch the video on The Role of HR Has.docx
watch the video on The Role of HR Has.docx
write31
 
There is a relationship between an emotionality and their.docx
There is a relationship between an emotionality and their.docxThere is a relationship between an emotionality and their.docx
There is a relationship between an emotionality and their.docx
write31
 
What is required to petition is a formal letter the.docx
What is required to petition is a formal letter the.docxWhat is required to petition is a formal letter the.docx
What is required to petition is a formal letter the.docx
write31
 
what is mental illness as an officially recognized.docx
what is mental illness as an officially recognized.docxwhat is mental illness as an officially recognized.docx
what is mental illness as an officially recognized.docx
write31
 
With you have learned about the cell DNA.docx
With you have learned about the cell DNA.docxWith you have learned about the cell DNA.docx
With you have learned about the cell DNA.docx
write31
 
TO EACH POST 100 WORDS MIN This.docx
TO EACH POST 100 WORDS MIN This.docxTO EACH POST 100 WORDS MIN This.docx
TO EACH POST 100 WORDS MIN This.docx
write31
 
TO EACH POST MIN 100 WORDS In.docx
TO EACH POST MIN 100 WORDS In.docxTO EACH POST MIN 100 WORDS In.docx
TO EACH POST MIN 100 WORDS In.docx
write31
 
Take a look back at your DPP and the Belmont.docx
Take a look back at your DPP and the Belmont.docxTake a look back at your DPP and the Belmont.docx
Take a look back at your DPP and the Belmont.docx
write31
 
Stakeholder support is necessary for successful project Consider your.docx
Stakeholder support is necessary for successful project Consider your.docxStakeholder support is necessary for successful project Consider your.docx
Stakeholder support is necessary for successful project Consider your.docx
write31
 
The OSI data link layer is responsible for physical.docx
The OSI data link layer is responsible for physical.docxThe OSI data link layer is responsible for physical.docx
The OSI data link layer is responsible for physical.docx
write31
 
This assignment is intended to help you use leadership skills.docx
This assignment is intended to help you use leadership skills.docxThis assignment is intended to help you use leadership skills.docx
This assignment is intended to help you use leadership skills.docx
write31
 
What are the different portals of entry for a pathogen.docx
What are the different portals of entry for a pathogen.docxWhat are the different portals of entry for a pathogen.docx
What are the different portals of entry for a pathogen.docx
write31
 
You are the Social Media Manager for Savannah Technical.docx
You are the Social Media Manager for Savannah Technical.docxYou are the Social Media Manager for Savannah Technical.docx
You are the Social Media Manager for Savannah Technical.docx
write31
 
When you are engaging it is important to understand.docx
When you are engaging it is important to understand.docxWhen you are engaging it is important to understand.docx
When you are engaging it is important to understand.docx
write31
 

More from write31 (20)

The candidates will develop a substantive understanding of six components.docx
The candidates will develop a substantive understanding of six components.docxThe candidates will develop a substantive understanding of six components.docx
The candidates will develop a substantive understanding of six components.docx
 
Women in The Testament of the Bible shows.docx
Women in The Testament of the Bible shows.docxWomen in The Testament of the Bible shows.docx
Women in The Testament of the Bible shows.docx
 
Write a article more than 2 pages in.docx
Write a article more than 2 pages in.docxWrite a article more than 2 pages in.docx
Write a article more than 2 pages in.docx
 
Write a memo to the CIO that describes how to.docx
Write a memo to the CIO that describes how to.docxWrite a memo to the CIO that describes how to.docx
Write a memo to the CIO that describes how to.docx
 
The topic is In the Western Catholic The.docx
The topic is In the Western Catholic The.docxThe topic is In the Western Catholic The.docx
The topic is In the Western Catholic The.docx
 
Video if makes the speech compelling.docx
Video if makes the speech compelling.docxVideo if makes the speech compelling.docx
Video if makes the speech compelling.docx
 
watch the video on The Role of HR Has.docx
watch the video on The Role of HR Has.docxwatch the video on The Role of HR Has.docx
watch the video on The Role of HR Has.docx
 
There is a relationship between an emotionality and their.docx
There is a relationship between an emotionality and their.docxThere is a relationship between an emotionality and their.docx
There is a relationship between an emotionality and their.docx
 
What is required to petition is a formal letter the.docx
What is required to petition is a formal letter the.docxWhat is required to petition is a formal letter the.docx
What is required to petition is a formal letter the.docx
 
what is mental illness as an officially recognized.docx
what is mental illness as an officially recognized.docxwhat is mental illness as an officially recognized.docx
what is mental illness as an officially recognized.docx
 
With you have learned about the cell DNA.docx
With you have learned about the cell DNA.docxWith you have learned about the cell DNA.docx
With you have learned about the cell DNA.docx
 
TO EACH POST 100 WORDS MIN This.docx
TO EACH POST 100 WORDS MIN This.docxTO EACH POST 100 WORDS MIN This.docx
TO EACH POST 100 WORDS MIN This.docx
 
TO EACH POST MIN 100 WORDS In.docx
TO EACH POST MIN 100 WORDS In.docxTO EACH POST MIN 100 WORDS In.docx
TO EACH POST MIN 100 WORDS In.docx
 
Take a look back at your DPP and the Belmont.docx
Take a look back at your DPP and the Belmont.docxTake a look back at your DPP and the Belmont.docx
Take a look back at your DPP and the Belmont.docx
 
Stakeholder support is necessary for successful project Consider your.docx
Stakeholder support is necessary for successful project Consider your.docxStakeholder support is necessary for successful project Consider your.docx
Stakeholder support is necessary for successful project Consider your.docx
 
The OSI data link layer is responsible for physical.docx
The OSI data link layer is responsible for physical.docxThe OSI data link layer is responsible for physical.docx
The OSI data link layer is responsible for physical.docx
 
This assignment is intended to help you use leadership skills.docx
This assignment is intended to help you use leadership skills.docxThis assignment is intended to help you use leadership skills.docx
This assignment is intended to help you use leadership skills.docx
 
What are the different portals of entry for a pathogen.docx
What are the different portals of entry for a pathogen.docxWhat are the different portals of entry for a pathogen.docx
What are the different portals of entry for a pathogen.docx
 
You are the Social Media Manager for Savannah Technical.docx
You are the Social Media Manager for Savannah Technical.docxYou are the Social Media Manager for Savannah Technical.docx
You are the Social Media Manager for Savannah Technical.docx
 
When you are engaging it is important to understand.docx
When you are engaging it is important to understand.docxWhen you are engaging it is important to understand.docx
When you are engaging it is important to understand.docx
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

c programming 109.docx

  • 1. c programming 109 This lab relates to the following Skill Outcomes:Students will apply the steps in the program development processStudents will implement object-oriented programming through predefined classesStudents will develop graphical user interface applications using appropriate controlsStudents will implement primitive data types for variables, constants, fields, and listsStudents will select appropriate arithmetic operatorsStudents will analyze, design, implement, test, and debug domain-specific applications which demonstrate basic computation, input/output, control structures, operators, input validation, and methodsThis lab covers material from Chapter 7 and Appendix B as well as concepts covered in previous chapters. The purpose of this lab is to demonstrate the use of a list to store and manipulate values entered by the user as well as to implement ToolTips, a ComboBox, and a Menu System.Create an application that keeps track of the total donuts sold, the average donuts sold, and the total of donut sales through the implementation of a List (Do NOT use an Array).* The form should contain a menu system with the following menu items (the menu items in the Tools menu are all related to the simple combo box for the donut types):FileToolsHelpExitAdd Donut TypeAbout Remove Donut Type Clear All Donut Types Display Donut Type Count An example is provided below of the form and required message boxes:Form1Message Box for Display Donut List ButtonMessage Box for About menu item (use YOUR name)* Use a Simple Combo Box to hold the donut types initially populated with Chocolate and Glazed. Make sure and keep the list sorted in ascending alphabetic order as donut types are added (hint: see Sort property of the Simple Combo Box).Add Donut Type: The user should be able to add to the combo box. Do not allow a blank donut type to be added to the combo box. Display an appropriate message if this occurs. Focus should be returned to the text box portion of the combo box. This should be coded in the Add Donut Type menu item click event handler.Remove Donut Type: The user should be able to remove a donut type from the combo box. Display an appropriate error message if the user selects Remove Donut Type without first selecting a donut type. This should be coded in the Remove Donut Type menu item click event handler.Clear All Donut Types: The user should be able to clear all donut types from the combo box. This should be coded in the Clear All Donut Types menu item click event handler.Display Donut Type Count: The user should also be able to display the count of donut types in the combo box. This should be coded in the Display Donut Type Count menu item click event handler.* The About menu item under the Help menu should display Your Name in a Message Box. This should be coded in the About menu item click event handler.* The Exit menu item
  • 2. under the File menu should exit the application. This should be coded in the Exit menu item click event handler.* Implement a List of whole-numbers (no decimal places) to store the number of donuts entered by the user (Do NOT implement an Array).* The Calculate button adds the individual number of donuts to the List, calculates the Total of Donuts Sold, Average Donuts Sold, and Total of Donut Sales. The Calculate button should then clear and set the focus to the Number of Donuts text box for the next user entry.* The Display Donut List button should display the items in the List using a Message Box. The Number of Donuts text box should be cleared and focus set back to it for the next user entry.* The Clear Donut List button should clear the List, as well as clear the input and output controls and set the focus to the Number ofDonuts text box. It should also set the donut type combo box back to unselected. Counters and accumulators should also be reset where appropriate. DO NOT CLEAR THE DONUT TYPE COMBO BOX.* Include the following Data Validation and display an appropriate message (Message Box OR ErrorProvider component may be used) and clear and set the focus to the control causing the error (a nested if statement is recommended):Number of Donuts must be a valid data type (i.e., TryParse method)Number of Donuts must be greater than zero (accuracy validation)User must select an item from the donut type combo box (text box portion of combo box should not be blank)* Add ToolTips to ALL the buttons with descriptive text* ALL donut types cost .60 (assume all donut types are the same price)The program must include standard features of a Windows application including:Change the Text property of the form as indicated on the sample formAppropriate naming conventions for all controlsButtons with appropriate name and keyboard access keyAcceptButton and CancelButton properties should be assigned to the Calculate and Clear Donut List buttons respectivelyAppropriate naming conventions and data type declarations for variables2. Name your project using the naming convention provided in the syllabus: CourseNumber_LastNameFirstInitial_LabXX (e.g., 3333_SharpJ_Lab07)3. Include the appropriate identification information per the course syllabus using comment statments at the top of your project code (see p. 102, 2.8 Comments, Blank Lines, and Indentation): Name, 9-Digit ID, Due Date, Date Submitted, and Brief Description of Program.4. You will need to zip/compress the project folder using an appropriate zip/compression utility such as the one found in the Windows or WinZip, etc. Please DO NOT submit .rar (archive) files.5. Attach and submit the zipped/compressed project folder file under the Lab 07 link under Assessments in the Chapter 7 Module.