Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C that asks the user to choose his or her favorite ice cream flavor from a list of choices, which includes

image text in transcribed

Write a program in C that asks the user to choose his or her favorite ice cream flavor from a list of choices, which includes chocolate, vanilla, and strawberry. Requirements 1). If some choice other than what your list shows is entered, your program should display, Sorry, we dont carry that flavor. (Hint: what decision structure is good for multiple choices?) 2). If chocolate is chosen, then your program should determine which type, Double-Dark or Chocolate Fudge 3). After the selection is made, the program prints out the name of the flavor chosen and a message: name_of_flavor chosen. Good choice! a. Follow the program design process to develop the logic of your program. Document all six steps and generate pseudocode, include the approach you chose in your report. b. Verify that your program works properly. Document your test cases. c. Create a function to handle each state (Chocolate, Vanilla, and Strawberry)

(25 pts) Write a program in C that asks the user to choose his or her favorite ice cream flavor from a list of choices, which includes chocolate, vanilla, and strawberry Requirements 1). If some choice other than what your list shows is entered, your program should display, "Sorry, we don't carry that flavor". (Hint: what decision structure is good for multiple choices?) 2). If chocolate is chosen, then your program should determine which type, 'Double-Dark' or 'Chocolate Fudge' 3). After the selection is made, the program prints out the name of the flavor chosen and a message: "name_of flavor chosen. Good choice!" a. Follow the program design process to develop the logic of your program. Document all six steps and generate pseudocode, include the approach you chose in your report. b. Verify that your program works properly. Document your test cases. c. Create a function to handle each state (Chocolate, Vanilla, and Strawberry)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions