Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hi, these are all information we have, nothing more. ' IU USL'lIUE LU VUUl IIISLIUCLUI Wlldl VUU lliil'lftl Idlllu Ill UUlllplBllllg Ll'IIS wornsnop Part1 10%
hi, these are all information we have, nothing more.
' IU USL'lIUE LU VUUl IIISLIUCLUI Wlldl VUU lliil'lftl Idlllu Ill UUlllplBllllg Ll'IIS wornsnop Part1 10% Instructions Download or clone workshop 6 {W506} from https:gfgithub.comeeneca-144100flPCWorkshops Note: If you use the download option, make sure you EXTRACT the les from the .zip archive file 6. Carefully review the "Part1 Output Example\" [next section} to see how this program is expected to work Code your solution to Part1 in the provided "w6p1.c\" source code file. 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 unmodiable variables and used in the validation logic accordingly 0 Display an appropriate error message if the entered value is outside this range I Validation must be nested in an iteration construct and m until a valid value is entered Next, prompt the user to specify the number of wish list items they want to use in the forecast Note I The maximum number of items should be limited to 10 ldefine a macro to help with this) I Display an appropriate error message if the entered value is outside this range I Validation must be nested in an iteration construct and EM until a valid value is entered 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 #5) The item details are madeup of three [3] related pieces of information and must be stored in matching [parallel] arrays: 3} M A double oating-point value representing the value of the item The entered value must be at least 5100.00 [use an unmodiable 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 lo} 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 IIIL. LulllLIL-u vulul. IIIuJ'l UL. ucnluccll a. ullu u Illuluanr: Illlhlh- o 1 = a musthave item 0 2 2 important to have item 0 3 2 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 nancing options [don't need to pay entire value upfront] 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 Cost'm"); printf(" \ "); 0 Use the following printf formatting to display each wish list item record: printf( "553d %5d %5c %11.Zlf\ ", 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(" \ "); printf(" $%11. Zlf\ \ ", 9. Finally, before ending the application, display an exit message Part1 D utput Exam 9 le (Note: Use the YELLOW highlighted userinput data for submission} + + + Wish List Forecaster I + + Enter your monthly NET income: $6 ERROR: You must have a consistent monthly income of at least $568.89 Enter your monthly NET income: $586896 ERROR: Liar! I'll believe you if you enter a value no more than $489386 Enter your monthly NET income: $6588.58 How many wish list items do you want to forecast?: B ERROR: List is restricted to between 1 and 18 items. How many wish list items do you want to forecast?: 11 ERROR: List is restricted to between 1 and 18 items. How many wish list items do you want to forecast?: 3 Item1 Details: Item cost: $39838.15 How important is it to you? [1:must have, 2=important, 3=want]: 8 ERROR: Value must be between 1 and 3 How important is it to you? [1:must have, 2=important, 3=want]: 4 ERROR: Value must be between 1 and 3 How important is it to you? [1:must have, 2=important, 3=want]: 1 Does this item have financing options? [yin]: N ERROR: Must be a lowercase 'y' or 'n' Does this item have financing options? [yin]: V ERROR: Must be a lowercase 'y' or 'n' Does this item have financing options? [yin]: k ERROR: Must be a lowercase 'y' or n Does this item have financing options? [yin]: n Item2 Details: Item cost: $99.99 ERROR: Cost must be at least $188.89 Item cost: $12BBBBG How important is it to you? [1:must have, 2=important, 3=want]: 3 Does this item have financing options? [yin]: y Item3 Details: Item cost: $358586.25 How important is it to you? [1:must have, 2=important, 3=want]: 2 Does this item have financing options? [yin]: n Item Priority Financed Cost 1 1 n 39639.15 2 3 y 1289699.98 3 2 n 359593.25 Item Priority Financed Cost - - - 1 n 39030.15 NWA y 1200000.00 n 350500 .25 - - - $ 1589530.40 Best of luck in all your future endeavoursStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started