If you are able to. Could you put the code in C++? Please and thank you.
//TO-DO: Fill in the Authors Name Here
//TO-DO: Fill in the current date here
//CS1428 Lab
//Lab 11
//Description: this program will track an inventory of items.
//****************This is the line of 80 characters in length*******************
//############Your code should not exceed the length of the above line##########
#include <iostream>
#include <iomanip>
using namespace std;
//TODO: Create your struct
int main()
{
const int SIZE = 3;
Item inventory[SIZE];
int totalItems = 0,
cheapestIndex = 0;
double totalValue = 0;
for(int i = 0; i < SIZE; i++)
{
//TODO: Prompt/read item information
//adds current item quanitity to total items
totalItems += inventory[i].quantity;
//TODO: Compute total price
//TODO: Find the index of the cheapest item
cout << endl << endl;
}
//TODO: output the total number of inventory items,
//the total cost of all the items, and the cheapest item.
return 0;
}