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

I'm not getting any output to search item in a mart code So,please verify it


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.


Need answer in pseudocode


Jaya Jusco (JJ) Sdn Bhd needs you to develop an application to calculate their customer JJ point’s reward. Define a class named Customer with the following variables declarations:


String CustName;

String CustAddress;

int pointRewards;

 

a)  Provide a default constructor and another constructor with three parameters. The constructor with parameters will assign the three values (String CustomerName, String CustomerAddress, int point). Define a public instance method named calculatePoint()to calculate the customer rewards if the point is greater than 300 points. The formula indicates that if the point is greater than 300 points, the system will add up extra 50 points.


b)Define another class named Testing to test the Customer class. Use the Scanner method to get the CustomerName, CustomerAddress and point values from the user. Declare class and create object Customer. Call the calculatePoint( ) method to display the current customer points reward.



ewrite the following C++ code in pseudocode. (5)

for (int x = 1; x <= 10; x++) {

for (int y = 10; y >= x; y--) {

if (y % 2 == 0) {

cout << "*";

}

else {

cout << "#";

}

}

cout << endl;


BTTP needs an application to help them calculate the cost of paving. Enter the size of 

the area to be paved in square meters as well as the cost of paving per square meter. 

3.1. Write a pseudocode as shown in the table below. (10)

BTTPApp

NO METHOD NAME DESCRIPTION MARK

1 main This function displays the results by calling 

the required methods.

6

2 calculatePavingCost This function calculates the cost of paving

as explained in the problem statement.

4

3.2. Convert the pseudocode solution for Question 3.1 into a C++ program.


Write a C++ program for a lecturer to convert all his (5 students) student marks to 

a percentage. Enter the total mark of the test, and then enter for each student his 

student number, and the mark obtained by the student. Display the student number, 

percentage, and status indicating whether the student passed (50% or more) or failed 

the test.

Include the following function and sub procedures (as shown in the table below):

LectureApp

NO METHOD NAME DESCRIPTION MARK

1 main This function prompts for the total and 

also invokes the required procedures to 

display the results.

7

2 getData This sub procedure prompts for the 

student number and mark obtained by the 

student from the end-user.

4

3 determinePercentage This function returns the mark obtained in

percentage.

4

4 determineStatus This function returns true if the student 

passed or false, otherwise.

6

5 printOutput This sub procedure displays the output as 

shown in the sample output.

4


for (int i = 1; i <= 100; i++)


{


for (int j = 2; j < i; j++)


{


if (i % j == 0)


{


bcd++;


break;


}


}


if (bcd == 0 && i != 1)


{


cout << i << endl;


}


bcd = 0;


}

List and describe in detail any four power management tools that were developed by at


least two manufacturers to prevent and/or reduce the damage of processors from the


process of overclocking. Your answer must also include the manufacturers name(s).



Suppose you are asked to tell the real time applications of theory of computation in the field of computing then how you answer this question by highlighting that which component/feature of theory of computation is applied in that application. Support your answer with suitable examples


Write a program to overload operators in the same program by writing suitable operator member functions for following expression:



07= ((01 % 02)>(03 || 04) - (05>06)) [Here 01,02,03,04,05,06 and 07 are objects of a class "overloading", and this class is having one integer data member]

LATEST TUTORIALS
APPROVED BY CLIENTS