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
capital country
this case is error please help
What are the various types of constructors used in object oriented programming? Explain with an example.
Explain the difference between class to basic type conversion and basic to class type conversion
Use basic to class type conversion to covert a long integer value to class datatype
Enter a 4 digit number and display the value at thousands position,hundreds position, tens position and ones position.