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 program that calculates the area of the following figures:

·        A square of side 0.666666667

·        A rectangle of sides 1/9 and 4

Test the two calculated areas for equality. If the areas are equal output “The area of the two figures are equal” else output “The area of the two figures are not equal”


Calculate total stock value of the stock available in a furniture shop.

This program simulate the stock management of a Furniture Shop. This shop deals with only two type of Furnitures BookShelf and DiningTable only. The program should accept details any 5 furnitures(each can be either BookShelf or DiningTable), the program should show a menu that allow the user to select choice of Furniture. After accepting the required no of Furniture details program will show accepted details and TotalCost of Accepted Stock

This exercise contains a base class named Furniture to hold the common properties of all type of Furnitures, and BookShelf and DiningTable class as child class with additional properties relevant to child classes. Program class has below functions:

ddToStock(Furniture []) : int
    
 +TotalStockValue(Furniture []) : double
     
  +ShowStockDetails(Furniture []) : int
     
+Furniture : class
+ BookShelf : class
+ DiningTable : class




Write a C++ program that asks the user to enter a number N .After that, print N lines using asterisk (*) in a


triangle shape as shown below;


Sample Input:


Enter number of lines to print: 6

2 6 9 8 5 2 4 6 8 1 8


Find mean, median, mode.

Write a class rectangle and store the length and width of the rectangle. Write a member function called increment that will increment to length and width. Also write the function to find the area of a rectangle and then write the accessor function that will display the length, width and area of the rectangle. Demonstrate the use of the object in the main function.

class rectangle

{

private:

int length, width, area;

public:

}


Develop a Java program to allow computation of student marks in Eng, Math, Chem, Geo, and Physics. The teacher can enter marks for any number of students. He/she can press ‘E’ on the keyboard to stop entering marks. All marks should be stored in an array. When teacher presses E, the program computes and displays total marks, average, highest mark and lowest mark for each student. Use appropriate math functions for average, highest mark, lowest mark, a function which will be called every time the teacher needs to continue putting in marks, and control structures to guide the flow of the program.


Part 3: KNN

  • Apply the kNN classifier to the Iris data (using 3 neighbors and unweighted distances).
  • Output the classification report and confusion matrix and submit a screenshot of the result (1 mark).

Write a pseudocode algorithm for the problem


JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:

Class=1

If sales is equal to or less than $1000, the rate is 6 percent.

If sales is greater than $1000 but less than $2000, the rate is 7 percent.

If the sales is $2000 or greater, the rate is 10 percent.


Class=2

If the sales is less than $1000, the rate is 4 percent.

If the sales is $1000 or greater, the rate is 6 percent.


Class=3 The rate is 4.5 percent for all sales amount


Class=any other value

Output an appropriate error message.


Write a pseudocode algorithm for the problem


JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:

Class=1

If sales is equal to or less than $1000, the rate is 6 percent.

If sales is greater than $1000 but less than $2000, the rate is 7 percent.

If the sales is $2000 or greater, the rate is 10 percent.


Class=2

If the sales is less than $1000, the rate is 4 percent.

If the sales is $1000 or greater, the rate is 6 percent.


Class=3

The rate is 4.5 percent for all sales amount


Class=any other value

Output an appropriate error message


Write a program to determine whether a year entered through the keyboard is a leap year or not. Also determine whether the year is your year of birth, starting your school, start or end of matriculation (or O-levels etc), start or end of Intermediate education (FSC, A-levels, ICOM, ICS etc) or year of starting your education in COMSATS University?


LATEST TUTORIALS
APPROVED BY CLIENTS