Question: General Description: You are to write an application that allows customers to order items from an inventory of products When the program begins, it reads



General Description: You are to write an application that allows customers to order items from an inventory of products When the program begins, it reads the inventory list from a file, then displays the main menu including a logo that contains your name. Feel free to make up a name for your application AMOZON.COM by Ada Byron I- List our Inventor 0- Make an Orde L -List al1 Orders made x-Exit Enter an option: o The menu options are Display the inventory list Make an Order List Orders made Exit The menu asks the user to enter an option. The user should be able to enter any string for the option. The first character of the string entered is upper-cased and used as the option. Examples IList our Inventory Hake an U dler L-List all1 Orders made X- Exit Enter an option: what option? Invalid option, enter I, 0. L or X? Enter an option: try again? Invalid option. enter I. 0. L or! Enter an option: ok this will work Enter an option: o converted to O and accepted Enter an option: only first character o is capitalized to O and accepted When an invalid option is entered, the program prints Invalid option, enter I, O, L or X! and repeats the input until a valid option Is entered List Inventory: Prints a box with the word "Products" followed by two lines of column headers as shown. A list of products is printed as shown in columns. Product Codes are strings 12 characters long with no spaces Prices are floats, max value 999.99. Descriptions are strings with spaces up to 20 characters in length IList our Inventory 0- Make an Order L -List all Orders nade X - Exit Enter an option: i Products # PRODUCT CODE PRICE PRODUCT DESCRIPTION 123456789012 1 123456789013 2 123456789014 3 666066606660 $999.99White UL Baseball Cap 14.99 Tan UK Baseball Cap 16.99Blue UK Baseball Cap 13.99White UK Baseball Cap Number of items in inventory: 4 General Description: You are to write an application that allows customers to order items from an inventory of products When the program begins, it reads the inventory list from a file, then displays the main menu including a logo that contains your name. Feel free to make up a name for your application AMOZON.COM by Ada Byron I- List our Inventor 0- Make an Orde L -List al1 Orders made x-Exit Enter an option: o The menu options are Display the inventory list Make an Order List Orders made Exit The menu asks the user to enter an option. The user should be able to enter any string for the option. The first character of the string entered is upper-cased and used as the option. Examples IList our Inventory Hake an U dler L-List all1 Orders made X- Exit Enter an option: what option? Invalid option, enter I, 0. L or X? Enter an option: try again? Invalid option. enter I. 0. L or! Enter an option: ok this will work Enter an option: o converted to O and accepted Enter an option: only first character o is capitalized to O and accepted When an invalid option is entered, the program prints Invalid option, enter I, O, L or X! and repeats the input until a valid option Is entered List Inventory: Prints a box with the word "Products" followed by two lines of column headers as shown. A list of products is printed as shown in columns. Product Codes are strings 12 characters long with no spaces Prices are floats, max value 999.99. Descriptions are strings with spaces up to 20 characters in length IList our Inventory 0- Make an Order L -List all Orders nade X - Exit Enter an option: i Products # PRODUCT CODE PRICE PRODUCT DESCRIPTION 123456789012 1 123456789013 2 123456789014 3 666066606660 $999.99White UL Baseball Cap 14.99 Tan UK Baseball Cap 16.99Blue UK Baseball Cap 13.99White UK Baseball Cap Number of items in inventory: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
