In this CCBP Login Dynamic Web Application I can’t getting the above JS functionalities
this cases are not executed please help
When the HTML button element with the id getActivity Btn is clicked, a GET request has to be sent to the given URL and set HTTP response value in the HTML paragraph element with id activityName, activityType and the HTML img element with id activity Img should change according to the response
this case how is executed
Note: without using library and functions.
Write a C++ program that converts a decimal number to a binary, octal, and
hexadecimal equivalents. First, the program will ask to fix a range for the lower and
upper limit in which the conversion is required. The lower limit should not be less than
0 and greater than the upper limit. For example, if you enter a negative number or
greater than the upper limit, then the program should print a message for the invalid
input and will ask you again to enter a decimal number within the range. If you
correctly specify the upper and lower limits, then the program will print a table of the
binary, octal and hexadecimal equivalents of the decimal numbers in the range of
lower limit through upper limit.
Specific grading criteria: In this program you should use all the loops (e.g., while,
do-while and for loop) each of them only one time. The output mentioned below is just
an example; more clear and well- presented output will improve your points.
Note: without using the functions. only do in main function and by using loops.
A number is called a happy number, if you start with the given number
and arrive at 1 by repeating the following process (as illustrated in the below example): (a)
compute the sum of the squares of given number digits (b) if the resultant value is 1, then
the number is happy number, else execute point (a) for the newly produced number.
Note that if a number is not a happy number, there will be an endless loop to this execution.
Goal: In this question, you are required to write C++ code that checks whether the number
entered by the user is a happy number or not for 10 cycles/iterations only.
Example: Assume a number 19
Random activity
When the HTML button element with the id getActivity Btn is clicked, a GET request has to be sent to the given URL and set HTTP response value in the HTML paragraph element with id activityName, activityType and the HTML img element with id activity Img should change according to the response
<div class="bg-container text-center">
<button class="get-activity-button p-1 mt-3" id="getActivityBtn">Get Activity</button>
<div class="mt-2" id="result">
<div class="d-flex flex-row">
<div class="w-50 d-flex flex-column justify-content-center text-center">
<p id="activityName" class="activity-name">Buy a new house decoration</p>
<p id="activityType" class="activity-type">recreational</p>
</div>
Problem : Implement the Knuth-Morris-Pratt algorithm for pattern matching. Search for all occurrences of
a pattern P in a text T.
Input Format: The input text file specifies the pattern P and the text T. The first line of the input file is the
pattern P and the second line specifies the text T. Assume that all characters in the pattern and text are from
the English alphabet and are lower case.
Output Format: Print out the index of every position in the text T where the pattern P occurs. Assume that the
pattern and text have than 10000 characters.
Sample Input 1:
abab
cababbababcbccba
Sample Output 1:
1 6
Sample Input 2:
abab
cabbbbabaacbccba
Sample Output 2:
Pattern not found.
A cone has a diameter of 16 units and a height of 11 units. How many cubic units is the volume of the cone?
Solve and show step by step solution.
1. The density of the solution is 0.982 g/mL and the density of water is 1.00
g/ml. If the solution is composed of 30.6 g NH3 in 81.3 g of H2O. Compute for;
a. mole fraction of NH3
b. molarity of NH3
c. molality of NH3
2. Given the reaction, H3PO4 + 3 NaOH Na3PO4 + 3 H2O, what is the
mass of 0.20 M H3PO4 needed to react with 100 ml. of 0.10 M NaOH?
1. Why does the Department of Health (DOH) recommends the use of 70% rubbing alcohol than 40% as a precautionary measure against corona virus?
2. Why does the Department of Environment and Natural Resources, (DENR) concern on the cauliform level, in parts per million, during the rehabilitation of beaches in Boracay? Research on the tolerable level of cauliform.
1. What is the percent by mass concentration of 41.0 g of sodium chloride
(NaCl) dissolved in 331 g of water (H2O)?
2. What is the percent by volume concentration of 25 ml ethanol (C2H5OH) in
75 ml solution?
3. What is the mass in grams of potassium nitrate (KNO3) needed to prepare
650 ml of 3.2 M KNO3 solution?
4. What is the molal concentration of a solution that contains 16 g of silver
nitrate (AgNO3) in 80 ml of water.
5. What is the molarity of 15.2 % by mass hydrogen peroxide (H2O2)? The
density of the solution is 1.01 g/ml.