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

String Slicing






Given two strings inputString and subString as inputs, write


a JS program to slice the inputString if it includes the subString Slice the inputString starting from the subString to the end of the inputString.






Input




. The first line of input contains a string inputString




The second line of input contains a string subString


Output





• The output should be a sliced string or inputString (if the


inputString does not include the subString)

Please provide me correct output


  • Ask the user to enter the name of the employee.
  • Prompt the user to select between full time and part time by pressing either F (full time) or P
  • (part time)
  • If F is pressed, ask the user to enter his monthly salary. Then display his name and salary.
  • If P is pressed, ask the user to type his rate (pay) per hour, the number of hours he worked, and the numbers of overtime.
  • Then display his name and wage. The computation of overtime pay is: ℎ × ( ℎ × 125%)
  • If an invalid letter is pressed, display an error message.

1.    Write a program which creates a class named babyRecord with four methods.

a)    One method will be used to write details of a child including date of birth, name, parent names and hospital name into a file called baby_data.txt.

b)   The second method will be used to read from the file baby_data.txt and store the data in a dictionary called records.

c)    The third method will be used to search for a baby using baby name or parent names information in the file called baby_data.txt.

d)   The last method will be used to delete records in the dictionary and file respectively.

Clearly show how exceptions are handled in your program in each method.


Series of Operations


Given an array myArray of numbers, write a JS program to perform the following steps and log the result.


1. Multiply each value with 9.


2. Subtract 20 from each value.


3. Multiply each value with 7.


4. Log the values of the resulting array separated by a


Write down a recursive routine to count all even number in an array?

Draw a flowchart that displays 3 inputted numbers in ascending order.





Write a function called calculate_tax that takes 3 arguments: your age, salary, and current job designation.



Your first task is to take these arguments as user input and pass these values to the function.



Your second task is to implement the function and calculate the tax as the following conditions:



NO TAX IF YOU ARE LESS THAN 18 YEARS OLD.


NO TAX IF YOU ARE THE PRESIDENT OF THE COMPANY


No tax if you get paid less than 10,000


5% tax if you get paid between 10K and 20K


10% tax if you get paid more than 20K


Finally return this tax value. Then print the returned value in the function call.


A car customer want to buy a car, he/she will tell the owner his/her requirements and in result the car will be shown to her along with price. For instance engine should be patrol, car cc will be 100-1299, type will be hatchback and there should be 3 colors say white, black and blue. You are required to make a program where there will b atleast 3 different make for example Toyota, honda and Suzuki. If exact match couldn’t find then your program will tell user similar to the match.

Make above program using C++ functions

what are the different topologies which are used for computer networks? discuss in detail


C# Write a program that determines if the input letter is a VOWEL or CONSONANT. The vowels is are: A E I O U. Your program must be able to handle a capital or small input letter.


LATEST TUTORIALS
APPROVED BY CLIENTS