Answer as per instructions :-
2. total = 0;
4. for ( int i = 0; i < 50; i++ )
6. if ( stock[i].description == "bath" && stock[i].color == "white" )
8. cout << stock[i].code <<endl;
9. total += stock[i].number;
11. cout << total <<endl;
A bathroom warehouse keeps the following information for the items in stock: description(a string, for example...
A bathroom warehouse keeps the following information for the items in stock: O description(a string, for example "bath”) codeto distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example "123456") color(a string, for example "white") numberin stock (an integer, for example 49) price(a floating point number, e.g. 349.95) 5.1 Write down the declaration for a structfor storing the information associated with one kind of item in stock. Give...
QUESTION 5 14 marks A bathroom warehouse keeps the following information for the items in stock: description(a string, for example "bath") codeto distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example "123456") color(a string, for example "white") numberin stock (an integer, for example 49) price(a floating point number, e.g. 349.95) 5.1 Write down the declaration for a struct for storing the information associated with one kind of...
A bathroom warehouse keeps the following information for the items in stock: description(a string, for example "bath") codeto distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example “123456") color(a string, for example "white") numberin stock (an integer, for example 49) price(a floating point number, e.g. 349.95) 5.1 Write down the declaration for a structfor storing the information associated with one kind of item in stock. Give the...
90% - e QUESTIONS T4 marks A bathroom warehouse keeps the following information for the items in stock: description a string. For example "bath) codete distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example "123456") colorfa string, for example "white") numberin stock (an integer, for example 49) O pricela floating point number, e 349.95) 5.1 Write down the dedaration for a struct for storing the information associated...
QUESTIONS 14 marks A bathroom warehouse keeps the following information for the items in stock: o description(a string, for example "bath") O code to distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example "123456") col or (a string, for example "white") Onunber in stock (an integer, for example 49) pri cela floating point number, e.g. 349.95) Write down the declaration for a struct for storing the information...
QUESTION 5 14 marks A bathroom warehouse keeps the following information for the items in stock: [description(a string, for example "bath") [codeto distinguish between items with the same description and color but of a different design (a string to store 6 digits, for example "123456") [color(a string, for example "white") [ numberin stock (an integer, for example 49) [price(a floating point number, e.g. 349.95) 5.1 Write down the declaration for a structfor storing the information associated with one kind of...
C++
Retailltem.h, Retailltem.cpp, Store.h, Store.cpp, and Driver.cpp. Description: Write a set of programs that holds data about items in a retail store. Your submission should include 5 files, Retailltem.b, Retailltem.cpp, Store, Store.cpp, and Driver.cpp 1. Retailltem class: The class should have three member variables • description (a string, represent the item's name. A name contains space) quantity (an int, represent how many current available) price (a double, item's price) Member Functions Constructor with default argument get Description getQuantity getPrice setDescription...
C++ Program - Arrays- Include the following header files in your program: string, iomanip, iostream Suggestion: code steps 1 thru 4 then test then add requirement 5, then test, then add 6, then test etc. Add comments to display assignment //step 1., //step 2. etc. This program is to have no programer created functions. Just do everything in main and make sure you comment each step. Create a program which has: 1. The following arrays created: a. an array...
Can someone please help me with this Python code? Thank you in advance, Zybooks keeps giving me errors. Thanks in advance!! This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class to contain a new attribute. (2 pts) item_description (string) - Set to "none" in default constructor Implement the following method for the ItemToPurchase class. print_item_description() - Prints item_description attribute for an ItemToPurchase object. Has an ItemToPurchase parameter. Ex. of...
In C++ General Description: For this project, you will write a program that keeps track of inventory for a camera store. The data is located in the file Inventory.txt on the S:\ drive. While the program is running, the information should be stored in a linked list. 1. The information for each item will be stored in a struct a. The definition will be in a separate file called item.h 2. The total inventory will be stored in a linked...