Instructions Download or clone workshop 6 (W506) from https://github.com/Seneca-144100/PC-Workshops Note: If you use the download option, make sure you EXTRACT the files from the zip archive file 1. Carefully review the "Part-1 Output Example" (next section) to see how this program is expected to work 2. Code your solution to Part-1 in the provided "wep1.c" source code file 3. Begin by prompting the user for their NET monthly income • The monthly income must be at least $500.00, and not more than $400,000.00 • The minimum and maximum values should be stored in unmodifiable variables and used in the validation logic accordingly Display an appropriate error message if the entered value is outside this range • Validation must be nested in an iteration construct and repeat until a valid value is entered 4. Next, prompt the user to specify the number of wish list items they want to use in the forecast Note The maximum number of items should be limited to 10 (define a macro to help with this) Display an appropriate error message if the entered value is outside this range • Validation must be nested in an iteration construct and repeat until a valid value is entered 5. Now you are ready to store the wish list item details. Use an iteration construct to iterate the number of times necessary to obtain the number of wish list item details specified by the user (from step #4) 6. The item details are made up of three (3) related pieces of information and must be stored in matching (parallel) arrays a) Cost - A double floating-point value representing the value of the item The entered value must be at least $100.00 (use an unmodifiable variable to help with the validation logic accordingly) Display an appropriate error message if the entered value is invalid Validation must be nested in an iteration construct repeating until a valid value is entered b) Priority An integer value representing the priority of the item The entered value must be between 1 and 3 inclusive where o 1-a must-have item o2important to have item o 3 want to have item Display an appropriate error message if the entered value is out of range Validation must be nested in an iteration construct repeating until a valid value is entered c) Finance Options - A character value representing if an item has financing options (don't need to pay entire value up-front) The entered value can only be a lowercase y or n Display an appropriate error message if the entered value is not a y or n Validation must be nested in an iteration construct repeating until a valid value is entered 7. After storing the data to parallel array's, display a formatted table of the data entered • Use the following printf statements for the table header printf("Item Priority Financed printf("... • Use the following printf formatting to display each wish list item record: printf("%3d %5d X5c X11.21\n", Cost\n"); --------\n"); 8. After all the data is displayed, summarize it with the total of all the item costs. Use the following printf statement to properly align it with the appropriate Cost column: printf(" -\n"); printf(" $11.21f\n\n", ... 9. Finally, before ending the application, display an exit message
Instructions Download or clone workshop 6 (W506) from https://github.com/Seneca-144100/PC-Workshops Note: If you use the download option, make sure you EXTRACT the files from the zip archive file 1. Carefully review the "Part-1 Output Example" (next section) to see how this program is expected to work 2. Code your solution to Part-1 in the provided "wep1.c" source code file 3. Begin by prompting the user for their NET monthly income • The monthly income must be at least $500.00, and not more than $400,000.00 • The minimum and maximum values should be stored in unmodifiable variables and used in the validation logic accordingly Display an appropriate error message if the entered value is outside this range • Validation must be nested in an iteration construct and repeat until a valid value is entered 4. Next, prompt the user to specify the number of wish list items they want to use in the forecast Note The maximum number of items should be limited to 10 (define a macro to help with this) Display an appropriate error message if the entered value is outside this range • Validation must be nested in an iteration construct and repeat until a valid value is entered 5. Now you are ready to store the wish list item details. Use an iteration construct to iterate the number of times necessary to obtain the number of wish list item details specified by the user (from step #4) 6. The item details are made up of three (3) related pieces of information and must be stored in matching (parallel) arrays a) Cost - A double floating-point value representing the value of the item The entered value must be at least $100.00 (use an unmodifiable variable to help with the validation logic accordingly) Display an appropriate error message if the entered value is invalid Validation must be nested in an iteration construct repeating until a valid value is entered b) Priority An integer value representing the priority of the item The entered value must be between 1 and 3 inclusive where o 1-a must-have item o2important to have item o 3 want to have item Display an appropriate error message if the entered value is out of range Validation must be nested in an iteration construct repeating until a valid value is entered c) Finance Options - A character value representing if an item has financing options (don't need to pay entire value up-front) The entered value can only be a lowercase y or n Display an appropriate error message if the entered value is not a y or n Validation must be nested in an iteration construct repeating until a valid value is entered 7. After storing the data to parallel array's, display a formatted table of the data entered • Use the following printf statements for the table header printf("Item Priority Financed printf("... • Use the following printf formatting to display each wish list item record: printf("%3d %5d X5c X11.21\n", Cost\n"); --------\n"); 8. After all the data is displayed, summarize it with the total of all the item costs. Use the following printf statement to properly align it with the appropriate Cost column: printf(" -\n"); printf(" $11.21f\n\n", ... 9. Finally, before ending the application, display an exit message
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education