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

  1. Using a do...while() loop, continuously scan for random integers that will be inputted by the user and print out its square, separated in each line.
  2. Once the inputted value is 0, it will still print out its square value but should then terminate the loop afterwards. Use this concept in making your loop condition.

Write a program to convert a fraction to a decimal. Have your program ask for the numerator first, then denominator. Make sure to check if the denominator is zero.


The manager of the company has informed his assistant to enter the age

of all the workers working in production department. Among all he has to

find the employee with maximum age employee. Help the manager to

find the maximum age employee by storing the all age of all employee in

1D array dynamically. Use functions to solve the task.

Input Format

19 21 22 23 18

Constraints

All numbers should be greater than 0.If constraints are not matched then

display "wrong input"

Output Format

23


The manager of the company has informed his assistant to enter the age

of all the workers working in production department. Among all he has to

find the employee with maximum age employee. Help the manager to

find the maximum age employee by storing the all age of all employee in

1D array dynamically. Use functions to solve the task.

Input Format

19 21 22 23 18

Constraints

All numbers should be greater than 0.If constraints are not matched then

display "wrong input"

Output Format

23


Make following patterns using loops. Do not hard code anything.

i)


|......|....................|

|......|.......***....*.....|

|......|......**....*.*.*...|

|......|.....**.....*...*...|

|......|......**............|

|......|........***.........|

|......|....................|


ii)

1

232

34543

4567654

567898765

4567654

34543

232

1


2 1234567654321

12345654321

123454321

1234321

12321

121

1


iii)

1 *

**

****

***********

*** ***

** **

* *


2

-.*

-.*-.*

-.*-.*-.*

-.*-.*-.*-.*

-.*-.*-.*-.*-.*


We need all two test cases can be came when code was run. I want exact outputs for all two test cases.Follow the below approach to solve the String Slicing.

Check Whether the input string includes the substring using if condition and includes().

if the input string includes the substring then,

Find the index of the substring in the input string, using the indexof() and store the index in a variable.

slice the input string, using the slice() form index to the length of the input string and store in the variable slicedString.

const slicedString = inputString.slice(index, inputString.length);

if the input string doesn't include the substring then else console the input string.

Input:

Language

air

JavaScript

S

Expected:

Script

input:

Language

air

Expected:

Language



We need all two test cases can be came when code was run. I want exact outputs for all two test cases.Check Whether the input string includes the substring using if condition and includes().

if the input string includes the substring then,

Find the index of the substring in the input string, using the indexof() and store the index in a variable.

slice the input string, using the slice() form index to the length of the input string and store in the variable slicedString.

const slicedString = inputString.slice(index, inputString.length);

if the input string doesn't include the substring then else console the input string.



For x = 0 To 100


For y = 5 To -10 step -1


If y = 0 Then


Exit For


End If


Console.Write("Hello")


Next


If x > 10 Then


Exit For


End If


Next


Question: If this code is executed, How many times will “Hello” be printed out?




• Create a Student Class to store the profile data including: student ID, name, password, study mode, the name of course the student has registered, the current level of the programme, they have enrolled in the current term,


the module codes and names,


attendance and exam mark


Hits:


1.Create a Student class


2.Variables to store profile data


3.Use array list to record the module details


4.setter for each variable in the Student class with data validation


5.getter for each variable in the Student class


6.constructor for the Student class

Sample Input 2

2000


Sample Output 2

2200

write a JS function to return the final value finalValue with the given appreciation percentage and time period. The default values for time and apprPercentage are 2 and 5 respectively.

Quick Tip

The formula to calculate the final value with appreciation is,

finalValue = principal * (1 + time * appreciation / 100)



LATEST TUTORIALS
APPROVED BY CLIENTS