Questions: 9 913

Answers by our Experts: 9 913

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 complete program that prompts the user for the radius of a sphere, calculates and prins the volume of that sphere. Use a function sphere volume that returs the results of the following expression: (4/3)*π*r3 which is equivalent to (4.0/3.0) *3.14159*pow(radius,3) in C++ code. Sample output Enter the length of the radius of your sphere: 2 volume of sphere with radius 2 is 33.5103


Write a c++ program that computes the product of two matrix ?

  HINT; -Row of the frist matrix should be equal to column of the second matrix.

         - It requires three nested loop.

         - elements of both matrix should be accepted from keyboard.


Write a c++ program which sorts elements of array in both as increasing and decreasing order ?

  HINT; - Size of array =10

             - Data type = int

            - Name of array = data

          - Accept all input from user





Read this story and calculate/print the x total eggs collected between Monday and Wednesday:



Mang Jose’s chickens always lay eggsPerChicken eggs precisely at noon, which he collects that day.



• On Monday, Mang Jose has chickenCount chickens.



• On Tuesday morning, Mang Jose gains 1 chicken.



• On Wednesday morning, a wild beast eats half the chickens!



For Example:



• If Mang Jose starts with eggsPerChicken = 5 and chickenCount = 3, he must then collect a total of 45



eggs



• If Mang Jose starts with eggsPerChicken = 4 and chickenCount = 8, he must then collect a total of 84



eggs



Develop a C++ program that calculates how many eggs will Mang Jose collects based on user input.

You’ve been asked to write a small menu driven inventory management system for a small convenient store. Item ID – unsigned long Item name – string Item cost – float Quantity - int

Following are the list of administrative functionalities your application shall support:

1.Add new item to the inventory. This function will be used to add a single new item into the inventory management system.

2.Print all item information in the store - This function will be used to display all items in the inventory. When this option is selected system shall print Item ID, Item name, Item cost and quantity. 3.Find item by ID – This function will be used to search item using an ID. If item exist print item information. If not display an error indicating item not found.

4.Find item by name – This function will be used to search item using name. If item exist print item information. If not display an error indicating item not found.

Write a menu driven application in

C++.


a. Each object of the class BookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.

b. Include the member functions to perform the various operations on objects of type BookType. For example, the usual operations that can be performed on the title are to show the title, set the title, and check whether a title is the same as the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and a destructor (if one is needed). Also add the necessary preconditions and postconditions.


Write C++ program using pointers in which An amateur meteorologist wants to keep track of weather conditions during the past year’s three-month summer season and has designated each day as either rainy (‘R’), cloudy (‘C’), or sunny (‘S’). Write a program that stores this information in a 3 × 10 array of characters, where the row indicates the month (0 = June, 1 = July, 2 = August) and the column indicates the day of the month. Note that data are not being collected for the date greater than 10th f any month. The program should begin by reading the weather data from user. Then it should create a report that displays, for each month and for the whole three-month period, how many days were rainy, how many were cloudy, and how many were sunny. It should also report which of the three months had the largest number of rainy days.


Write a program to find the table of numbers using a while loop. Your program should ask the size of the table. That size defines the rows and columns. Use while loop only for this program.


Write appropriate C++ statement/s for each of the given conditions below.


1.

A

function call

that passes the value of

x

. The function is named as

getNumber

.


2.

A

function call

that passes the values of two parameters

x

and

y

. The function is named

as

computeArea

.


3.

A

function heading

named

minimum

with two integer parameters called

n1

and

n2

and

returns an integer result.


4.

A

function heading

of void function named as

computeP

erimeter

with two integer

parameters called

p1

and

p2

.


5.

A

void function

named as

check

with one formal parameter of type integer, that will

determine if the value

received in the parameter is positive or negative.



Create a class Library with data members dept_name, rack_no, quantity which is inherited in class Book with data members book_name, author_name. Initialize the data for book and display the data of book with its dept_name, book_name, author_name, quantity and rack_no.

LATEST TUTORIALS
APPROVED BY CLIENTS