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

  Two for loops that will calculate the sum of all even number

Write a program using two for loops that will calculate the sum of all even numbers between 2 and 100,

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

  Given a character code to indicate the type of customer

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..

  C program to mips program

Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0, $s1, $s2, $s3 already. The base address of arrays A and B are in registers $s4 and $s5, respectively. (30

  Write a c function to convert gallons-quarts-pints and cups

Write a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups.

  Write a c program which takes a string from command line

Write a c program which takes a string from command line with mainfunction has no parameter and convert the string in upperca

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

  Brownian motion is a physical phenomenon

Brownian motion is a physical phenomenon which can be observed, for instance, when a small particle is immersed in a liquid.

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Compute for the monthly billing of their customers

An electric company wants to compute for the monthly billing of their customers. the company charges P2.50 per kwh and utility tax of 3% of the current bill shall be added.

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  Write a c++ program that prompts the user for a double

Write a C++ program that prompts the user for a double that is either positive or negative.

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