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

Write a program to demonstrate the order of call of constructors and destructors in case of multiple inheritance where one or more base classes are virtual.


You have been tasked to create a new thread that will print the multiplication table of 10 and the Main

Thread will print the table of 15, they should be communication between these two threads, in such a

way that table of 10, is printed before multiplication table of 15, to maintain an ascending order.

Draw a flowchart that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows:

 

Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.

Premium service: $25.00 plus:

a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute.

b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute.

 



Given; Shopping ui ,Product class ,Size class ,Region class

You will create Cart class as a context class to get total price and add product.

To implement Strategy pattern, depending on the country of shipping, the relevant customs duty is charged and the shipping cost of Europe Shopping, America Shopping increases. Large products (XL-size) have an additional charge. Create AmericaShopping and EuropeShopping concrete class. In the USA, the duty tax is 1% and the base delivery fee is $15. In America, an additional tax different from the customs tax is applied and this tax is 0.75. Customs duty should be added to the item fee for each item. In Europe, the customs duty is 1.5% and the base delivery fee is £11. In America, $5 should be added to the shipping fee when each item is added. But if the added product size is XL, $10 should be added to the shipping fee. In Europe, this should only be done if the product size is XL. You are NOT allowed to alter Shopping, Product, Size, Region, and Currency classes.


Write a program that takes an integer minutes and converts it to seconds.


Program call National lottery dat give the winning lottery numbers. The program must use the rand function to produce six(6) random numbers between 0 & 49 & number must not repeat. Search the winning_numbers for any 2 array elements dat give the sum of >= 80 when added together, if the numbers >= 80 are more than 1 set, consider the biggest set to be the 1 chosen for draw. If the value of the sum of the 2 values is >= 80, print the message “You have won” & if the sum of the 2 numbers is < 80, print the message “You did not win”. a custom made function called amountDeterminant(double & receives a double argument), argument will be the winning number from the sum of 2 numbers. amountDeterminant. Winning numbers are in between 80 and 83, the won amount is R17M 84 & 86, amount is R2.5M, 87 & 89, amount is R16M

-use switch condition, appropriate pointer print "address the number" & for statement or initialiser list to the numbers into arrays


Output should include: 


  • This assignment uses 1 loop
  • It will require that you use escape characters like \n.
  • Please note that the sales tax in PA is 6%
  • Make sure that the program does not ask for price again once a user decides to checkout.



Amazon Shopping Cart

********************

What is your name? Bob

Welcome to Amazon, Bob!


What item would you like to purchase? Type Checkout to stop shopping.

Playstation

Please enter the item price:

$299.99

What item would you like to purchase? Type Checkout to stop shopping.

Airpods

Please enter the item price:

$199.99

What item would you like to purchase? Type Checkout to stop shopping.

hat

Please enter the item price:

$18.99

What item would you like to purchase? Type Checkout to stop shopping.

Checkout


Congratulations, Bob! 

Your total is: $518.97

Your total with sales tax is: $550.1082




Display the following Employee information using the variables.


Name

Age

Gender

Address

Contact No.

Email

Monthly Salary


Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.




Word Count

Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word's input order of appearance.


LATEST TUTORIALS
APPROVED BY CLIENTS