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++ program to sort a given set of values your program should overload the function sort so that the same function can be used for sorting values of numeric data type the sort function calls another function called swap which swaps any two values this function can be implemented as a generic function so that it can swap values of any data type. the no of values to be sorted is known only at runtime add appropriate member functions call the function sort using function pointers the values to be sorted are passed as an array to the function


Write a program that calculates the average of up to 10 English distances input by the user.

Create an array of objects of the Distance class with the data members as feets and inches to

calculate the average create a member function called avgDistance(). (Hint: 12 inches = 1 Feet)


Create a class called Employee that contains the Name and Employee number (type long).

Include a member function called getData() to get data from the user for insertion into the object,

another function called putData() to display the data. The name should have no embedded blanks.

Write a main() program to exercise this class. It should create array of type Employee and then

invite the user to input data for up to 10 employees. Finally, it should print out the data for all the

employees. (Use setw, setiosflags to format the output).



Ali has decided to go Online with his fast food store. You have been hired by him to make a system for its sale of fast food items.

To create this program you have to create a C++ Program. The information that you are dealing with is name of Food item, category of Food (Desi, italian) price of Food item and stock to know how much the Food item is present in the stock.

First you need to create a menu which has the following options:

1.    Add a new Food item.

2.    Buy a Fruit item and display it.

a. Upon buying the fruit item should get decreased by the quantity bought.

b. If the quantity bought is 2, stock should be decreased by 2.

3.    Display fruits that have stocks lower than 10.

4.    Display Least expensive fruit Item from the list.



A local business employs five salespeople and pays a 3% bonus on a salesperson’s sales

Your task is to create a program that calculates the amount of each salesperson’s bonus

The program should print each salesperson’s name and bonus amount





Topic: Files and Streams


Codes discussed will be posted here. Write your conclusion on the File stream discussion. 


Filename: "Ch5_AccountBalance.cpp"


Given problem and code: Please use the link below

-->>https://drive.google.com/file/d/1tDK28GtTpqbQ_sSKVkpdTQFJQz3gtlcB/view?usp=sharing


*Note need proper codes and conclusion on how its done and about the results. And please give the proper solution and explanation.

Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.


TAKE NOTE: The one who did Question #210013 did not read the instructions properly.

AGAIN!!! READ AND ANSWER, GIVE CONCLUSION IN THE GIVEN CODE IN THE LINK PROVIDED


Write C++ program to generate 10 random numbers in the interval [ 20, 100], and find the mean of the

numbers that are divisible by 3 or 5


Topic: Files and Streams


Codes discussed will be posted here. Write your conclusion on the File stream discussion. 


Filename: "Ch5_AccountBalance.cpp"


Given problem and code: Please use the link below

-->>https://drive.google.com/file/d/1tDK28GtTpqbQ_sSKVkpdTQFJQz3gtlcB/view?usp=sharing


*Note: Need the proper codes

*Note need proper codes and conclusion on how its done and about the results. And please give the proper solution and explanation.

Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.


Note: the one who answered Question #210013 did not give the proper answer. Read the question and instructions before answering.

Consider

Class Department:

Class Sector:

• A two-argument constructor to initialize data fields with user-defined values

• A member function display() to show all attribute values

Class Laboratory:

• 3 attributes labID, access_level, sectID , experimentNo

• A three-argument constructor that Initializes labID and experimentNo with user-defined values

Class Person:

• A parameterized constructor to initialize attributes with user-defined values

• A member function display() to show its attribute values

Class Scientist from Person:

• A data field named sciName of type string

• A data field named dept of type Department

• A data field named designation of type string

• A two-argument constructor to initialize both attributes of user-defined values

Class Engineer from Person:

• A constructor to initialize lab with user-defined value


Implement all classes while illustrating concept of aggregation , composition in terms of ownership , life-cycle.


A university wants to automate the cafeteria system you can help by identifying different classes along with their relationships. University café has different customers (Employees, Students) that visit it for buying different kinds of food. We want to make the system online so when a customer wants something he should order it through a server. Whenever a customer comes to café he/she orders the food from specific category. When a user wants to order something menu is displayed showing different food corners (FastFood, ProperMeal, Beverages). After the order is placed generate bill for the user according to the order he has placed. Identify the classes their relationship and function prototype of each class.


LATEST TUTORIALS
APPROVED BY CLIENTS