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

  The drink machine should have a supply

When the applet starts, the drink machine should have a supply of 20 of each of the drinks. The applet should have a text field where the user can enter the amount of money he or she is giving the machine. The user can then click on a button to selec..

  Create an employee class.

Create an Employee class. Items to include as data members are employee number, name, date of hire, job description, department, and monthly salary.

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Demonstrates conditions under which the compareto() method

Write an application that demonstrates conditions under which the compareTo() method retrun a positive number, a negative number, and a zero when used to compare two Strings, Save the file as CompareStringValues.java. Lab Assignment

  Write a java program

To become familiar with how infix expressions can be converted to postfix expressions.

  The program randomly generates the quiz question one by

the program randomly generates the quiz question one by one from a set of available questions on general knowledge

  Calculate the area and circumference of a circle

Write a program to move and calculate the area and circumference of a circle. - Calculate function, which passes the radius by value, and get back the area (PI*radius*radius) and circumference (2*PI*radius) of the circle through reference

  Determine the purpose of using javascriptr on a website

write a 200- to 300-word short-answer response to the followingwhat is the purpose of using javascriptr on a website?

  Write a java servlet to validate the data

Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Point class that represents points on an x, y axis

Write a Point class that represents points on an x, y axis. The data members should be doubles x and y plus an int value called count that represents the number of points currently instantiated

  Implement a portable file system

Implement a Portable File System and allocate a file. Move files from the Windows file system into your file

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