Skip to content

rcmehedi15/JavaScript-Problem-Solve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice Problem - 1


Harry's mom gave him money and asked him to buy some oranges and apples.Write a program to help Harry calculate how much money the shopkeeper will return

Input

The first line of the input is the taka Harry's mom gave him
The second line is the cost of 1 Kg of oranges and 1 Kg of apples.

Output

Print the result

Same input:

1000

Output:

300

Practice Problem - 2


Write a program to calculate the average marks of math ,Biology,chemistry,physics and Bangla of a student

Input

The first line of the input is the marks of te five subjects mentioned above,respectively,

Output

Print the result in 2 decimal places.

Same input:

75.25,65,80,35.45,99.50

Output:

71.04

Practice Problem - 3


John;s teacher gave him two variables. Each variable contains a string. John's teacher asked him to combine these two strings and print them in one line. help John Write the program.

Input

The first and the second lines of the input contain the strings.

Output

Print the result one line:

Same input:

I am going to be
and awesome web developer

Output:

I am going to be and awesome web developer

Practice Problem - 4


Sarah's mother is teaching her mathematics. she gave sarah a number and asked her what the remainder would be if she divided the number by 5 Help Sarah write the program

Input

The first line of the input contains the number

Output

print the remainder

Same input:

119

Output:

4

Practice Problem - 5


you are given an array:

var fruits = ['Apple','Banana','Orange'];

find the index of "Banana" and replace 'Banana' with 'Mango'.

Remove 'Orange' and add 'Watermelon'

Practice Problem - 6


you and your friends Tom,jane,peter and John got their final exam results.Your total score is 85, Tom's total score is 66. Jane's total score is 95,peter's total score is 56 and John's total score is 40. The grading chart is

80 or above A+ grade

70 or above A grade

60 or above B grade

50 or above C grade

40 or above D grade

39 or less => F grade

The first line of the input contains the number

write a program to find your and your friend's grades using if-else

Practice Problem - 7


1.you are given three numbers 13,79 and 45.Write a program that will print the largest number using if-else.

Practice Problem - 8


1. you are given a triangle with the sides 9,8,9 .write a program to check whether a triangle is Isosceles or not using if-else.
Isosceles => two sides are equal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published