Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) Create a data structure containing a list of degrees available (i.e. PhD, MS,

ID: 3552325 • Letter: 1

Question

1)      Create a data structure containing a list of degrees available (i.e. PhD, MS, MA, BS, etc) and a price for each degree.

2)      Create a form that will prompt the user for their name, a credit card number, a check box indicating whether the credit card is visa or mastercard, and a drop-down list of the degrees offered (populated from the data created in step 1).

3)      Upon submission of the form, the code will validate that all of the requested data has been provided. In the event any of the data is missing, the form will be redisplayed with a message indicating what data was missing without losing any previously provided data (sticky form).

4)      If all the requested data has been provided, the webpage will display a confirmation message indicating the user

Explanation / Answer

In computer science, a data structure is a particular way of storing and organizingdata in a computer so that it can be usedefficiently.

Different kinds of data structures are suited to different kinds of applications, and some are highly specialized to specific tasks. For example, B-trees are particularly well-suited for implementation of databases, whilecompiler implementations usually use hash tables to look up identifiers.

Data structures provide a means to manage large amounts of data efficiently, such as large databases and internet indexing services. Usually, efficient data structures are a key to designing efficient algorithms. Some formal design methods and programming languages emphasize data structures, rather than algorithms, as the key organizing factor in software design. Storing and retrieving can be carried out on data stored in both main memory and in secondary memory.