![cocomorillo35181](/avatars/15140.jpg)
cocomorillo35181
23.04.2021 •
Computers and Technology
Queues 4 Queue ADT You have already created and tested a queue class for strings. Now you have to convert it into templates, so it would work with any data type. To demonstrate the QueueADT class, create two queues: • the first queue contains the names of the students enrolled in CIS 220 the second queue contains the number of units each student is taking this quarter Write code in main to test these functions. Write a loop to enter an unknown number of names (assume one word strings). The loop stops when you enter #. As you are entering names, they are to be inserted into the first queue. To test the getLength function display the number of values in both queues, then write another loop to enter the number of units (double) into a parallel queue. Display the two queues in parallel. On the last two lines display the front element in the first queue and the rear element in the second queue respectively. Ex.: If the user enters Ann Tim Jamie Bob # for the first queue and 9 4.5 15 13.5 for the second queue, the output should be: Ann 9 Tim 4.5 Jamie 15 Bob 13.5 Ann 13.5 Ex.: If the user enters # the output should be: Empty queue! LAB ACTIVITY | *.0.1 v 4.6.1: Lab: Queues 4 Submission Instructions Downloadable files main.cpp Download Compile command g++ main.cpp -Wall -o a.out We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. main.cpp QueueADT.h Drag file here Drag file here Choose on hard drive. Choose on hard drive.
Solved
Show answers
More tips
- C Computers and Internet How to Choose an Uninterruptible Power Supply (UPS) for Your Computer: Expert Tips...
- F Food and Cooking The Health Benefits of Flaxseed oil...
- S Style and Beauty Why is Sugaring Better than Waxing for Hair Removal?...
- W Work and Career Where can you learn to be a flight attendant?...
- G Goods and services How to Properly Calculate the Power of Your Air Conditioner?...
- F Food and Cooking Effective Methods to Organize Videos in your iPad According to Content...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
Answers on questions: Computers and Technology
- H Health If the baby is born addicted to opioids how do they get the baby off it?...
- H History The term ceramics comes from which of the following? a. kera, one of the children of nyx(night), b. ceres, the goddess of argiculture, c. kratos, personification of strength,...
- C Chemistry What mass of Pblz would be produced by the reaction of 10.5 g of KI? 10.5 16l 0663x...
- P Physics Determine the acceleration of a raptor that reaches 25 m/s from rest in 6.5 s....
- E English The context of an unknown word might be described as all of the following, except affixes within the word paragraphs surrounding the word sentences surrounding the word...
Ответ:
2
Explanation:
trying to see if the cell phone is waterproof is a test :)
hope this helps <3