Questions: 1 835

Answers by our Experts: 1 539

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

In this project, you will be asked to implement an electronic warehouse that keeps track of the products stored in the storage. For each of the products, the following data are common. Product ID. Product Name. • Product De
How do I create a windows application named wallpaper App that calculates the number of single rolls of wallpaper required to cover a room .It must consist of four comboboxes(length(feet),Width(feet),height(feet) with the range of 10-30 for all three of them,Roll coverage(sqrFt) with the range of 40-50.Use a sub procedure to make the calculation on the calculate button,the number of the single roll should be displayed as an interger.if the roll coverage is 45,5sqrFt and the length and width and height of the room is 15,18 and 20 then the number of single roll is 30.single roll should be displayed in a text box and the app consists of two buttons calculate and exit
Task 5: Calculate number of days since the Independence Day

Write a function num_indep_days() which computes the number of days elapsed since 14th August 1947 to the date provided as input to the function. Remember that February of each leap year has 29 days! The function prototype is given below:

int num_indep_days(int day, int month, int year)
A large Internet merchandise provider determines its shipping charges based on

the number of items purchased. As the number increases, the shipping charges

proportionally decrease. This is done to encourage more purchases. If a single

item is purchased the shipping charge is $2.99. When customers purchase

between 2 and 5 items, they are charged the initial $2.99 for the first item and

then $1.99 per item for the remaining items. For customers who purchase more

than 5 items but less than 15, they are charged the initial $2.99 for the first item,

$1.99 per item for items 2 through 5, and $1.49 per item for the remaining items.

If they purchase 15 or more items, they are charged the initial $2.99 for the first

item, $1.99 per item for items 2 through 5, and $1.49 per item for items 6

through 14 and then just $0.99 per item for the remaining items. Allow the user

to enter the number of items purchased. Display the shipping charges.
Create a class called time that has separate int member data for hours, minutes, and seconds. One constructor should initialize this data to 0, and another should initialize it to fixed values. Another member function should display it, in 11:59:59 format. The final member function should add two objects of type time passed as arguments. A main() program should create two initialized time objects (should they be const?) and one that isn’t initialized. Then it should add the two initialized values together, leaving the result in the third time variable. Finally it should display the value of this third variable. Make appropriate member functions const.
Write a method ReadNumber(int start, int end) that reads an integer from the console in the range [start…end]. In case the input integer is not valid or it is not in the required range throw appropriate exception. Using this method, write a program that takes 10 integers a1, a2, …, a10 such that 1 < a1 < … < a10 < 100.
Question 10:
Define an abstract class Shape with abstract method CalculateSurface() and fields width and height. Define two additional classes for a triangle and a rectangle, which implement CalculateSurface(). This method has to return the areas of the rectangle (height*width) and the triangle (height*width/2). Define a class for a circle with an appropriate constructor, which initializes the two fields (height and width) with the same value (the radius) and implement the abstract method for calculating the area. Create an array of different shapes and calculate the area of each shape in another array
Question 9:
Start with the publication, book, and tape classes of Q 8. Add a base class sales that holds an array of three floats so that it can record the dollar sales of a particular publication for the last three months. Include a getdata() function to get three sales amounts from the user, and a putdata() function to display the sales figures. Alter the book and tape classes so they are derived from both publication and sales. An object of class book or tape should input and output sales data along with its other data. Write a main() function to create a book object and a tape object and exercise their input/output capabilities.
Question 8:
Imagine a publishing company that markets both book and audiocassette versions of its works. Create a class publication that stores the title (a string) and price (type float) of a publication. From this class derive two classes: book, which adds a page count (type int), and tape, which adds a playing time in minutes (type float). Each of these three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the book and tape classes by creating instances of them, asking the user to fill in data with getdata(), and then displaying the data with putdata().
Question 6:
Augment the time class referred to in Q2 to include overloaded increment (++) and decrement (--) operators that operate in both prefix and postfix notation and return values. Add statements to main() to test these operators.
Question 7:
Add to the time class of Q6 the ability to subtract two time values using the overloaded (-) operator, and to multiply a time value by a number of type float, using the overloaded (*) operator.