The Litsemba Life Insurance company computes annual policy premiums based on the age the customer turns in the calendar year. The premium is computed by taking the decade of the customer's age, adding 15 to it, and multiplying by 20. Write a Java application that prompts the user for the current year and birth year. Pass both to method that calculates and returns the premium amount and display the returned amount. Application should be saved as Insurance. Java.
Q: When dealing with dynamic data, having a solid understanding of the function of the heap is…
A: The answer to the above question may be found in Advantages of Dynamic Data: - There are two kinds…
Q: The Litsemba Life Insurance company computes annual policy premiums based on the age the customer…
A: the programs code is given below
Q: zation problem we are looking for t ys to convert it to a decision probl ding a threshold variable k…
A: Given: Bob, Alice and You are considered as variant of pokemon problem.
Q: Question 2 Find the decimal value of 11001101, if it is in: I. sign-magnitude form II. 1's…
A: Here in this question we have given a binary number and we have asked to find out decimal value if…
Q: Write C++ program to do arithmetic operations (+), (-), (/) and (*) using function and switch case?
A: The arithmetic operators perform addition, subtraction, multiplication, division, exponentiation,…
Q: The Linux kernel has included three new features. Is the release more secure as a result? What's the…
A: Linux kernel : Linux kernal is the core of the operating system Linux. It is a…
Q: Task 2: Enter the absolute path for the Expenses.xls file?
A: An absolute path refers to the absolute path location of the file within the system.The absolute…
Q: Web page content can include O text O images audio & video all of the above
A:
Q: What effect has the internet had on the design of computer systems?
A: The process of designing a computer systems require the whole architecture how the system should…
Q: What safeguards does Linux have in place to keep its data safe? For the programme that aired, this…
A: In this question we have to understand what are the Linux ways to safeguards its data and make it…
Q: What exactly is the StreamWriter object?
A: The StreamWriter is mainly used for writing multiple characters of data into a file. After…
Q: Do you know how many distinct domains you can represent using a 32-bit representation? The number of…
A: Given: When a computer system uses 32-bit representation, it refers to the number of bits that may…
Q: What safeguards does Linux have in place to keep its data safe? For the programme that aired, this…
A:
Q: Compiler Design
A: Given :- In the above question, a grammar is mention in the above given question Need to explain…
Q: Use "Solver" to find the roots of the following equation: (3.4X-0.45X³+1.35X²-1.7X)÷X=25 matlab
A: A polynomial function is given in this question and it is asked to calculate the roots of the…
Q: The Linux and Windows netstat tool lists active network connections. Explain how to use this command…
A:
Q: What kinds of ways does the interactive method vary from the waterfall model when it comes to…
A: The following is a description of the differences between the waterfall model and the interactive…
Q: When personal computers were originally introduced, what kinds of safety precautions were taken to…
A: Introduction:- Physical security was the only kind of protection available in the early days of…
Q: Explain the concept of a Linux distribution and identify some of the most popular ones.
A: The question has been answered in step2
Q: When developing software, one should think about the advantages of using a step-by-step method…
A: Developing software: The product development process includes all of the stages that are required to…
Q: 02. Write program in C++, using function to finds the sum of the following series:- Sum= 3!/7+…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Calculate the peak LTE OFDMA downlink data throughput of 20-MHz channel bandwidth using 128QAM…
A: Answer:- No Subcarriers for 20-MHz channel bandwidth = Also, for 128QAM = 2^9 so, 9 bits is…
Q: 13. Write code that reproduces the output shown below. In [23]: # Code Here In [17]: # DON'T WRITE…
A: Answer:
Q: Do you have any thoughts on the high-availability DHCP solutions that would be most beneficial for…
A: Launch: DHCP - Dynamic Host Control Technology is a crucial protocol for setting the IP addresses of…
Q: what is the core functions of logistics
A: Logistics is process of product distribution across various phases within and outside organisation.…
Q: The Linux and Windows netstat tool lists active network connections. Explain how to use this command…
A: Use the "netstat" command to: The phrase "network statistics" may be abbreviated to "netstat," which…
Q: Students in the BIT level 300 class obtained various grades in a Mid sem exam. A computer program is…
A:
Q: 1.) Write a function-oriented program that calculates the power value of the input base number and…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and 2 OUTPUT…
Q: Prove that: (A+B) • (B+C) × (C+A) = 2A • B×C
A: Here one equation is given, we need to prove that equation's LHS=RHS. we will prove this using dot…
Q: What are the goals of formal methods, and how do these techniques really function? At least four…
A: System design is an example of formal approaches. ways in which software and hardware systems are…
Q: In cryptography, salt is used to make passwords more difficult to decipher.
A: salt: Users that keep their passwords the same use salt. It's possible that the attacker will make…
Q: A video may be made at a number of quality levels by using compression techniques. In a few words,…
A: Compression Techniques: Most of us are either using video in our eLearning now or soon will be.Even…
Q: How would you describe the difference between OSPF and MPLS?
A: Open Shortest Path First (OSPF) is an acronym for Open Shortest Path First. OSPF stands for Open…
Q: Please solve quickly with c++
A: Coded using C++.
Q: Define scalar-valued, aggregate-valued, and table-valued functions..
A: Introduction: For handling data in a relational database management system or stream processing in a…
Q: What are the benefits of using formal approaches, as well as the drawbacks? At a minimum of four…
A: The limitations include the following: (1) the refinement rules are not sufficient to guarantee…
Q: Subject: Operating Systems The sizes of pages and page frames are often identical. Search academic…
A: page is a district of virtual location space, and a page outline is an area of actual memory. 1.A…
Q: 1. Which statement(s) is/are true? C strings can be manipulated per character. C++ string can be…
A: The question has been answered in step2
Q: A check menu or a radio button may be included inside a menu item, but is this possible?
A: Given: JavaFX defines two more menu item types: check and radio. These capabilities may simplify the…
Q: How do general-purpose computers and embedded computers differ?
A: A general-purpose system is a computer system that can be programmed to perform a large number of…
Q: what are functions of network system
A: A Network system is a running framework meant for the only motivation at the back of assisting…
Q: A bullet of mass m = 0.100kg travels down a rifle barrel from x = 0 to x = 0.600m subject to the…
A: MATLAB code given below
Q: Use the Master Theorem to find and prove tight bounds for these recurrences. a) if n ≤ 1 T(n): () =…
A: “Since you have posted a question with multiple sub-parts, we will solve first three sub-parts for…
Q: If you want an illustration of the benefits and downsides of cloud storage over typical client…
A: The following are some examples of programmers that may save data in the cloud: Dropbox is an…
Q: Detailed explanations of the following three options should be provided in the event that following…
A: Launch: As we all know, there is no foolproof method for correcting all the errors in your code, but…
Q: 04. Write C++ program, using for loop statement to print the following pattern: 1#2#3#4#5#6#7#8…
A: #include <iostream>using namespace std; int main() { for(int i = 1 ; i <= 12 ; i++) {…
Q: To what extent does Ubuntu differ from other popular Linux distributions? In a comparison of your…
A: Open source operating systems refers to the software or the applications at which the owners or the…
Q: It is essential to provide an explanation of the function that firewalls play in the protection and…
A: On a computer, a firewall is a network security program that monitors and controls incoming and…
Q: nux distribution is and identify a few of the most popular Linux distribut
A: Introduction: Below the describe the Linux distribution is and identify a few of the most popular…
Q: Issue the command to force the HSRP protocol to execute a re-election procedure when a router with a…
A: Introduction: The Hot Standby Router Technology, sometimes known as HSRP, is a proprietary protocol…
Step by step
Solved in 4 steps with 2 images
- The Westfield Carpet Company has asked you to write an application that calculates theprice of carpeting for rectangular rooms. To calculate the price, you multiply the area of thefloor (width times length) by the price per square foot of carpet. For example, the area offloor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpetthat costs $8 per square foot would cost $960. (12 3 10 3 8 5 960.)First, you should create a class named RoomDimension that has two fields: one for the lengthof the room and one for the width. The RoomDimension class should have a method thatreturns the area of the room. (The area of the room is the room’s length multiplied by theroom’s width.)Next you should create a RoomCarpet class that has a RoomDimension object as a field. Itshould also have a field for the cost of the carpet per square foot. The RoomCarpet classshould have a method that returns the total cost of the carpet.Figure 8-21 is a UML diagram that shows…Java code X1 Practice ProblemYou are writing a programfor an architectural firm that needs to enter the areasof all the rooms in a building project they’re working on. Some rooms are square, some are round, and some are rectangular. Each room in the building has an ID number to help prevent adding the same room more than once. The program needs to prompt the user for the room ID number, the shape of the room, and the dimensionsneeded to calculate the area. It should store the ID number and the calculated area in sq. ft. (rounded to the nearest foot) of each room in a single integer ArrayList in the order:ID, area, ID, area, ... If the room ID has already been entered, it should let the user know and prompt for another. The program should continue running until the user chooses to close the program. It should also allow the user to view a list of the current rooms’IDs and areas, the total area, and the average room area.The program will need at least the following methods. The only…Using java language Create a class that has three methods. One method is to input three numbers. The second method will return the largest number between the three numbers. The third method will return the smallest number between the three numbers. Since the largest and smallest number are both returned values, display these values in the main method.
- Using Visual Studio , C# Demonstrate the method in an application that lets the user experiment with different values for the formulas terms. Form will have 3 text boxes and labels, a calculate button and an exit button. Text boxes hold future value desired , how many years to grow, and annual interest rate. Calculate button will calculate how much the initial deposit needs to be depending on user input of the 3 text boxes. Write a method named PresentValue. Write a value returning PresentValue method that takes several arguments and computes the presentValue. Write a call to the method that sends the values held in the several variables that have been input. Use the Math.Pow(x,y) method for raising a number to a power in the math. Use a decimal value (not a decimal data type) for annual interest rate. For example: 4% interest rate, must be entered 0.04. Years is also a decimal value. Years is also a decimal valueJava Programming The program must use a method The program has 4 racers and the race is 50 units long. This program ends the race if any racer passes the ending point and print who won the race. Each racer moves randomly either: a. range from 3 to 8 units b. 5 sin(5) c. 45/2turn, but at least moves 1 unitIN JAVA "New Employee Gross Salary Calculator" Write a method that accepts an employee's yearly salary and start date and calculates their gross salary from the provided start date up through the end of the year Employees always start on the first of the month Throw an IllegalArgumentException if the provided start date is not the first of the month Employees qualify for a 3% pay raise 3 months after their start date and another 6% 3 months after that Use appropriate data type
- C# Create an application for a library and name itFineForOverdueBooks. TheMain() method asks the user to input the number of books checked out and the number of days they are overdue. Pass those values to a method named DisplayFine that displays the library fine, which is 10 cents per book per day for the first seven days a book is overdue, then 20 cents per book per day for each additional day. The library fine should be displayed in the following format: The fine for 2 book(s) for 3 day(s) is $0.60 The numbers will vary based on the input. My code is incorrect because its saying "Method DisplayFine displays fine isnt in correct format"This is the question I am having issues with - The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application that computes and displays a worker’s anticipated output each month for 24 months assuming the worker starts by producing 4,000 parts and increases production by 6 percent each month. Also display the month in which production exceeds 7,000 parts (when the worker deserves a raise!) as follows: The month in which production exceeds 7000.0 is month X. This is the code I have. I know it isn't right because I am unsure how to make it count properly, but this is what I have - public class IncreasedProduction { public static void main (String[] args) { final int month = 24; double parts = 4000.0; double production = 0.06; double raise = 7000.0; int counter; System.out.println("The month in which production exceeds 7000.0 is month " +…JAVA Problem description:You are to write a program called Seasons that prompts the user for a month and day and displays the season in which that date occurs. For reference, we will use the following date cutoffs for the various seasons: Winter December 21 – March 19 Spring March 20th – June 20th Summer June 21st – September 20th Fall September 21st – December 20th Data Validation For this program, you'll write a specific method to perform data validation based on the month and day entered. More specifically: Month – the month entered must be a valid month of the year (January – December). Day – the day entered must be a valid day for that month: January, March, May, July, August, October, December have 1-31 days. April, June, September, November have 1-30 days. February has 1-28 days (do not worry about leap years) Required program decomposition String getMonth(Scanner console) This method is called from the main method and should prompt for the month as a string…
- Using the 3 methods above, create an application that calculates the roots of an equation of second degree: ax 2 + bx + c 0 For it exists, the coefficient a must be nonzero. If delta is positive, then there are two distinct roots: -6+ VA -b- VA and 2a 2a If delta is zero, then there is exactly one real root: 2a If delta is negative, there is no real solution.This is the question I am having issues with - The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application that computes and displays a worker’s anticipated output each month for 24 months assuming the worker starts by producing 4,000 parts and increases production by 6 percent each month. Also display the month in which production exceeds 7,000 parts (when the worker deserves a raise!) as follows: The month in which production exceeds 7000.0 is month X. This is the code I have. I know it is not right because it is not counritn or giving me what I need but this is what I have - public class IncreasedProduction { public static void main (String[] args) { final int month = 24; double parts = 4000.0; double production = 0.06; double raise = 7000.0; int counter; System.out.println("The month in which production exceeds 7000.0 is month " +…C# Using the Visual Studio Developer Command Prompt, create the application named Tables, as described below. Don't forget to add comments, including your name, name of program, description, and date at the beginning. Instructions: Create an application named Tables that computes the price of a table and chairs and whose Main() method calls the following methods: A method to accept the number of chairs to go with the table as input from the keyboard. This method returns the number of drawers to the Main() method. A method to accept as input and return the type of wood: p for pine, m for maple, and o or oak (use a loop to ensure only one of these letters is entered). A method that accepts the number of chairs and wood type, and calculates the total cost of the desk based on the prices below. This method returns the total cost to the Main() method. Pine tables are $250. Maple tables are $300. All other wood types are $350. There will be an additional cost of $50 per chair. A minimum…