Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need some help to make this variables ? #define _CRT_SECURE_NO_WARNINGS #include int main(void) { // You will need this when converting from grams to

I need some help to make this variables ?

#define _CRT_SECURE_NO_WARNINGS #include  int main(void) { // You will need this when converting from grams to pounds (lbs) const double GRAMS_IN_LBS = 453.5924; return 0; }

image text in transcribed

Output:

image text in transcribed

image text in transcribed

image text in transcribed

The below table provides the mapping rules you must apply in matching the user input preferences to each product (Example: if the user prefers "Mild" coffee, and the product type is "Light" this would show as true (non-zero) in the summary table result): Preference Product Coffee Strength Coffee Type Mild Rich Light Blend Coffee Grind Size Coffee Making Equipment Residential Commercial Daily Servings (inclusive range) 1 to 4 1 to 9 10 or more Like Cream with Coffee Yes Course Fine Coffee Package Weight (inclusive range) 0 to 250 g 500 g 1000 g Suggest Serving with Cream Yes No Serving Temperature (inclusive range) 60.0 to 69.9 (C) 70.0 or more (C) No Coffee Making Equipment Residential Commercial Take a Break - Coffee Shop Enter the coffee product information being sold today... COFFEE-1... Type ([L]ight, [B]lend): 1 Grind size ([C]ourse, [F]ine): c Bag weight (g): 250 Best served with cream ([Y]es, [N]o): y Ideal serving temperature (Celsius): 65.7 COFFEE-2... Type ([L]ight, [B]lend): B Grind size ([C]ourse, [F]ine): F Bag weight (g): 500 Best served with cream ([Y]es, [N]0): N Ideal serving temperature (Celsius): 70.0 COFFEE-3... Type ([L]ight, [B]lend): L Grind size ([C]ourse, [F]ine): f Bag weight (g): 1000 Best served with cream ([Y]es, [N]o): n Ideal serving temperature (Celsius): 80.5 Coffee Type Coffee | Grind Size Packaged Bag Weight | Best Serving | Served Temperature With | Cream (C) | (F) ID | Light | Blend | Course | Fine | (G) | Lbs 1 | 2 | 3 | 1 0 1 | 0 | 1 | 0 1 | 1 0 0 | | 1 0 | 250 | 1 1 500 1 1000 | 0.551 | 1 1.102 | 0 2.205 | 0 | 65.7 | 150.3 | 70.0 | 158.0 | 80.5 | 176.9 Enter how you like your coffee and the coffee maker equipment you use... Coffee strength ([M]ild, [R]ich): m Do you like your coffee with cream ([Y]es, [N]o): y Typical number of daily servings: 6 Maker ([R]esidential, [C]ommercial): c The below table shows how your preferences align to the available products: Coffee Type Coffee Grind Size | Packaged | With Serving | Bag Weight Cream | Temperature ID | 11 21 1 0 0 1 0 1 1 | 1 0 0 1 31 PH 1 1 0 | 1 Enter how you like your coffee and the coffee maker equipment you use... Coffee strength ([M]ild, [R]ich): R Do you like your coffee with cream ([Y]es,[N]0): N Typical number of daily servings: 10 Maker ([R]esidential,[C]ommercial): R The below table shows how your preferences align to the available products: Coffee Type Coffee Grind Size ID | Packaged | With | Serving Bag Weight | Cream | Temperature . 1| 21 31 0 1 0 1 0 0 0 0 1 0 1 1 1 0 0 1 | Hope you found a product that suits your likes

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

Can we have a random variable with E X = 3 and E X 2 = 8?

Answered: 1 week ago

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago