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

Write a C++ class to represent an Employee. Each employee is given a name, an age, a NIC number, an address, and a salary. Furthermore:

 The Employee class should keep track of how many employees (objects) have been created in the system.

 Your Employee class should initialize all of its fields via a constructor.

 Create function prototypes to set and get an employees zip code.

 Declare a print_employee() function that prints all of an employee object's details.

(Whenever possible, use constant functions.)


Assume a company called "Pakfood Internationals" is involved in the export of vegetables from Pakistan to three continents: Africa, Asia, and Europe. To transport goods for shipments, the company employs three modes of transportation: land transport, sea transport, and air transport. It travels by land and sea from Pakistan to South East Asia, the Middle East, the Far East, and Africa. Furthermore, it employs both

sea and air transport for European countries. It also rents out cold rooms and halls for customers small and large orders, respectively.

The tasks to be performed are:

 Extract the main objects (entities) for the above system.

 Write c++ class or classes with necessary attributes and functions that need to be associated with each object (You are required to mention at most three attributes and one function for a class).


Create a structure course with some attributes i.e course_ID, course_title, credit_hrs etc.. Then Implement following 5 functions (Known as CRUDS operations which means CREATE, READ, UPDATE, DELETE, SEARCH operations):


1. addAStudent

2. updateAStudent

3. deleteAStudent

4. searchAndDisplayAStudent

5. displayAllstudents


After that, create an array of 5 courses in main function. Create a menu in main function to enable user to select and perform the operations we created above. Program must not exit until and unless user wants to do so.


Write a program to find the product of 2 power numbers if the base and the exponent of these numbers are



provided in the main function, also check that the base of both the power number are the same, as the



product of 2 power numbers can only be calculated if their base is the same. Use pass by reference



mechanism to compute the product of these power numbers then display the result in main function.




Note: Your function should not return a value.

Create an IceCreamCone c++ class with fields for flavor, number of scoops, cone type, and price.

Unless arguments are supplied, flavor defaults to "Vanilla," number of scoops defaults to 1, and

cone type defaults to "Sugar"

The constructor calculates the price based on 75 cents per scoop, with an additional 40 cents for a waffle cone.


Write a program to find the greatest common factor if the two numbers are provided in the main function.



Use pass by value mechanism to compute the greatest common factor and return the result back to the main



function then display the result in the main function.




Write a class named TestScores. The class constructor should accept an array of test scores as its

argument.

The class should have a member function that returns the average of the test scores. If any test

score in an array is negative or greater than 100 it should display a message.


You are required to implement a shopping cart module for an online shopping mall. From the available

items a user will select the item to purchase and add this into his shopping cart. Before the checkout

customer can remove any item from the cart at any time.

A single item in the cart contains the following details:

class Item

{

private:

int itemID;

string itemName;

double price;

double purchasedQuantity;

double totalPrice;

public:

//constructors and getter setters

};

For the implementation of the required module you have to meet the following requirements:

4- Customer can calculate his bill. Bill will be calculated according to the item price and the number

of items he wants to purchase.


You are required to implement a shopping cart module for an online shopping mall. From the available

items a user will select the item to purchase and add this into his shopping cart. Before the checkout

customer can remove any item from the cart at any time.

A single item in the cart contains the following details:

class Item

{

private:

int itemID;

string itemName;

double price;

double purchasedQuantity;

double totalPrice;

public:

//constructors and getter setters

};

For the implementation of the required module you have to meet the following requirements:

3- Customer can also view his cart at any time. You have to provide two features for the user in order

to view his cart:

i. View cart: it will display all the items that customer selected to purchase.

ii. View cart by items: Display one item and facilitate user to navigate through next or

previous item in the cart till the user wants to quit the view.


You are required to implement a shopping cart module for an online shopping mall. From the available

items a user will select the item to purchase and add this into his shopping cart. Before the checkout

customer can remove any item from the cart at any time.

A single item in the cart contains the following details:

class Item

{

private:

int itemID;

string itemName;

double price;

double purchasedQuantity;

double totalPrice;

public:

//constructors and getter setters

};

For the implementation of the required module you have to meet the following requirements:

2- Customer can remove item or change the quantity at any time.

There are two possibilities:

i. Customer wants to remove the item form the cart

ii. Customer wants to change the quantity of item in the cart


LATEST TUTORIALS
APPROVED BY CLIENTS