An array-based queue for bcs registration

Assignment Help C/C++ Programming
Reference no: EM13306370

The objective of this assignment is to use C++ to queue students into an array-based queue for BCS registration. Students have the option of taking five different courses, but each course can only hold 8 students.

Registration is first-come, first-served and therefore makes the queue data structure appropriate for this task.

Student data will be read in from students.txt (as per HW2) and processed into the queue.

Once all students are enqueued, your program will begin processing the queue.

As each student is dequeued, they are asked which BCS course they would like to sign up for. BCS courses are as follows:

1) BCS345 - Java
2) BCS350 - Web Database Development
3) BCS370 - Data Structures
4) BCS450 - Mobile Applications
5) BCS451 - Video Game Development

Each course listing can hold a maximum of 8 students and will be represented by five disctinctarray-based lists. As students are dequeued, they are placed on the appropriate Array-based list.

After any student is dequeued, present the user with an option to enqueue more students (one at a time). Keep in mind that your queue should not grow larger than the initial size of 25students.

Your program concludes when all students have been processed (dequeued), or no new students are enqueued (added to the queue), or all BCS course listings are full.

Reference no: EM13306370

Questions Cloud

Write a regular expression that selects lines : These letters may appear in uppercase as well. For this exercise you must surround your solution with double quotes .
Calculate the isentropic efficiency of the turbine : At steady state air enters a turbine at a pressure of 0.4 MPa and a temperature of 77C. As a result the turbine generates 80 kJ of work per kg of air flowing. The air exits the turbine at a pressure of 1 bar.
Evaluate the electric field between the plates : An air-filled capacitor consists of two parallel plates, each with an area of 7.60 cm2, separated by a distance of 1.70 mm. evaluate the electric field between the plates
Supply chain practices of two or more different companies : Compare the supply chain practices of two or more different companies in the same industry or similar industries.Should one firm adopt another's superior practices, or are their situations sufficiently different that each is already optimised?Why?
An array-based queue for bcs registration : objective of this assignment is to use C++ to queue studentsinto an array-based queue for BCS registration. Students have the option of taking five different courses, but each course can only hold 8 students.
What is the minimum energy necessary to compress vapor : What is the minimum energy necessary (in kJ) to compress 1.0 kg of saturated water vapor at 1 bar to a pressure of 60 bar in a perfectly insulated vessel
The team to buy-in to the vision : What activities can a leader use to help get the team to buy-in to the vision so that it becomes a shared vision?
Write a java program that asks the user to enter a distance : Write a Java program that asks the user to enter a distance in meters. The program will then present the following menu of selections.
Write a program to make mole take walk through the island : Many times the mole will drown. Use a counter to count the number of times it finds the bridges. Could anyone help me with this I am having trouble figuring out the loop to make the mole travel through the island.

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Data from the file grocery.dat

Read the data from the file Grocery.dat and assign values to the 10  GroceryItem  objects. Next display these items to allow a customer to select grocery items from the list and indicate the quantity of that item he or she would like to order. When t..

  Design, write, and test a program

Design, write, and test a program that represents some of the aspects of a student

  This program will simulate the game of hearts

This program will simulate the game of Hearts, which is a four-player trick-taking game using any ordinary deck of playing cards. Each player is dealt thirteen cards. Whoever is dealt the Two of Clubs must lead it to the first trick. Each person p..

  Write a program that find the average time spent programming

Write a program that finds the average time spent programming by a student each day over a 3 day period.

  The definition for a printallplayers() function

Add the Prototype, a call and the definition for a printAllPlayers() function that prints to STDOUT (using cout) each players name and all of their at-bat stats. Only print out the values of the stats array up to timesAtBat.

  Write a c++ program that would take two 3x3 matrix

Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,

  Using array subscript notation

Using array subscript notation, base/offset notation with the array name as the pointer, array notation with  vPtr , and pointer/offset notation with  vPtr , add 3 to the value in the 3 rd element and display that number. (Do not modify the value in ..

  Computer programming using c language lab

Computer programming using c language lab

  Program that incorporates these two functions

Write the program that incorporates these two functions, as described. You will notice that the two functions have very similar statements, so you are doing some repetitive C++ code.

  Menu with options to enter student information

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

  Enter the temperature at noon of each of the five days

Write a program that allows each employee to enter the temperature at noon of each of the five days and displays the highest, lowest, and average (mean) temps.

  50 element array of integers with random numbers

write a java code to instantiate and initialize a 50 element array of integers with random numbers in the range of 45 through 256 inclusive.

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