Question: Using C++ II. Working with vectors: Start up a new project for today's lab. If you are working on one of the classroom laptops, it's




Using C++
II. Working with vectors: Start up a new project for today's lab. If you are working on one of the classroom laptops, it's recommended that you save your project in the Desktop. Your source code must include the following header comment at the top of the file: //Lab Assignment #7: Vectors //Program Name: //Purpose of the program: //Authors: Your and your partner's names //Date: write today's date You are going to write a program that helps with the following problem: The leader of girl scout troop needs keep track of sales for the different types of girl scout cookies: Thin Mints, Tagalongs, Shortbread, Lemonades, Caramel deLites, Do-si-dos, Thanks-A Lot, Rah-Rah Raisins, Cranberry Citrus Crisps, Toffee-tastic, Trios, and Savannah Smiles (http://www.girlscouts.org/en/cookies/all-about-cookies/Meet-the-Cookies.html) Your program should use two parallel vectors to hold the data needed: a vector of strings that holds the cookies' names and a vectors of integers that holds the number of boxes sold during the past month for each cookie type. The program should prompt the user to enter the number of boxes sold for each type of cookie (do not accept negative values for the number of boxes sold). Once the sales data has been entered, the program should produce a report that displays: the total number of boxes sold this month, the name of the highest selling cookie, the name of the lowest selling cookie, the sales for each type of cookie, and the percentage of sales for each type of cookie
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
