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 20 May 2017 My Price 8.00

SpecifcatonParT 1Design and implement a classMenu

Please see the attached for some help needed. Let me know if you have any questions.

 

1. SpecifcatonParT 1Design and implement a classMenuwhich uses a doubly linked lists as main data structure. A Menuobject consists of a set of menu items, organized as a circular doubly linked list. Each menu item hasan associated name (string) and is represented as a list node (see an example of aMenuobjectbelow).The class Menu should deFne a default constructor which builds an empty menu and the followingmethods:addMenuItem for adding a new menu item at the end of the list: public booleanaddMenuItem(String newItem)insertMenuItemBA, for inser±ng a new menu item before or a²er an exis±ng menu item. Ifparameter ba is true the newItem will be inserted before the exis±ngItem and if ba is false thenewItem will be inserted a²er the exis±ngItem. public boolean insertMenuItemBA(StringnewItem, String exis±ngItem, boolean ba)deleteMenuItem, deletes the menu item speciFed by name (supplied as method parameter)toString, traverses the linked lists data structure and generates the string representa±on of amenu object and the total number of menu items.If necessary, addi±onally methods may be deFned for the classMenu. Give reasons for the newadded methods. The classMenu.javashould compile without errors.ParT 2Write a driver program±esTMenu.javato test the Menu class. In the driver program, do thefollowing tasks:a) Read menu items from the input Fle Menu.txt and build a menu object which includes thespeciFed items. Each menu name in the Fle is separated by the semicolon character. The menushould be built node by node with the values taken from the input Fle. A²er reading the Fle andbuilding the menu, display the menu using the toString method. Below is an example of the contentof the input Fle Menu.txt: ³ile;New;Open;Save;Close;b) Ask the user to enter from the keyboard a new menu item to be inserted into the exis±ng menu.The new menu item should be inserted before or a²er an exis±ng menu item which will be alsospeciFed from the keyboard. Display the new menu using the toString method.c) Delete a menu item speciFed by the user from the keyboard then display the menu using thetoString method.

Attachments:

Answers

(11)
Status NEW Posted 20 May 2017 10:05 AM My Price 8.00

-----------

Attachments

file 1495277379-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)