C ++ – Lab

Hello,I need someone that can do this lab for me. I am attaching the different text files needed in order to complete this lab. I t must be done by 10:59 pm central time.(Language = C++)Thank you


Don't use plagiarized sources. Get Your Custom Essay on
C ++ – Lab
Just from $13/Page
Order Essay


Unformatted Attachment Preview

Ice cream sandwich
Kit Kat
The quick brown fox jumps over the lazy dog.
I before E except after C
[B] -> [C] -> [D] -> [F] -> [G] -> [H] -> [J] -> [K] -> [L] -> [M] -> [N] -> [P] ->
[Q] -> [R] -> [S] -> [T] -> [V] -> [W] -> [X] -> [Y] -> [Z] -> 0
[b] -> [c] -> [d] -> [f] -> [g] -> [h] -> [j] -> [k] -> [l] -> [m] -> [n] -> [p] ->
[q] -> [r] -> [s] -> [t] -> [v] -> [w] -> [x] -> [y] -> [z] -> 0
[B] -> [g] -> [l] -> 0
[C] -> [p] -> [c] -> [k] -> 0
[D] -> [n] -> [t] -> 0
[c] -> [l] -> [r] -> 0
[F] -> [r] -> [y] -> 0
[G] -> [n] -> [g] -> [r] -> [b] -> [r] -> [d] -> 0
[H] -> [n] -> [y] -> [c] -> [m] -> [b] -> 0
[c] -> [ ] -> [c] -> [r] -> [m] -> [ ] -> [s] -> [n] -> [d] -> [w] -> [c] -> [h] ->
[J] -> [l] -> [l] -> [y] -> [b] -> [n] -> 0
[K] -> [t] -> [ ] -> [K] -> [t] -> 0
[T] -> [h] -> [ ] -> [q] -> [c] -> [k] -> [ ] -> [b] -> [r] -> [w] -> [n] -> [ ] ->
[f] -> [x] -> [ ] -> [j] -> [m] -> [p] -> [s] -> [ ] -> [v] -> [r] -> [ ] -> [t] ->
[h] -> [ ] -> [l] -> [z] -> [y] -> [ ] -> [d] -> [g] -> [.] -> 0
[ ] -> [b] -> [f] -> [r] -> [ ] -> [ ] -> [x] -> [c] -> [p] -> [t] -> [ ] -> [f] ->
[t] -> [r] -> [ ] -> [C] -> [ ] -> 0
[B] -> [B] -> [B] -> [B] -> [B] -> [B] -> [B] -> [B] -> [B] -> [B] -> [b] -> [b] ->
[b] -> [b] -> [b] -> [b] -> [b] -> [b] -> [b] -> [b] -> 0
[C] -> [C] -> [C] -> [C] -> [C] -> [C] -> [C] -> [C] -> [C] -> [C] -> [c] -> [c] ->
[c] -> [c] -> [c] -> [c] -> [c] -> [c] -> [c] -> [c] -> 0
Lab #12
Linked lists are cool data structures that offer several significant benefits to arrays. Since they grow as
they’re needed and don’t need to be allocated ahead of time, they’re really efficient in size and speed of
creating and adding items to it. However, since you have to iterate through them from the start to get
any data inside, they are slower to search through.
In lecture, you have been learning how to create one from scratch. This lab will introduce you to the
Standard Template Library’s (STL) list class, which implements the linked list for you.
STL Containers
You have learned about vectors and maps in the past. These are two of the container classes available to
you built into C++. More types are deques (doubly-ended queues, or basically a dynamic array), lists (a
doubly-ended linked list), and a forward_list (singly-ended linked list). Just like with vectors and maps,
lists have many of the same function names that the previous containers have:
returns the pointer to the beginning of the container
empties a container
returns a Boolean if the container is empty
returns the pointer past the end of the container
removes an element at a given position (passed in by an iterator)
removes/pops an element from the back of the container
removes/pops an element from the front of the container
inserts/pushes an element into the back of the container
push_front() inserts/pushes an element into the front of the container
returns an integer of the number of elements in the container
and so on. To get the functionality, make sure you #include at the beginning.
Iterators also work the same:
Strings also are containers of characters. They can be used exactly like the types above, and they also
include built-in iterators.
What You Will Do
This program should create linked lists from strings, and then remove all of the vowels.
1) Create the file Lab12.cpp.
2) Write a function called fillList that takes parameters for a list and the string to add. The function
should iterate through the string and add each to the list. (So a string “ABC” should be inserted
into a list which will consist of elements [A]->[B]->[C]). Test this function before continuing.
3) Write a function called printList which takes in a list and an ostream (output stream). It should
iterate through a list and print out each element, showing the order they are connected. (From
step 2 above, it should print out like “[A] -> [B] -> [C] -> 0”, where 0 is the NULL
pointer at the end.) Test this function before continuing.
4) Write a function called removeCharacter that takes parameters for the list and a character to
move. It should iterate through the list, moving each instance of the character. Think about what
happens when you remove characters in a list, and what different types of conditions might
occur after doing this. Test this function before continuing.
Page 1/2
5) In main, read in input.txt, one line at a time. It should stop when it gets to the line “END”. Call
fillList to fill the list with the line from the file. After that, make calls to removeCharacter to
remove all of the vowels. Then, call printList to print it out to a file called output.txt.
If it helps, draw out some sample lists, and as you trace through your code, think through what the lists
look like at any given time. As you step through your program, does your list look like you’re expecting it
Grading and Turning In
Turn in your program before the end of the lab. Upload only Lab12.cpp unzipped. Grading will be
performed using an automated grading program with a different input file (still input.txt) and will be
compared to an output file (output.txt). The lab instructor will still manually look at your code for the
other grading criteria (functional composition, style, etc.)
Page 2/2

Purchase answer to see full

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.


Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.


Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.


Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.


Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Order your essay today and save 15% with the discount code DISCOUNT15