how to write function in javascript which count my salary after tax. if the tac is 30% of the salary . if the salary is 30000 the output will be 21000 I don't want the output decimal
Q: What are the benefits of IPSec ?
A: What is Ipsec? IPSec stands for internet protocol security IPSec securely interchange the data or…
Q: Binary Search : Given list: ( 1, 2, 18, 21, 33, 38, 48, 61, 63, 69, 71, 84 ) Which list elements…
A: - We need to get the elements which are searched when we search for element 18 in the provided list.
Q: Make sense of the many types of DNS records by classifying them. Explain why they are utilized in…
A: Definition: DNS converts IP addresses to domain names. When a user wants to reach "education.com,"…
Q: In your own words, describe the DNS Reverse Lookup procedure. What is the meaning of DNS? How many…
A: Reverse DNS lookups A reverse DNS lookup is a DNS query for the domain name associated with a given…
Q: What exactly is a poison package assault, and what does its occurrence mean? I'd appreciate it if…
A: ARP Poisoning, also known as ARP Spoofing, is a kind of Internet-based attack on a Local Area…
Q: Why is education so important to the well-being of our society? This section of Introduction to…
A: Answer: ->Education to society is important because that is the only mean through which they will…
Q: A time-consuming process of selecting the proper programming language
A: Programming language It is an arrangement of decisions that converts strings, or graphical program…
Q: Why is education so important to the well-being of our society? This section of Introduction to…
A: Introduction: In the 20th century, the electronic computer represented a great advancement.…
Q: 3. House +numberRoom:int +type:String. +DisplayInfo(); Bungalow +location:String +ownerName:String…
A: JAVA INTRODUCTION:- On billions of devices, including laptops, smartphones, gaming consoles, medical…
Q: How important is it to know how to use spreadsheet software?
A: Given should be aware of the significance of having abilities in an application for spreadsheets.
Q: Is it feasible to envision a future without smartphones? Computers?
A: introduction : Now a days, all people in the world are using smart phones, Internet and computers.…
Q: The answer is true, even if the time it takes to execute pipeline instructions is not spread…
A: Given: Pipelining does not aid with the delay of a single job; rather, it does assist with the…
Q: Q.7 For the given parameters 'P' = 3 and 'Q' = 19 find the value of 'e' and 'd' using RSA algorithm…
A: n = 57 φ(n) = 36 e = 5 d = 29 c = 24 Explanation: Given: P = 3Q = 19 find e and d value encrypt…
Q: It is possible to sequence assembler instructions to reduce pipeline hazards as much as feasible. To…
A: Given: Certain instruction combinations aren't supported (two instructions in the pipeline require…
Q: What are your thoughts and beliefs on computers and technology in your daily life? Along with social…
A: Our lives are significantly impacted by computers. Regular use of computers with Internet…
Q: By optimizing assembly language instructions, compilers and assemblers may be utilized to reduce the…
A: THE ANSWER TO THE QUESTION IS GIVEN BELOW:
Q: What are the applications of Subneting?
A: According to the question the subnet allows to the community to carry out speedy and makes the…
Q: Write a program to calculate the sum of all even numbers between 0 & N; where N is a positive…
A: Code: C program #include <stdio.h>int main(){ int i, n, sum=0; printf("N is a positive…
Q: Q.27 Compare Kerberos version 4 and Kerberos version 5.
A:
Q: What are the three most important elements of an object-oriented language?
A: Object-oriented programming language: a programming language structure where the data and the…
Q: Explain Personally Identifiable information (PII).
A: Answer: We need to write the what is the Personally Identifiable Information. so we will see in the…
Q: In binary search: A colors list is searched for Tan using binary search. Colors list: ( Beige, Blue,…
A: This question answer is as follows.
Q: It is possible to develop compilers and assemblers that optimize the sequencing of assembly language…
A: Introduction: Today, assembly language is mostly used for direct hardware manipulation, access to…
Q: Please give a clear description of the functional differences that exist between object-oriented…
A: Programming with objects: OOP, or object-oriented programming, is a kind of programming that is…
Q: What are the three generations of advancement in wireless security that have taken place throughout…
A: Answer is given below:
Q: Explain Personally Identifiable information (PII).
A:
Q: Make a list of all the various types of DNS records. Examples should be supplied to explain how and…
A: Given: Explain the various types of DNS records and provide examples. Is it possible for a company's…
Q: The kind of data model that focuses on concepts in the same way that computer systems store data is…
A: Here in this question we have asked that the kind of data model that focus on concept in the same…
Q: DNS queries, both iterated and non-iterated, authoritative servers and root servers, and DNS records…
A: The DNS also referred to as the domain name system, serves as the internet's phone book. Humans…
Q: What is a Cloud Technology?
A: 1) The cloud refers to servers that are accessed over the Internet, and the software and databases…
Q: Give a detailed description of the fundamental differences between object-oriented and procedural…
A: The Procedure Programming Language places more emphasis on procedures.
Q: Which is best when it comes to linking the CPU to memory? Thanks. How did you arrive at this…
A: The answer is
Q: Explain Personally Identifiable information (PII).
A: answer is
Q: What purpose does the remote interface serve, and what requirements must it meet?
A: A remote interface is an interface that declares a set of methods that may be called from a remote…
Q: Validate/ prove that the following Boolean Laws/Theorems are the equal/same using the Truth Table:…
A: Here in this question we have given a Boolean equation and we have asked to validate that both are…
Q: What are the benefits of knowing how to utilize computers and other modern devices?
A: In the twenty-first century: computers have become an indispensable component of most…
Q: What Is A Symbol Table?
A: INTRODUCTION: Symbol Table: The compiler creates and maintains an important data structure known as…
Q: What permission, authentication, roles, and mitigation measures are employed in small, medium, and…
A: Cybersecurity is a very crucial element for healthcare institutions, as they must prevent ransomware…
Q: What role do iterated and non-iterated queries, authoritative servers, root servers, and DNS records…
A: Introduction DNS DNS is a global system for translating IP addresses into human-readable domain…
Q: Describe how object-oriented and procedural programming languages vary in terms of functional…
A: difference between the object-oriented and procedural programming language
Q: Compilers and assemblers may reorganize assembler instructions to avoid pipeline dangers to the…
A: Solution: Introduction:
Q: * 4. Write a Matlab program to compute the value of 30*10 without using the operator. Attach the…
A: Introduction We can find the result by using a loop which runs for 10 times and keep on adding the…
Q: Explain and describe the CRUD approach. What is it, precisely, and how does it relate to use cases?…
A: Mobile vs. gaming devices: Smartphones: Mobile devices are portable electronic devices. Phones,…
Q: -19 Consider the group E23(9, 17). This is the group defined by e equation y2 mod 23 = (x³ + 9x +…
A: Answer: Given a=9,b=17, p=23 y2=x3+9x+17 mod 23 We have to find the what is the value of K
Q: Write a concise Matlab script that would numerically find the convolution described in Problem 2. b)…
A: Matlab:- 1. Compiled programs can be executed by any number of users on their own computers without…
Q: Evaluate the utility of interpersonal skills and their application throughout the planning and…
A: Interpersonal skills are necessary for every individual.
Q: Algorithm Prime2 (n: integer):{T,F}; prime = F; d=2; while d < n/2 and prime = F do…
A: Given: n = 123, d = 2, prime = F, n/2 = 61 Check 2 < 61 and prime = F, True Check 123 mod 2 =…
Q: Give an explanation for why video data takes and consumes more storage space than other forms of…
A: Answer the above question are as follows
Q: What is the best way to characterize the following as Hardware? A computer operating system (such as…
A: Given: The phrase "Basics Hardware" refers to the tangible and outwardly visible components of the…
Q: It is critical to comprehend the reasons why video data necessitates and consumes more storage space…
A: The question is why video data requires and uses more storage space than other forms of data. A…
how to write function in javascript which count my salary after tax.
if the tac is 30% of the salary .
if the salary is 30000
the output will be 21000
I don't want the output decimal .
Step by step
Solved in 2 steps
- Use java Language Write the function parrotTrouble.** We have a loud talking parrot. The "hour" parameter* is the current hour time in the range 0..23. We are* in trouble if the parrot is talking and the hour* is before 7 or after 20. Return true if we are* in trouble.** Some Examples:* parrotTrouble(true, 6) returns true* parrotTrouble(true, 7) returns false* parrotTrouble(false, 6) returns false** @param isTalking true if the parrot is talking.* @param hour the time of day from 0..23.* @return true if you're in trouble with your neighbors.Write a function that prints a diagonal line using asterisk characters. Your function should accept one parameter that determines the number of rows defining the length of the diagonal line. This value will always be a positive integer greater than or equal to 1 (e.g. 1, 2, 3, …). use this Java: public static void printPattern( int num );A supermarket is doing a sales promotion for soft drinks. If one day you buy soft drinks and bring the empty bottles the next day, they exchange each set of K empty bottles for a full one. A customer wants to make the most of this offer and therefore bought several bottles on the first day of the promotion. Now he wants to know how many bottles he will have at the end of the second day of the promotion if he use it to the fullest. Make a program to calculate this. Input The first input line contains integer T (1 ≤ T ≤ 10000), which indicates the number of test cases. In each of the following T lines come two integers N and K (1 ≤ K, N ≤ 10000), respectively the number of soft drinks bought and the number of empty bottles to gain a full. Output For each test case print the number of bottles that the customer will have on the second day, if he makes the most of the offer.
- Python question, please us a docstring and have comments throughout code Write a function getInteger() that takes two integers num1 and num2 as parameters. If num1 > num2, then the function prints an error message and returns 0. If num1 is equal to num2, the function returns the common value. For cases where num1 < num2, the function prompts the user to enter an integer greater than or equal to num1 and less than or equal to num2 and returns the first valid integer that the user enters. If the user enters something that is not an integer value, the programs should display an error message and re-prompt the user to enter a valid integer Below are some sample executions of the function. Use the while and if-elif statements and a try/except in the solution. Don’t forget to include the docstring and comments. Copy and paste or screen shot the code and the thirteen test cases shown below in your submission. . >>> getInteger(5,4) 5 and 4 are not valid parameters 0…Write a function in python code for checking the speed of drivers. This function should have one parameter: speed. If speed is less than 70, it should print “Ok”. Otherwise, for every 5km above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points. For example, if the speed is 80, it should print: “Points: 2”. If the driver gets more than 12 points, the function should print: “License suspended”.solve in python Write a function randomNumber which will return a single random integer from 0 to 9, inclusive. It does not accept any parameters. Write a function randomLetter which will return a random (lowercase) letter of the English alphabet (hint: if you still have you code from the last quiz, you can copy some of it to use here). It does not accept any parameters. Write a function generatePassword that will create and return an alphanumeric password. It should accept one parameter: an integer nn The function should then randomly generate nn characters, assemble them into a string, and return that string Each character should have a 50% chance of being a letter and a 50% chance of being a number, and should be generated by calling one of the functions you defined earlier. If it is a letter, it should have a 50% chance of being uppercase and a 50% chance of being lowercase Hints: randomNumber and randomLetter should be one or at most two lines long, not counting the…
- lllustrating your answer using the buggy code below, explain in your own words what it means for variables to be defined “as locally as possible”, and why it is important. This code is intended to print one of two messages depending on whether an integer input is less than a secret number or not. The function, inputInt, correctly prints the given String and then returns a number input by the user.Write a program that reads a list of names and total points for students until -1 is entered. After gettingall of names and points, it will output them as names and grades. Write your program using a functionthat gets the points as parameter and calculates the grade and return it. No input validation is required.Also write a function that unit test your grade calculator function.Bonus (5 points): validate your input in any way that you think works better for this situation.Show an error messageBring the points to a valid rangeReturn a value that shows an error has occurredA[94,100] A-[90,94) B+[87,90) B[84,87) B-[80,84) C+[77,80) C(74,77) C-[70,74) D+[67,70) D[61,67) F[0,61)Sample input:Lee 39Lua 86Mary 91Stu 72-1Sample output:Lee FLua BMary AStu C-In python Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitude value. Ex: If the inputs are: 5 7 the function returns: 7 Ex: If the inputs are: -8 -2 the function returns: -8 Note: The function does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the built-in absolute value function to determine the max magnitude, but you must still output the input number (Ex: Output -8, not 8). Your program must define and call the following function:def max_magnitude(user_val1, user_val2)
- NEED HELP WITH THIS import random print(random.randint(1,6)) #prints a number between 1 and 6. #or: x = random.randint(1,6) print(x) #prints a number between 1 and 6. write a python program that simulates a game with two dice roll based on their sum and value. Your program should: Define a function try_your_luck(dice1, dice2) that takes two arguments i.e., the numbers generated by randint() function (use randint twice). The random numbers should be passed to the function as argument The player wins some money, when: a. Sum of both dice is divisible by three, player wins $5 b. Same number on both die, player wins $10 c. For all other cases, print "try again" Player loses the game, when: a. Sum is greater than 10 and odd b. Sum is 7. Display an appropriate message for each case (player wins or loses).You are given 2 out of 3 angles in a triangle, in degrees. Write a function that classifies the missing angle as either "acute", "right", or "obtuse"based on its degrees. An acute angle is less than 90 degrees. A right angle is exactly 90 degrees. An obtuse angle is greater than 90 degrees (but less than 180 degrees). Example: missing_angle(27, 59) → obtuse WRITE IN PYTHON PLEASEwrite a javascript function that eligibility( age, state, filed, dependents ) This function accepts four inputs. The first input is a number that denotes a person's age in years. The second input is a string that denotes the two-letter abbreviation of the state in which the person resides. The second input must not be case sensitive. The third input is a Boolean denoting whether the person filed a state income tax in the previous tax year. The fourth input is a number denoting the number of dependents claimed on the previous year's tax form. The "dependents" is an optional parameter and will be omitted if the third parameter is false. The function returns true if the person is eligible for a tax refund and false if they are not. A person is eligible for a tax refund if They are at least 60 years of age Reside in either Iowa (state="IA") or Wisconsin (state="WI") Have filed a state income tax in the previous year Have at least 1 dependent and no more than 5 Examples eligible( 35,…