Ask Question, Ask an Expert


Ask Programming Language Expert

Data Structure and Methods:

• Build an array structure to accomodate at least 10 elements.  Provide routines for  following:
• An initializer.
• A routine to populate (add an element) to the first accessible slot,
• A routine to delete (remove an element) from a selected slot,
• A routine to display the number of the filled slots,
• A routine to show the maximum number of slots,
• A routine to query the contents of a slot,
• A routine to update the information in a slot,
• Test for full and empty conditions of  Array.


prepare (a) program(s) which tests each of the methods employed to manipulate the data structure:

• Construction.
• Populate the accessible slots till the structure is full, then attempt to add one more.
• Query the contents of an all slots.
• Remove the contents of a given slot.
• Update the contents of a slot.
• Deplete the structure till all slots are empty, and then attempt to delete another.

When displaying the full structure use a loop which shows 1 slot and its content, at a time.
Your program must employ a simple menu that repeatedly prompts the user to perform the functions.

ex: Enter an Request Type

1.To add elements in to the Array (till ­1 or null)
2 To remove an element out of the Array
3. To display the contents of the entire Array
4. To query the count of occupied slots
5. To query the maximum number of slots
6. To update an Array slot with a new information value
7. To find the location of a given value
8. Exit

Show all inputs, outputs, explanation of return codes, and informational messages.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91226

Have any Question? 

Related Questions in Programming Language

The given machine description will provide the basis for

The given machine description will provide the basis for this assignment. You will create a virtual machine/operating system for the machine described below that will accept programs in the target machine language. The d ...


Computer Science Program- Write all of the following: main program: Call a function to open an input file. Call a function to read 3 integers in from the input file. Call a function that will find 3 normalized doubles, g ...

Object oriented system analysis and design1non-functional

Object Oriented System Analysis and Design 1. Non-Functional Requirements a) Analysis of NFRs Analyse the Case Study documents and determine the non-functional requirements (NFRs) or system quality attributes necessary t ...

The briefyour small development team of ideally three

The Brief Your small development team of (ideally) three people has been asked to implement and test the Human Resource Information System desktop application. Your software product will be a database- backed desktop app ...

1 loops the greatest and the least- write a program with a

1. Loops: The greatest and the least- Write a program with a loop that lets the user to enter a series of integers. The use should enter -99 to signal the end of the series. After all the numbers have been entered, the p ...

Programming assignment- implement a udp client and udp

PROGRAMMING ASSIGNMENT- Implement a UDP client and UDP server that support simple timeout-based retransmission with AIMD congestion control: -The client should send as many packets as are in its CURWIN (current window) a ...

1 tic tac toein a tic tac toe game two players x and o take

1 TIC TAC TOE In a Tic Tac Toe game two players, X and O, take turns to mark the spaces in a 3X3 grid. The winner will be the player who first succeeds in placing three of his/her marks in a horizontal, vertical, or diag ...

Your problem is as followswrite a program that will ask the

Your problem is as follows: Write a program that will ask the user to enter 4 quiz scores for 3 students.  You will need to fine the lowest quiz grade and drop it out when you calculate the average. You will need to disp ...

Purposethe purpose of this assignment is to practice using

Purpose: The purpose of this assignment is to practice using loops, selections, and other basic features of Java in order to solve a real-world problem. Program Description: The Jeddah Broker Company is one of the compan ...

This assignment introduces you to the perl language and cgi

This assignment introduces you to the Perl language and CGI programming. You will use your scripting and html skills to build a Perl program that will gather user input to then generate a personal webpage. This program w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate