Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the book \"Data Structures and Other Objects C++\" Design and implement an

ID: 3599322 • Letter: U

Question

Using the book "Data Structures and Other Objects C++"
Design and implement and grocery store checkout system and generate a receipt with products in order of price using these various data types and container classes. Or any program that incoorporates these concepts into one.

On your own, design and create a program that implements the following course concepts (program point breakdown and textbook chapters listed): .Object Oriented Program Design (15 points) Chapter 2: Abstract Data Types and C++ Classes Chapter 14: Derived Classes and Inheritance o o Dynamic Memory (10 points) o Chapter 4: Pointers and Dynamic Arrays STL Containers (15 points) o Chapter 7: Stacks Chapter 8: Queues Chapter 9: Recursive Thinking Chapter 10: Trees o Recursion (10 points) Trees (15 points) Searching and Sorting Algorithms (10 points) o o o Chapter 12: Searching o Chapter 13: Sorting a) Begin with an idea of what the program will accomplish. Some ideas can be found in the textbook or you can create your own: game, simulation, data analysis, scheduling, etc. The creative idea should be complex enough to include required concepts yet realistic enough to represent a legitimate problem. Do not artificially create logic for the purpose of including course concepts. Use grammatically

Explanation / Answer

package com;

public class Groccery{

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

string itemName[100];

double itemCost[100] = {0.0};

  

string names = "";

double total = 0;

int numItems = 0;

cout << "Enter number of grocery items you will be entering: ";

cin >> numItems;

cout << " ";

for (int i = 1; i <= 100; i++)

{

cin >> itemName[i] >> itemCost[i];

}

cout << "Please enter the item names as one word only. Example: tomatoes " ;

cout << "Enter the cost as a decimal number. Example: 2.44 ";

for (int i = 0; i < 3; ++i)

{

cout << "Enter item: ";

cin >> itemName[i];

cout << "Enter the cost of the " << itemName[i] << " $";

cin >> itemCost[i];

}

cout << " ";

for (int i = 0; i < 3; ++i)

{

cout << itemName[i];

cout << ' ';

cout << itemCost[i];

cout << endl;

}

for (int i = 1; i <= 3; i++)

{

total += itemCost[i];

cout << total;

}

return 0;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote