using vector – 20210626l

Goal We want to make a Class Roster program which saves the today’s attendance records of CS101 students. To allow a dynamic roster, we will use vector types for names of students and their attendance records. For the names of students, we use names variable of vector type. vector names; To record the today’s attendance records, we use attedances of vector type. vector attendances; Here we use the character P as the presence, L as the lateness, A as the absence, and E as the excuse. Note: names and attendances are related by the index. For example, if So the name “Henry” and attendance ‘L’ are relate by the index 3. Of course, the index started with 0. Therefore the sizes of names and attendances should be exactly same. Question
In this project, we will make With this main function, cout<<"Attendance Roster"<>choice;
if(choice==”a”) add(names, attendances); else if(choice==”b”) report(attendances); else if(choice==”c”) clear(names, attendances); }while(choice != “d”);
cout<<"Bye."<& names, vector& attendances) which adds new names and attendance records of students. For a simpilicity, we only type the last name without any space. So we can still use cin.
We assume that a user types A, L, E and P properly. Please, check the following screenshot. count
Make a int count(const vector& attendances, char att) which returns the number of attendance records for att. att will be one of A,L,E,P where For example, cout<& attendances) which returns the report uing above count function. For example, if , the following code will print the these results. The number of absent students is 2. The number of late students is 0. The number of excused students is 2. The number of present students is 1. If names and attendances are empty like vector names; vector attendances; , the following code will print the this result. There is no student. clear Make a void clear(vector& names, vector& attendances) which makes names and attendances empty. To make them empty, you may use clear() member function of the vector class. vector v {1,2};// v={1,2} v.clear(); // now v={} empty and size=0
Ref of clear(): http://www.cplusplus.com/reference/vector/vector/c… For example, if we run the code below, , it will show All of records were cleared. Then the following code will print the this result since they are empty. There is no student. Requirements: clear enough | _____________________Order any type of Service We Provide We are the best assignment service that can satisfy student’s demands in different scientific fields. We perform tasks of any kind. Our specialists provide diverse custom assignment writing services to students from all over the world every day. You can contact us for assistance with: • Essays of any type (application, scholarship, argumentative, personal, informative, persuasive, compare and contrast, narrative, analytical, cause and effect, critical, process, descriptive, expository essays); • Homework, • Assignments, • Reviews of all types (for a book, an article, or a film), • Reports, • Annotated bibliography, • Projects, • Thesis, • Term papers, • Presentations, • Lab works, • Research papers, • Speeches, • Critical thinking, • Capstone projects; • plan; • Coursework’s; • Dissertations. The list is far from complete! Representatives of our student assignment service are connoisseurs of the peculiarities of presentation in regards to academics.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 929 473-0077

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 20% with the discount code GURUH