Write a Java program to solve quadratic equations. Q2. Write a program to calculate the income tax for the below conditions: If income is less than 500, then no tax Q1. Q3. If income is in the range 501-1000, then tax is 5% of income If income is in the range 1001-1500, then tax is 10% of income If above 1500, then tax is 15% of income Write a Java program to print numbers between 1 to 100 which are divisible by 3, 5 and by both.
Q: 42, Which of the following statements about IPv6 are correct? A. IPv6 address…
A: The correct options are given below:
Q: When a DHCP client applies for an IP address, only DHCP ACK messages are sent in unicast mode.
A: DHCP (Dynamic Host Configuration Protocol): A network management protocol called DHCP (Dynamic Host…
Q: Please describe the techniques of Substitution Cipher and Transposition Cipher
A: Technique for Substitution Ciphers:Plain text characters are swapped out for other letters,…
Q: What Is A Symbol Table?
A: The answer to the question is given below:
Q: How operating system performs program management draw a diagram and write at least 25 activities?…
A: Operating system performs program management.
Q: problem 7 wasnt solved
A: We need to solve problem 7, which asks to get the sop expression for the given table.
Q: Suppose splice_site_pairs = ['GT-AG','GC-AG','AT-AC']. What is splice_site_pairs[:-1] ? We want to…
A: Required language is python:
Q: 9-14. Lottery: Using the list called series, write a function called get_winning_ticket_number that…
A: Coded using Python 3
Q: In C++, please write a function that traverse through a linked list to find the node that contains…
A: linked list:- Linked List is a linear data structure, much as arrays. In contrast to arrays, linked…
Q: 6. Which of the following statements about ARP packet sending is correct? OA. The destination IP…
A: The question has been answered in step2
Q: 1. State application of soft computing.
A:
Q: 1.12 Lab: Check Login Credentials (classes) Complete the Login class implementation. For the class…
A: ANSWER:-
Q: 6. (a) Write an application for Cody's Car Care Shop that shows a user a list of available services:…
A: Java : Primitive types and reference types are the two subcategories of types in the Java…
Q: you have to choose one option
A: Corrected Answer for the given MCQ is given in answer section
Q: What is Zombie Computers for Distributed Denial of Service (DDoS) Attacks
A: solution is given in next step:
Q: Perform the Postfix - Infix notation. Show your solutions.
A: Infix , Prefix and Postfix are the three different types of notation for the algebraic expression.…
Q: # See the table and answer the question use Python language: Name Dr. ISA Dr. Mohd Dr. Ali Dr. Mousa…
A: CSV file : Data can be saved in a tabular manner in a CSV file, which stands for comma-separated…
Q: in netbeans using java Create a class NestedForPatternB. Use nested for-loops that display the…
A: Code public class NestedForPatternB{ public static void main(String[] args) { for(int…
Q: QUESTION: You are part of a team working with a system consisting of a 32-bit microprocessor, with…
A: MICROPROCESSOR:- The heart of a computer is essentially its CPU. It can also be used as a processor…
Q: 32, Which ports of servers are used by default for the FTP service? A. 20 B. 23 C. 21 D. 22
A: Here is the explanation regarding different ports.
Q: Write a method to replace all spaces in a string with '%20'. You may assume that the string has…
A: A frequent strategy in string manipulation difficulties is to alter the string from beginning to…
Q: Description of program: Relational operators. Suppose the variables a and b have values 20 and 10.…
A: python introduction:- Python is a dynamic, interpreted language that uses bytecode compilation. The…
Q: 42. Which of the following statements about WLAN device selection are true? A. A greater antenna…
A: WLAN : (WLAN) A communications system that offers wireless devices connectivity within a certain…
Q: you have to choose more than one option
A: Options: The configuration of the telnet user level is incorrect The password entered by the user…
Q: Exercise 6 Use the function design recipe to develop a function named has_pair. The function header…
A: We need to write a code in Python for the given scenario.
Q: Consider the assembly code fragment related with the MSP430 given as below. The register contents…
A: The content of Registers and Memory Address is change as shown in below table:-
Q: I can barely read this.
A: 192.168.20.0: 192 means Class C address (24 network bits and 8 host bits) Given subnet mask:…
Q: Does using passwords with salts make attacking a specific account more difficult than using pass-…
A: Introduction Including random data in a hash function's input in cryptography ensures that the hash…
Q: Write Matlab code to plot the unit-ramp function in MATLAB. z(t)=t, if t>=0 z(t) = 0, otherwise.
A: TO CREATE THE MATLAB CODE THE GIVEN DATA IS:- z(t) = t, if t>=0 z(t) = 0, otherwise. t…
Q: 7. Which type of address is indicated by the IP address 10.0.10.63 and subnet mask 255.255.255.224?…
A: IP stand for internet protocol.
Q: The following is the list of students' marks in ICT303 and ICT304: Question 3 Student ICT303 ICT…
A: The above question is solved in step 2 :-
Q: Create Java Program to convert an input integer from 1-3000 in words and also convert the inputted…
A: The answer is given below.
Q: Use c++ HOMEWORK #2 - Length Conversion Write a program that reads in a given length in feet and…
A: C Language:-The structured, procedural programming language C has a large following among academics…
Q: 39, Which of the following are main functions of Memory Management ? DA. Memory protection B. Memory…
A: Memory management Memory management is the capability of an operating system that controls or…
Q: A signal with 60 milliwatts power passes through a device with an average no GNDnd CND
A: The answer is
Q: W/(X-Y)+(Z* A-(B/C))
A: Perform the Infix - Postfix notation. Show your solutions.W/(X-Y)+(Z* A-(B/C)) Answer in below…
Q: Use examples to explain what the following Default Desktop Settings (KDM) configuration options are…
A: A. View: View often refers to observing something in real life or the contents of a computer file.…
Q: How to Protect Yourself from the Man in the Middle in cybersecurity?
A: Main in middle attack in Cybersecurity : - It can be considered as an attack in which there…
Q: do you have any suggestions to changes or improvement to this data visiulization? dont have to…
A: The question has been answered in step2
Q: palindrome is a nonempty string over some alphabet that reads the same forward and backward.…
A: C++ programming is utilized as no programming language was mentioned. The answer is given below.
Q: Host A sends a 1500-byte packet to Host B.
A: The answer is
Q: Based on the following function, what is the value of z(6,8)?
A: Introduction: In this question, we are given a code snippet and have to answer the output of that…
Q: We may utilise two methods without implementing them: count and unambiguous The DictionaryEntry…
A: We may utilise two methods without implementing them: count and unambiguous The DictionaryEntry…
Q: 3. Write recursive functions for the following equations: a. Harmonic number is defined by the…
A: As the programming language is not mentioned here, we are using JAVA The JAVA code is given below…
Q: 4. Write a program that allows the user to enter the last names of five candidates in a local…
A: C++ Programming Some computer languages are created with a particular objective in mind. Like Java,…
Q: Which of the following statements is/are true, for arbitrarily large values of n? Check all that…
A: According to the information given:- We have to choose the correct option in order to satisfy the…
Q: A passenger van can be configured with different seating capacities, up to a maximum capacity (the…
A: According to the information given:- We have to follow the instruction in order to make code work.
Q: Exercise 1 Use the function design recipe to develop a function named add_up that takes one…
A: Step-1: StartStep-2: function add_up(n) Step-2.1: Declare variable a=0, sum=0Step-2.2: Start a…
Q: 1. Draw the recursion tree generated when calling hanoi (3, 1, 3). The first parameter is numDisks,…
A: The question has been answered in step2
Please I want answer this
Step by step
Solved in 4 steps with 9 images
- Use java code Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. The interpretation of BMI for people 16 years or older is as follows: BMI below 16 16-18 19-24 25-29 30-35 above 35 Interpretation seriously underweight underweight normal weight overweight seriously overweight gravely overweight Write a Java program that prompts the user to enter a weight in kilograms and height in meter and display the BMI. Use nested if- else statements to solve this exercise. Here is a sample run: Enter weight in kilograms: 66.22 Enter height in meters: 1.788 Your BMI is 20.71353142 You are normal weightJAVA PROGRAM A company selling household appliances gives commissions to its salesman determined by the kind of product sold as well as the sales amount.Type 1: 7% of sale or 400, whichever is more.Type 2: 10% of sale or 900, whichever is less.Type 3: 12% of sale.Type 4: P250, regardless of sale price.Make a program that would input the TYPE of appliance sold (between 1-4) and the sale PRICE(a positive floating-point value), and output the COMMission that the salesman will receive.Java Write a program that calculates the weight of number that should be taken from number. For ex : 123 = 6
- java Suppose a launched toy rocket's height is computed as h = vi*t - 5t2. vi is the initial velocity, and t is time in seconds since the launch (starting at 0). Write a java program to read the initial velocity, then output the time and the rocket's height once per second. Stop when the height would be negative, meaning the rocket hit the ground (don't print the negative). Assume all values are integers. Ex: For input 20, the output is: 0 0 1 15 2 20 3 15 4 0 Hints: Use a while loop. t squared is easily calculated as t * t. Use this expression for the while loop: (rocketHeight >= 0). Don't forget to increment time inside the while loop (otherwise you'll get an infinite loop). import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int rocketHeight = 0; int initialVelocity = 0; int timeSinceLaunch = 0; /* Type your code here. */ }}white a java program that calculate commission. The salespeople receive $200 per week plus 10% of their weekly gross sales (for that week). If Matt grosses $3,000 in a week he receives $200 plus 10% of $3,000 for a total of $500. Write a program that determines how many of the salespeople earned salaries in each of the following ranges: 1. $200 - 299 2. $300 - 399 3. $400 - 499 4. $500 - 599 5. $600 - 699 6. $700 - 799 7. $800 - 899 8. $900 - 999 9. $1,000 and over Please assume that each salesperson's salary is truncated to an integer amount.Symptoms of diabetes often appear suddenly and are often the reason for checking blood sugar levels. Depending on the sugar level following category is defined. Sugar Level(mmol/L) Less than 7.8 Category Normal Between 7.8 and 11.0 11.1 and above Prediabetes Diabetes You are assigned to write a program that can find whether a patient is diabetes suspected or not. Write a java program that will take sample of sugar level in blood of 11 patient of a clinic. You must take input using Scanner class. Your program must print the number of patient at each category and the maximum sugar level in each category. A sample input and output for this program is given below. Sample Input: 7.5, 8.9, 8.0, 5.0, 5.2, 3.2, 7.9, 12.0, 10.30, 16.0, 5.5 Sample Output: Normal Total: 5; Max Sugar Level: 7.5 Prediabetes Total: 4 Max Sugar Level: 10.30 Diabetes Total: 2 Max Sugar Level: 16.0
- 1.Blood sugar is considered normal if its rate is less than 140 and greater than 70, it is considered high if its rate is greater than or equal to 140, and it is considered low if its rate is less than or equal to 70. Write a Java program that asks the user to input the rate of blood sugar of each patient in a hospital (-1 to indicate the end of the data.) The program should calculate and print the number of patients with normal blood sugar, number of patients with high blood sugar, number of patients with low blood sugar, and the total number of patients entered by the user.A Software Engineering Company has a salary system based on position level. The table below represents the salary paid according to each position: Employee Position Employees Salary Employees' Name: Ali Position: Bonus Amount: Final Cost: $3500 Manager Supervisors Sales Person The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to holidays. Write a java program that asks the user to enter his/her name, and his/her work position. The program should calculate and display the total salary of the employee based on his/her salary position, the bonus amount and the final salary for an employee. Make sure that your program outputs exactly as the sample run below. Sample Run1: Enter Your Name: Ali Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M Fixed Monthly Salary 3500$ 2100$ Manager Salary: $3500.0 $0.0 Internet Service Bill 700$ Sample Run2: Enter Your Name: Cerine Enter Your Position (M for Managers, S for…Write a program that calculates and prints the volume of a pyramid given the base (b) and the height (h) of the pyramid. The formula to calculate the volume is: Volume = (1/3) *b * h Enter the base of the pyramid: 3 Enter the height of the pyramid: 2 The volume is 1.9998
- Write a program that asks the user to enter a month (1 for January, 2 for February, etc.) and thenprints the number of days in the month. For February, print “28 days”.Enter a month: 530 days Note : Solve this by using javaJava Lab 401120 Lab 7 Dec 21, 2020 1. Write a java program that calculate the GPA for 20 students. ote: a. You will enter the grade for each student. b. Assume that there are three courses for each student c. Use method to calculate the GPA.The U.S. Census Bureau projects population based on the following assumptions:- One birth every 7 seconds- One death every 13 seconds- One new immigrant every 45 secondsWrite a program to display the population for each of the next five years. Assume the current population is 312,032,486 and one year has 365 days.Hint: In Java, if two integers perform division, the result is an integer. The fractional part is truncated. For example, 5 / 4 is 1 (not 1.25) and 10 / 4 is 2 (not 2.5). To get an accurate result with the fractional part, one of the values involved in the division must be a number with a decimal point. For example, 5.0 / 4 is 1.25 and 10 / 4.0 is 2.5.Sample RunPopulation after 1 year: 3.148125827032967E8Population after 2 years: 3.1759267940659344E8Population after 3 years: 3.2037277610989016E8Population after 4 years: 3.2315287281318676E8Population after 5 years: 3.259329695164835E8Class Name: Exercise01_11