Git Product home page Git Product logo

assignment-05-js-question's Introduction

Assignment-05-JS-Question

Dear Students

Mobile Application Development Course - Youtube (https://www.youtube.com/c/naveedtrainer)

Assignment05, Week05

Requirements:

1. Write a js program to print day of week name using switch case.

2. Write a js program print total number of days in a month using switch case.

3. Write a js program to check whether an alphabet is vowel or consonant using switch case.

4. Write a js program to find maximum between two numbers using switch case.

5. Write a js program to check whether a number is even or odd using switch case.

6. Write a js program to check whether a number is positive, negative or zero using switch case.

7. Write a js program to find roots of a quadratic equation using switch case.

8. Write a js program to create Simple Calculator using switch case.

9. Write a js program to input any character and check whether it is alphabet, digit or special character.

10. Write a js program to check whether a character is uppercase or lowercase alphabet.

11. Write a js program to input week number and print week day.

12. Write a js program to input month number and print number of days in that month.

13. Write a js program to count total number of notes in given amount.

14. Write a js program to input angles of a triangle and check whether triangle is valid or not.

15. Write a js program to input all sides of a triangle and check whether triangle is valid or not.

16. Write a js program to check whether the triangle is equilateral, isosceles or scalene triangle.

17. Write a js program to find all roots of a quadratic equation.

18. Write a js program to calculate profit or loss.

19. Write a js program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to following:

Percentage >= 90% : Grade A

Percentage >= 80% : Grade B

Percentage >= 70% : Grade C

Percentage >= 60% : Grade D

Percentage >= 40% : Grade E

Percentage < 40% : Grade F

20. Write a js program to input basic salary of an employee and calculate its Gross salary according to following:

Basic Salary <= 10000 : HRA = 20%, DA = 80%

Basic Salary <= 20000 : HRA = 25%, DA = 90%

Basic Salary > 20000 : HRA = 30%, DA = 95%

21. Write a js program to input electricity unit charges and calculate total electricity bill according to the given condition:

For first 50 units Rs. 0.50/unit

For next 100 units Rs. 0.75/unit

For next 100 units Rs. 1.20/unit

For unit above 250 Rs. 1.50/unit

An additional surcharge of 20% is added to the bill

Submit:

1- Post your answers console screenshot in group https://www.facebook.com/groups/learnwithnaveedsarwar

2- submit your code here https://forms.gle/zdDvVJvthgCSc1Mv5

assignment-05-js-question's People

Contributors

ahmadjajja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.