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

F&W Sdn Bhd is a packaging company. Write a program in C++ to help the company  determines how many boxes that are needed for an item. For example, a box of shampoo can  have 30 bottles in it. So, 95 bottles of shampoo need to be packed into 3 boxes and 5 are left.  The number of each item and the number of an item that can be packed in a box are received  as inputs. Display the number of boxes needed and the number of leftover items. 




Write a program that prompts the user to input a string and outputs the string in uppercase letters. (Use a character


array to store the string.)



(Must be implemented using dynamic array)

Write a C++ program to calculate the bill for Malaysia SuperBand's customers. It starts by asking for the number of customers. For each customer it will then ask for their name, their package type and the amount of data used. It then displays the amount tobe paid by thecustomer. The program will call thefunction in (a) toperform related tasks. At the end, the program will display the total amount to be collected from all customers, the number of customers for each package type and the name of the customer who has to pay the highest amount.


Create another class employee2 from class EMPLOYEE given below. This new class

should add a type double data item called compensation, and also a string type called time to

indicate whether the employee is paid hourly, weekly, or monthly, with member functions input

and display. For simplicity you can change the manager, scientist, and laborer classes so they are

derived from employee2 and employee classes.

#include<iostream>

using namespace std;

class EMPLOYEE

{

protected:

string name;

unsigned long number;

public:

void getdata();

void putdata();

};


// Use c++ language and must use Standard Library List ( STL ) in your program

Please write class for hash table using chaining and it must contain the following  functions:
  • Please insert an element in table
  • Please search an element in table
  • Please delete an element in table
  • Please return no of the chains currently present
  • Please display the hash table of the class
  • Please write the main function to test the class created.

// Must use Standard Library List ( STL ) in your program

 Use C++ programming language to write code for binary search trees:
 Please create a binary search tree by inserting user entered values.
 Please search an element.
 Please delete a leaf node or a root node having any number of children.
 Please find the depth or height of the node.
 Please check whether the node is a leaf node or not.
 Please check whether the node is a main root node or not.
 Please print a binary search tree using pre-order traversal.

Design an algorithm to read a value from the keyboard which represents the category of a taxpayer. Allowed categories are employed, student, and pensioners – persons over 65yrs; any other category should result in an error message being displayed. If the user enters employed, then they should be asked to be indicated if they are being paid minimum wage or more than minimum wage. For students, only persons older than 18 pay taxes.

 For each taxpayer accepted, income tax payable is to be calculated and displayed. Minimum wage earners pay a flat tax amount of $500 per week, students pay 15% of their weekly gross, non-minimum wage earners  pay 25% of their weekly gross and pensioners pay 10% of their weekly gross. The program should prompt the user for their weekly gross salary and calculate and display the tax, along with the gross.


Draw the flowchart and write the pseudocode for the algorithm. Implement the algorithm in C++.


Design an algorithm to read a value from the keyboard which represents the category of a taxpayer. Allowed categories are employed, student, and pensioners – persons over 65yrs; any other category should result in an error message being displayed. If the user enters employed, then they should be asked to be indicated if they are being paid minimum wage or more than minimum wage. For students, only persons older than 18 pay taxes.

For each taxpayer accepted, income tax payable is to be calculated and displayed. Minimum wage earners pay a flat tax amount of $500 per week, students pay 15% of their weekly gross, non-minimum wage earners pay 25% of their weekly gross and pensioners pay 10% of their weekly gross. The program should prompt the user for their weekly gross salary and calculate and display the tax, along with the gross. 


Draw the flowchart and write the pseudocode for the algorithm.Implement the algorithm in C++.


Calculate and display the average monthly rainfall for four months.

The user should enter the name of each month and the amount of rain(in Inches) that fell that month.


the main program will create an array of 10 product objects. Ask for the all values of the member data of each of the product object. After all the data entry of the 10 products, the program will display the product details in a table form.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS