User interface menu using doubly linked lists

Assignment Help JAVA Programming
Reference no: EM13699459

Question: Suppose a user interface menu using doubly linked lists as main data structures.

The menu consists of a set of main menu items, each main menu item having associated a submenu consisting of a set of submenu items (see the instance in the attached file).

The set of main menu items should be implemented as a doubly linked list ofmNodes, each mNode representing a main menu item.

- Each mNode defines the main menu item name, two links to its mNode neighbors (the previous and next mNode) and a link to its first submenu node.

- Each submenu should be implemented as a doubly linked list of smNodes. Each smNode contains its name and two links to its smNode neighbors (the up and down smNode).

The data structures of a particular user interface menu are shown in the attached file.

Your task is to design, write and test a java program Menu.java executing the subsequent tasks:

a) Read a menu from an input file Menu.txt and build the linked lists data structures. Each file line contains a main menu item followed by its submenu items, all items being separated by the semicolon character.

I can't seem to get this to work for some reason could somebody give me a code to compare and test? Please keep it short and simple and no copy and paste or at least help me get started?

Reference no: EM13699459

Questions Cloud

What is the inflation rate : The bank is paying 11.27% compounded annually. The inflation is expected to be 10.28% per year. What is the inflation rate?
Write a program that reads data entered at run time : Write a program that reads data entered at run time consisting of positive integers and averages them -
You need to prepare a java program using class : You need to prepare a java program using class and method to calculate commission of sales person with fix salary of $75,000 and 25% sales commission. Program should prompt for amount of total sales
Write a program using a function and a switch statement : Write a program using a function and a switch statement. The user should be prompted to enter a number in main.
User interface menu using doubly linked lists : Each mNode defines the main menu item name, two links to its mNode neighbors (the previous and next mNode) and a link to its first submenu node.
How to plot each of these vector fields : You need to help on how to plot each of these vector fields - v=yi-xj and v=xi in MATLAB Programming.
Describe the applications functionality : Create an application for Koch's Cottages, a weekend getaway resort that rents cottages and boats to use on the local lake - Add labels as suitable to describe the application's functionality. Save the file as JCottageFrame.java.
Prepare a program to get a number from the user : How will you prepare a program to get a number from the user and then demonstrate the output as the result above?
Open this using a brute-force attack : What is the worst case number of combinations he must now test to try open this using a brute-force attack?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Determine the average amount of time people spend waiting

Determine the average amount of time people spend waiting for tables -  The fancy new French restaurant La Food is very popular for its authentic cuisine

  Write a program to find solution tocryparithmetic puzzle

Write a program (Crypta.java) that finds a solution to the cryparithmetic puzzle: TOO + TOO + TOO+ TOO = GOOD

  Fixing errors in a java program

You coded the following on line ten of the class MyApplet.java:

  Portable file system implement a portable file system with

implement a portable file system with java language. i do have some requirements.implement a portable file system pfs.

  Create java program to describe inheritance and polymorphism

Create a Java program based on the geometric shapes example described at the beginning of this lesson using Classes Square, Triangle, Rectangle, and Circ leto help describe inheritance and polymorphism.

  Demonstrate knowledge of design patterns

Your software should make use of the concepts outlined at the start of the assignment brief above. Think about where you can employ appropriate design patterns and other techniques.

  Develop a queue class

Print-out of the text file that contains your restaurant information and develop a Queue class. Hint: Check out the sample Queue java source files included with this assignment. Declare a class Party to hold one party.

  Create your listarray class

Create your ListArray class that is functionally similar to the formal Java ArrayList Utility class. here are the requirements

  What value is assigned to the variable phrase

Create a class State with five properties to hold the information about a single state and a method that calculates the density (people per square mile) of the state.

  Java application to permit user to enter ten numbers

Write down Java application which permits a user to enter 10 numbers (double precision) into the array and then sorts and displays numbers from lowest to highest.

  Which parts of the assignment were you not able to complete

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..

  Program create an application that uses a priorityqueue to

create an application that uses a quotpriorityqueuequot to perform the following ltbrgt ltbrgtuses the constructor that

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd