Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Let P = {2,3,4,5,6}, Q = {1, 3, 5, g} and R = {1, 2, 4, h}Find P – Q, Q – P and P Δ 


Name Surname Score 1. Sam Williams 60 2. John Phoenix 85 3. Simon Johnson 75 4. Sarah Khosa 81 5. Mat Jackson 38 6. Nick Roberts 26 7. Isaac Wayne 74 8. Anna Mishima 34 9. Daniel Rose 64 10. Aaron Black 83 11. Jack Mohamed 27 12. Kathrine Bruckner 42 Create a C++ program that has 3 Stacks. Insert, into the first stack, all the data above (which is the data of student’s names, surnames and the marks they obtain in a particular assessment) Display the content of the stack on the screen (console) Then, remove all the students whose surname starts with the alphabets ‘R’, ‘J’ and ‘M’, from the first stack and insert them into the second Stack. Display the contents of Stack1 and Stack2.

3b. Sort all the stacks in this order: Stack1 in alphabetic order by name Stack2 in alphabetic order by Surname Stack3 in Numeric order (descending) by marks obtained 


Sort all the stacks in this order: Stack1 in alphabetic order by name Stack2 in alphabetic order by Surname Stack3 in Numeric order (descending) by marks obtained 


Sometimes we want some part of our code to be executed more than once. We can repeat the code in our program. For example, we need to display our name for a hundred or more times it is not practical to write the same code. Which concept will be used? Explain it with the help of suitable example

 [5 marks]


WAP to calculate the gross salary for the conditions given below. Basic salary is inputted 

from the user. 





Write a program to perform list operations using a menu

based program. Try to take 2 arrays of type int and char.

Int should store roll no's and char should store grades.


List Menu


1. Insert


2. Delete


3. Update

4. Search


5. Exit


How to create a program that generates a reverse triangle bearing the numbers of the multiplication table on the user's encoded number. + The user will input any positive whole number that should be greater than 1 and not be greater than 40. If the input is outside the range display "INVALID". 


sample input: 5

Sample Output :

1.2.3.4.5

2.4.6.8

3.6.9

4.8

5


Sample Input :10

Sample Output :

01.02.03.04.05.06.07.08.09.10

02.04.06.08.10.12.14.16.18

03.06.09.12.15.18.21.24

04.08.12.16.20.24.28

05.10.15.20.25.30

06.12.18.24.30

07.14.21.28

08.16.24

09.18

10


Your task is to implement a very simple HTTP server. Your server should respond to the HEAD and GET verbs as described below and for all other verbs reply with a 501 error message, and an empty body. You should only allow requests for the root document (/) all other documents should report 404 errors. Your root document should consist of a random number of lines of the nursery rhyme "Hickory Dickory Dock", the official lyrics are listed below. You should serve the document as plain text (to keep things simple). You reply must include a correct Content-Type header of text/plain and a content-Length header that reflects the size of the data that you are sending. When generating random numbers the rand() and srand() methods are sufficient, but be careful where you seed the random number generator. You may use the last 4 digits of your student number as the port to listen on

This test requires you to implement the task given below as a C++ program.

This program is for a car rental agency. Your program will have to compute the total cost of a rental. This agency has three types of cars, and the rates per day for rental are as follows:

Compact Car - Rental Price =$40.00

Mid Size Car-Rental Price=$55.00

Luxury Car-Rental Price=$70.00

All car rentals require a purchase of comprehensive insurance costing $15.00 per day and an initial one time bond payment of $100.00. Create an application that will ask for the type of car and the duration of car rental to calculate the cost of car rental.

You have to apply all the programming constructs that you have learned so far, as needed, to complete this exercise. (decisions, loops, input validation)

Sample Run 1:

Enter type of car: 2

Enter days of rental: 5

Cost of rental for 5 days is $ 450.00


This test requires you to implement the task given below as a C++ program.

This program is for a car rental agency. Your program will have to compute the total cost of a rental. This agency has three types of cars, and the rates per day for rental are as follows:

All car rentals require a purchase of comprehensive insurance costing $15.00 per day and an initial one time bond payment of $100.00. Create an application that will ask for the type of car and the duration of car rental to calculate the cost of car rental.

You have to apply all the programming constructs that you have learned so far, as needed, to complete this exercise. (decisions, loops, input validation)

Sample Run 1:

Enter type of car: 2

Enter days of rental: 5

Cost of rental for 5 days is $ 450.00


LATEST TUTORIALS
APPROVED BY CLIENTS