Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scenario ( Complete it in C + + , Make sure to include all files including . h files and every other file and make
Scenario Complete it in C Make sure to include all files including h files and every other file and make sure it is up to industry standard
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 itemtracking 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 time the store opens to the time it closes. They are interested in rearranging their produce section 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:
Prompt a user to input the item, or word, they wish to look for.
Return a numeric value for the frequency of the specific word.
Menu Option Two:
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 times that item appears in the input file, CSProjectThreeInputFile.txt For example, the file might read as follows:
Potatoes
Pumpkins
Onions
Menu Option Three:
Print the same frequency information for all the items in the form of a histogram.
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 CSProjectThreeInputFile.txt file. For example, if the file includes potatoes, pumpkins, and onions, then your textbased 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:
Exit the program.
Data File Creation:
Create a data file, with the naming convention frequency.dat, for backing up your accumulated data. The frequency.dat file should include every item represented by a word paired with the number of times 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 "File Input," and "File Output," in zyBooks.
Documentation:
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
Implementation 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 Microsoft 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 implementation plan must include at least one class with public and private sections. For assistance with classes, see sections "Using a Class," and "Defining a Class," in zyBooks.
For this assignment, we recommend using Maps section in zyBooks for implementation. Maps do require precise coding syntax. However, you can choose a different implementation option.
Apply industry standard best practices such as inline 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:
Inserting inline comments to denote your changes and briefly describe the functionality of the code
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 runtime and user errors for example, make sure you have option four on your menu so users can exit the program
What to Submit
To complete this project, you must submit the following:
GroceryTracking Program
Submit your completed work as a ZIP file, including all Visual Studio project files that are required to run the progra
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started