diff_months: 28

Build An Item-Tracking Program For The Corner Grocer Assignment

Download Solution Now
Added on: 2023-06-20 10:54:43
Order Code: clt317162
Question Task Id: 0
  • Country :

    Australia

Competency

In this project, you will demonstrate your mastery of the following competencies: Write professional, well-documented, and readable code Utilize various programming languages to develop secure, efficient code

Scenario

You are doing a fantastic job at Chada Tech in your new role as a junior developer, and you exceeded expectations in your last assignment for Airgead Banking. Since your team is impressed with your work, they have given you another, more complex assignment.

Your task is to build an item-tracking program for the Corner Grocer, which should incorporate all of their requested functionality.

The Corner Grocer needs a program that analyzes the text records they generate throughout the day. These records list items purchased in chronological order from the !me the store opens to the !me it closes. They are interested in rearranging their produce sec!on and need to know how often items are purchased so they can create the most effective layout for their customers.

Directions

As you work, check your codes syntax to ensure that your code will run. Note that when you compile your code, you will be able to tell if this is successful overall because it will produce an error message for any issues regarding syntax. Some common syntax errors are missing a semicolon, calling a function that does not exist, not closing an open bracket, or using double quotes and not closing them in a string, among others.

The program that the Corner Grocer is asking you to create should address the following functional requirements:

Menu Option One:

  1. Prompt a user to input the item, or word, they wish to look for.
  2. Return a numeric value for the frequency of the specific word.

Menu Option Two:

  1. Print the list with numbers that represent the frequency of all items purchased. The screen output should include every item (represented by a word) paired with the number of !mes that item appears in the input file, CS210_Project_Three_Input_File.txt. For example, the file might read as follows:
    Potatoes 4
    Pumpkins 5
    Onions 3

Menu Option Three:

  1. Print the same frequency information for all the items in the form of a histogram.
  2. Then print the name, followed by asterisks or another special character to represent the numeric amount.

The number of asterisks should equal the frequency read from the CS210_Project_Three_Input_File.txt file. For example, if the file includes 4 potatoes, 5 pumpkins, and 3 onions, then your text-based histogram may appear as represented below.

However, you can alter the appearance or color of the histogram in any way you choose:
Potatoes ****
Pumpkins *****
Onions ***

Menu Option Four:

  1. Exit the program.

Data File Creation:

Create a data file, with the naming convention frequency.dat, for backing up your accumulated data. The frequency.data file should include every item (represented by a word) paired with the number of !mes that item appears in the input file.

This output file is created in the beginning of the program without user intervention and is for backup purposes. For assistance with writing files, see sections 7.1, "File Input," and 7.3, "File Output," in zyBooks.

Documenta!on:

Describe your codes design and functionality. Include screenshots to support your description. As you complete this work, your manager at Chada Tech is interested to see your thought process regarding how you use C++.

Implementa!on Guidelines

Note: We recommend using the Virtual Lab to complete this assignment. However, if you choose to complete this assignment locally, please use the version of Microso# Visual Studio outlined in the syllabus. The SNHU IT Service Desk will be unable to support concerns related to local assignments.

  • For this assignment, your implementa!on plan must include at least one class with public and private sections. For assistance with classes, see sec!ons 6.2, "Using a Class," and 6.3, "Defining a Class," in zyBooks.
  • For this assignment, we recommend using Maps (sec!on 11.4 in zyBooks) for implementa!on. Maps do require precise coding syntax. However, you can choose a different implementa!on option.

Apply industry standard best practices such as in-line comments and appropriate naming conventions to enhance readability and maintainability. Remember that you must demonstrate industry standard best practices in all your code to ensure clarity, consistency, and efficiency. This includes the following:

  1. Inserting in-line comments to denote your changes and briefly describe the functionality of the code
  2. Using appropriate variable, parameter, and other naming conventions throughout your code

Optional Challenge: User Input Validation

Validating user input is a coding best practice. For an additional challenge with this assignment, use input validation and error handling to anticipate, detect, and respond to run-!me and user errors (for example, make sure you have op!on four on your menu so users can exit the program).

What to Submit

To complete this project, you must submit the following:

Grocery-Tracking Program

Submit your completed work as a ZIP file, including all Visual Studio project files that are required to run the program.

Reference the CS Visual Studio Export Tutorial, linked in the Supporting Materials sec!on, for guidance on how to

Documenta!on

Submit your completed documenta!on of your codes design and functionality as a one-page Microsoft Word document with 12-point Times New Roman font, double spacing, and one-inch margins. Include screenshots to support your description. If relevant, any sources should be cited according to APA style.

Supporting Materials

The following resource(s) may help support your work on the project:

Resource: CS210_Project_Three_Input_File

Use this TXT input file to test your code as you work. It contains a list of different produce items that were purchased on a sample day, beginning in the morning when the Corner Grocer opened and con!nuing un!l the evening when the store closed.

Tutorial: CS Visual Studio Export Tutorial

This guide will walk you through how to download all of your work from Visual Studio as a ZIP folder.

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects.

Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Katthy Wills
  • Posted on : June 20th, 2023
  • Downloads : 0
  • Views : 334

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more