1 The first method to be called should ask a salesperson for the dollar value of daily sales and return the entered value to the Main() method.
2 The second method to be called should calculate the salesperson’s commission based on the rates in the following table.
Sales
Commission
$0 to $999
3%
$1000 to $2999
4%
$3000 and up
5%
Define a class RationalNumber with suitable data members and member function.
Overload the different operators participating in the following expression to get the result
O7 = ((O1 >= O2) + (O3 && O4) * (O5 < O6)) + O1 + O5;
cout<<O7;
[Here O1, O2, O3, O4, O5, O6 and O7 are objects of the class RationalNumber]
Define a class RationalNumber with suitable data members and member function.
Overload the different operators participating in the following expression to get the result
write the code for round robin scheduling algorithm?
Creating and consuming promises.
1.For taking shower,
resolve with "Taken Shower" text,if the isHotWaterReady is true.and reject with "Hot Water Not Ready",text if the isHotWaterReady is false.
2.For having breakfast,
resolve with "Had Breakfast",text,if the isBreakfastReady is true and reject with "Breakfast Not ready" text,if the isBreakfastReady is false
3.For getting to work,
resolve with "Got ti Work",text
i/p:the 1st line of i/p contains a boolean isHotWaterReady
the second line of i/p contains a boolean isBreakfastReady
input:
true
true
output;Taken Shower
Had Breakfast
Got to Work
input:true
false
output:
Taken Shower
Breakfast Not Ready
input:false
false
o/p:Hot Water Not Ready
i/p:false
true
o/p:Hot Water Not Ready
Write an Assembly language program that calculate the factorial of an integer number.
write an assembly language program that alphabetically shorts and array of 10 integers.
Create a flowchart from 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.
CCBP login
When the submit is clicked and the value of the HTML input elements with I'd names is empty and password is not empty then the text content in the HTML paragraph elements with I'd name ErrMsg and resultMsg should have an error message and "Fill in the required details " respectively
When the submit is clicked and the value of the HTML input elements with I'd name is empty and password is not empty then the text content in the HTML paragraph elements with I'd password ErrMsg and resultMsg should have an error message and "Fill in the required details " respectively
*This cases are not executed getting error please help*
CCBP login
this case error