Create a public class named: Employee that would get the firstname and lastname of each
employee from the keyboard/user
// Please i need this answer with full proper explonation //
(Gas Mileage) Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several trips by recording miles driven and gallons used for each trip. Develop a C++ program that uses a while statement to input the miles driven and gallons used for each trip. The program should calculate and display the miles per gallon obtained for each trip and print the combined miles per gallon obtained for all tankfuls up to this point.
// I need this answer this proper explonation + full step by step please if any one know //
Q1: (Salary Calculator) Develop a C++ program that uses a while statement to determine the gross pay for each of several employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are givenalist of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee’s gross pay.
Enter hours worked (-1 to end): 39
Enter hourly rate of the employee ($00.00): 10.00
Salary is $390.00 Enter hours worked (-1 to end): 40
Enter hourly rate of the employee ($00.00): 10.00
Salary is $400.00
<..............................................................................>
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 the answer in the form of a pseudocode and python code
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.