ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 19 May 2017 My Price 9.00

creativity and problem-solving skills

Unit 5: Programming Assignment

  • DueSunday by 11:59pm 
  • PointsNone

Core Learning Outcomes addressed in this assignment:

  • Demonstrate creativity and problem-solving skills. (9)
  • Write C++ programs that use proper style and documentation. (10)
  • Write C++ programs that uses a Stack and Linked List. (11)

Grading Information

This Lab Homework is worth 76 points and due by Sunday of unit 6 at 11:59pm (CST).

The purpose of this assignment is to assess if you can create a program that uses a Stack and a Linked List.

Directions Points
The file must be called unit5-6Prog.cpp 1
Create a structure called AddressNode
  1. The structure should contain a string for name and a pointer called AddressNode that points to “next” (the next element in the list).
10
Create classed called ABook.
  1. Create the Default Constructure. (public)
  2. Create the Deconstructor. (public)
  3. AddressNode* topPtr. (private) – Should be a pointer to the top of the list.
10
ABook Methods (each of these methods must be created in your program)
  1. ABook::ABook() – Default Constructor
  2. ABook::Insert(string NewItem) – Add item to the Linked List
  3. ABook::SortedInsert(string NewItem) – Add item to the Linked List (sorted)
  4. ABook::Remove(string& item) – Remove element from the top of the stack and return the item.
  5. ABook::~ABook() – Deconstructor. Removes all elements from the list.
40
Main Method
  1. Declare new List (Hint: ABook Book;)
  2. Declare new string newName.
  3. Declare new string nameToRemove.
  4. Call Book.Insert(“Precious”); - Insert Precious into list.
  5. Call Book.SortedInsert(“Ken”); - Insert Ken into listed (sorted)
  6. Call Book.SortedInsert(“Eileen”); - Insert Eileen into list (sorted)
  7. Call Book.SortedInsert(“Frank”); - Insert Frank into list (sorted)
  8. Use Book.Remove to remove each name one at a time and display to screen.
  9. Include: system("PAUSE"); after your output to pause the screen.

See example below.

10
Ensure you include ALL .cpp file(s) and any associated, student-defined .h (header) files required to make your program compile and run. The only files in the dropbox should be .cpp and .h files.  Do not turn in .zip, .exe, .rar, etc files. 2
Submit your page.

NOTE: This assignment cannot be turned in until the beginning of week 6.  Complete your activity and submit it by clicking on the Submit Assignment link at the top right of the screen under the Unit 6: Programming Assignment.

3

Total Possible Points

76
Example output of your program

Sorted List: 
Eileen
Frank
Ken
Precious

 

Unit 5: Discussion" aria-describedby="msf1-previous-desc" >Previous Quiz 5" aria-describedby="msf1-next-desc" >Next

Answers

(11)
Status NEW Posted 19 May 2017 06:05 AM My Price 9.00

-----------

Attachments

file 1495174474-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)