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

  Contacts class that contains an array

Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number.

  Write a program that simulates an airplane race

Program will use a function that has the following parameters: time and acceleration and function will pass back two data items: speed and distance.

  Write a menu-driven c program

Write a menu-driven C program with appropriate functions that allows the user to fill an array of 50 integers with random numbers on the range 1...999, inclusive, sort it, and then find search it to determine if a given random number was generated..

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

  Write a program in c of fibonacci series

Write a program in c of fibonaci series with and without using fibo func, both

  The fibonacci sequence

In the novel "The DaVinci Code", a scrambled version 13, 3, 2, 21, 1, 1, 8, 5 of the first eight Fibonacci numbers appear as one of the clues left by murdered museum curator Jacques Sauniere. In this assignment, we will do something related to t..

  Write a loop that fills a vector

Write a loop that fills a vector V with ten  different  random numbers between 1 and 100. output must actually display the random numbers to get credit.

  Create constructor function which takes no inputs

You must have the constructor function which takes no inputs and randomly generates the 5 letter string for name and random integers from 20 to 40 for both age and class size.

  Write a c++ program to first find ''n'' fibonacci numbers

Write a C++ program to first find 'N' Fibonacci numbers and then display only the "even" Fibonacci numbers in "descending order" as output.

  Write a program to calculate a person''s net pay

Write a program to calculate a person's net pay after subtracting federal income tax.The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents.

  8-bit or 16-bit mode, and the prescaling ratio

8-bit or 16-bit mode, and the prescaling ratio. You can assume XTAL = 10M Hz or at the frequency you specify.

  That reads ten numbers from input and prints

Write a C program that reads ten numbers from input and prints them in reverse order. We assume that the data consists of integers. The program should conform to the following format

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