Assignment 1/ Reset to Starter Code 2. Problem 2: Product ID Numbers Saved Problem Description In this second problem, you will build on and extend the program created while solving the first problem....


Assignment 1/<br>Reset to Starter Code<br>2. Problem 2: Product ID Numbers Saved<br>Problem Description<br>In this second problem, you will build on and extend the program created while solving the first problem. You will be expected to isolate both the product id number and company number from the barcode number of the item to be purchased by the customer.<br>Input<br>You will receive (from the user) the following as input (in order):<br>• The first and last name of the customer (e.g., Eric Poitras)<br>• The item to be purchased, identified through a barcode number (e.g., 1909238092)<br>• The cost of the item to be purchased by the customer (e.g., 8.50)<br>• The cash amount given by the customer (e.g., 10.00)<br>Processing<br>1. Extract the product id and company id numbers<br>2. Print the data stored in each variable in the corresponding format<br>Output<br>1. Customer (Last, First): {LAST} {FIRST}<br>2. Item Number (Product, Company): {PRODUCT} {COMPANY}<br>3. Item Cost: (COST}<br>4. Cast Amount: {CASH}<br>Examples<br>Input<br>Output<br>Eric Poitras<br>Customer (Last, First): Poitras Eric<br>1909238092<br>Item Number (Product, Companyl: 8092 19092<br>8.50<br>Item Cost: 8,50<br>Cash Amount: 10.00<br>Customer (Last, First): Siegel Angela<br>10.00<br>Angela Siegel<br>1909238095<br>Item Number (Product, Company): 8095 19092<br>7.5<br>Item Cost: 7.50<br>10.0<br>Cash Amount: 10.00<br>v Grading 2<br>Save<br>Ru<br>Problem2 Java<br>O New<br>I Full Screen<br>

Extracted text: Assignment 1/ Reset to Starter Code 2. Problem 2: Product ID Numbers Saved Problem Description In this second problem, you will build on and extend the program created while solving the first problem. You will be expected to isolate both the product id number and company number from the barcode number of the item to be purchased by the customer. Input You will receive (from the user) the following as input (in order): • The first and last name of the customer (e.g., Eric Poitras) • The item to be purchased, identified through a barcode number (e.g., 1909238092) • The cost of the item to be purchased by the customer (e.g., 8.50) • The cash amount given by the customer (e.g., 10.00) Processing 1. Extract the product id and company id numbers 2. Print the data stored in each variable in the corresponding format Output 1. Customer (Last, First): {LAST} {FIRST} 2. Item Number (Product, Company): {PRODUCT} {COMPANY} 3. Item Cost: (COST} 4. Cast Amount: {CASH} Examples Input Output Eric Poitras Customer (Last, First): Poitras Eric 1909238092 Item Number (Product, Companyl: 8092 19092 8.50 Item Cost: 8,50 Cash Amount: 10.00 Customer (Last, First): Siegel Angela 10.00 Angela Siegel 1909238095 Item Number (Product, Company): 8095 19092 7.5 Item Cost: 7.50 10.0 Cash Amount: 10.00 v Grading 2 Save Ru Problem2 Java O New I Full Screen

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here