https://github.com/umairazmat/js-programs-ass-07
https://github.com/umairazmat/js-programs-ass-07
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/umairazmat/js-programs-ass-07
- Owner: umairazmat
- Created: 2021-12-11T07:10:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T08:39:02.000Z (about 3 years ago)
- Last Synced: 2025-02-10T05:26:40.514Z (8 months ago)
- Language: JavaScript
- Homepage: js-programs-ass-07.vercel.app
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS-Programs-Ass-07
Assignment#07
Dear Students / Brothers.
Web and Mobile Application Development, Batch-04 Section-C
Requirements:
1- Please deploy into surge, and create online link
2- Take input through DOM form
3- Show output of all programs in HTML Tags eg, h1,h2,p
4- Submit the assignment at link below
Programs:
If-else exercise
1. Write a js program to find maximum between two numbers.
2. Write a js program to find maximum between three numbers.
3. Write a js program to check whether a number is negative, positive or zero.
4. Write a js program to check whether a number is divisible by 5 and 11 or not.
5. Write a js program to check whether a number is even or odd.
6. Write a js program to check whether a year is leap year or not.
7. Write a js program to check whether a character is alphabet or not.
8. Write a js program to input any alphabet and check whether it is vowel or consonant.
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 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
15. 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%
16. 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
Deadline: 08/12/2021!
Submit: https://forms.gle/vnVFg4dRWFADLJK2A
Regards
Naveed Sarwar