Answer:
An analysis of Strengths, Weaknesses, Opportunities and Threats
The program below is a salary calculator. It need to be modified to substract 30% to account for taxes, and 8% for retirement from the gross. Then print out the net amount earned.
import java.util.Scanner;
public class Salary {
public static void main(String [] args) {
Scanner scnr = new Scanner(System.in);
int hourlyWage;
int weeklyHours;
int weeklySalary;
int overtimeHours;
final int WEEKLY_LIMIT = 40;
System.out.println("Enter hourly wage: ");
hourlyWage = scnr.nextInt();
// FIXME: Get user input value for weeklyHours
weeklyHours = 40;
if (weeklyHours <= WEEKLY_LIMIT) {
weeklySalary = weeklyHours * hourlyWage;
}
else {
overtimeHours = weeklyHours - WEEKLY_LIMIT;
weeklySalary = (int)((hourlyWage * WEEKLY_LIMIT) +
(hourlyWage * overtimeHours * 1.5));
}
System.out.print("Weekly salary is: " + weeklySalary);
}
}
Here's how we can modify the program:
import java.util.Scanner;
public class Salary {
public static void main(String [] args) {
Scanner scnr = new Scanner(System.in);
double hourlyWage;
int weeklyHours;double grossPay;
double netPay;
int overtimeHours;
final double TAX_RATE = 0.3;
final double RETIREMENT_BENEFITS = 0.08;
final int WEEKLY_LIMIT = 40;
System.out.println("Enter hourly wage: ");
hourlyWage = scnr.nextDouble();
System.out.println("Enter weekly hours: ");
weeklyHours = scnr.nextInt();
if (weeklyHours <= WEEKLY_LIMIT) {
grossPay = weeklyHours * hourlyWage;
}
else {
overtimeHours = weeklyHours - WEEKLY_LIMIT;
grossPay = (hourlyWage * WEEKLY_LIMIT) +(hourlyWage * overtimeHours * 1.5);
}
netPay = grossPay - (grossPay * TAX_RATE) - (grossPay * RETIREMENT_BENEFITS);
System.out.println("Net pay is: " + netPay);
}}
In the above modified program, we have changed the datatype of hourlyWage, grossPay, and netPay to double as it's always better to use double for financial calculations.We have added two more variables TAX_RATE and RETIREMENT_BENEFITS which will be used to calculate the taxes and retirement benefits.The user can now input the weekly hours.
The program will calculate the gross pay using the formula Gross Pay = Hourly Wage * Weekly Hours.If weekly hours are less than or equal to the weekly limit, we calculate the gross pay using the formula Gross Pay = Weekly Hours * Hourly Wage.
Otherwise, we will calculate the overtime hours, and use the formula Gross Pay = (Hourly Wage * Weekly Limit) +(Hourly Wage * Overtime Hours * 1.5).Finally, we calculate the net pay using the formula Net Pay = Gross Pay - Taxes - Retirement Benefits. The program then prints out the net amount earned.
For more such questions on java, click on:
https://brainly.com/question/29966819
#SPJ8
what are the benefits and drawbacks of a desktop utilising virtualisation and a server?
•Cons of Virtualization. High Initial Investment. Data Can be at Risk. Quick Scalability is a Challenge. Performance Witnesses a Dip.
•Pros of Virtualization. Uses Hardware Efficiently. Available at all Times. Recovery is Easy. Quick and Easy Setup. Cloud Migration is Easier.
Mark as brainlest answer!!!!!The ability to write functions is one of the more powerful capabilities in C++. Functions allow code to be reused, and provides a mechanism for introducing the concept of modularity to the programming process. In addition to the concept of functions, C++ allows complex programs to be organized using header files (.h files) that contain the prototypes of functions and implementation files that (.cpp files) that contain the implementation (definition) of the functions.
In this programming assignment you will be asked to implement a number of useful functions using a header file and an implementation file. You will place the prototypes for your function in a .h file, and implement these functions in a .cpp file. You will need to write a driver (a program designed to test programs) to test your functions before you upload them.
[edit]Deliverables:
main.cpp
myFunctions.cpp
myFunctions.h
[edit]Function:
[edit]max
Precondition
two integer values exist
Postcondition
The value of the largest integer is returned.
The original integers are unchanged
If the integers have the same value then the value of either integer is returned.
Return
integer
Description
Function returns the value of the larger of two integers.
Prototype:
int max ( int, int )
Sample Parameter Values
m n max(m,n)
5 10 10
-3 -6 -3
Answer:
The header file in C++ is as follows
myFunction.h
void max(int a, int b)
{
if(a>b)
{
std::cout<<a;
}
else
{
std::cout<<b;
}
}
The Driver Program is as follows:
#include<iostream>
#include<myFunction.h>
using namespace std;
int main()
{
int m,n;
cin>>m;
cin>>n;
max(m,n);
}
Explanation:
It should be noted that, for this program to work without errors, the header file (myFunction.h) has to be saved in the include directory of the C++ IDE software you are using.
For instance; To answer this question I used DevC++
So, the first thing I did after coding myFunction.h is to save this file in the following directory ..\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include\
Back to the code
myFunction.h
void max(int a, int b) {
-> This prototype is intialized with integer variables a and b
if(a>b) -> If the value of a is greater than b;
{
std::cout<<a; -> then the value of variable a will be printed
}
else
-> if otherwise,
{
std::cout<<b;
-> The value of b will be printed
}
}
Driver File (The .cpp file)
#include<iostream>
#include<myFunction.h> -> This line includes the uesr defined header
using namespace std;
int main()
{
int m,n; -> Two integer variables are declared
cin>>m; -> This line accepts first integer input
cin>>n; -> This line accepts second integer input
max(m,n);
-> This line calls user defined function to return the largest of the two integer variables
}
Use the drop-down menus to complete statements about how to use the database documenter
options for 2: Home crate external data database tools
options for 3: reports analyze relationships documentation
options for 5: end finish ok run
To use the database documenter, follow these steps -
2: Select "Database Tools" from the dropdown menu.3: Choose "Analyze" from the dropdown menu.5: Click on "OK" to run the documenter and generate the desired reports and documentation.How is this so?This is the suggested sequence of steps to use the database documenter based on the given options.
By selecting "Database Tools" (2), choosing "Analyze" (3), and clicking on "OK" (5), you can initiate the documenter and generate the desired reports and documentation. Following these steps will help you utilize the database documenter effectively and efficiently.
Learn more about database documenter at:
https://brainly.com/question/31450253
#SPJ1
Jose is very careful about preventing malware from infecting his computer. In addition to avoiding suspicious email attachments and resisting the
temptation of clicking on pop-up ads, which of the following methods could Jose use to keep his computer safe?
Answer: There is many apps on the computer that may help Jose. Look up malware or software protection and perhaps you'll find one you like and that fits his computer. I hope this helps Jose!!!
Explanation:
Many adds pop up for safety and protection for your computer, the hard part is knowing which ones are true and which ones are false! I wouldn't risk buying any plans in that area unless your positive they are real. There are free apps that can help you without paying for them. I hope this helps!
In what year was napier bone invented
The Napier's Bones is a manually-operated calculating device, invented by the Scottish mathematician John Napier in the early 17th century, around the year 1617.
What is Napier bone used for?Napier's Bones, also known as Napier's rods, are used for multiplication, division, and square root calculations. The device consists of a set of rectangular rods or bones with each bone representing a single digit in the multiplication table.
By manipulating the rods, users can quickly perform calculations that would otherwise be time-consuming to complete by hand. The Napier bone is an early example of a calculating device and is considered a predecessor to modern mechanical calculators.
Learn more about Napier bone at:
https://brainly.com/question/24242764
#SPJ1
What power points feature will you use to apply motion effects to different objects of a slide
Answer:
Animation scheme can be used to apply motion effects to different objects of a slide.
Click this link to view O*NET’s Tasks section for Cashiers. Note that common tasks are listed toward the top, and less common tasks are listed toward the bottom. According to O*NET, which tasks commonly are performed by Cashiers? Check all that apply
establishing or identifying prices
receiving payments
interviewing and hiring new workers
writing surveys to learn about customers
issuing receipts, refunds, credits, or change
assisting customers
O*NET lists the duties that cashiers frequently carry out as setting or specifying prices, accepting payments, issuing invoices, credits, refunds, or cash, assisting clients.
What are a cashier's obligations and liabilities?A cashier, often known as a retail cashier, is in charge of processing transactions in a retail setting utilising a cash register or other point-of-sale device. They must balance the till, make change, record purchases, process refunds, and scan products for sale, among other tasks.
What is a cashier's job description and who performs these tasks?Cashiers scan merchandise, check that quantities and pricing are accurate, and take payments. Also, they help clients by explaining or recommending products, responding to inquiries, and handling exchanges or refunds.
To know more about setting visit:-
https://brainly.com/question/14307521
#SPJ1
You may review Chapter 2, pages 67-71 of the textbook or communication skills.
Now please answer the following questions:
• What communication systems do you believe are best to be used at a help desk?
• What may be a couple of reasons for the satisfaction disparity?
• How can you ensure that all employees are satisfied with the help desk's services regardless of how
Responses to Other Students: Respond to at least 2 of your fellow classmates with at least a 50-100-w
found to be compelling and enlightening. To help you with your discussion, please consider the following
• What differences or similarities do you see between your posting and other classmates' postings?
**what communication system do you believe are best to be used at a help desk?
The communication systems that are said to be used at help desks are:
Phone as well as Call Center SystemThe use of Email SystemThe use of Ticketing SystemWhat is the communication systems?In terms of Phone as well as Call Center System: This is seen as a form of a traditional system of communication that is often used as help desks.
It is one that gives room for a lot of users to be able ot call as well as speak directly with the person who is a help desk agents for any form of assistance.
Hence the choice of communication the the person who is help desk wants to use can depend on a lot of factors.
Learn more about communication systems from
https://brainly.com/question/30023643
#SPJ1
Give an example (other than clothes) where the must-have feature could be APPEARANCE.
Answer:
Assuming you are talking about UI or something graphical on a computer screen we'll just say the must-have features (in terms of appearance) are:
The UI/Web/Graphical Designers basic knowledge of color theory so they don't end up putting #0000FF text on a #FF0000 backgroundA good font (if there is text) that looks nice with the colors usedA proper aesthetic to the software (I.E. Spotify's green on black modern/techno aesthetic)The design of mobile phones is an example of a must-have feature that is in appearance.
What are the features of appearance?Features of appearance mean the visual qualities of an object or product.
Such as:
- Color
- Shape
- Texture
- Finish
- Branding
We have,
One example where the must-have feature could be appearance is in the mobile phones design
Many consumers prefer mobile phones that not only have the latest technology and features but also look sleek and stylish.
Companies invest heavily in the design of their mobile phones to make them visually appealing to consumers.
The appearance of the phone can often be a deciding factor in the purchasing decision, even if the phone has similar features to a competitor.
Thus,
The design of mobile phones is an example of a must-have feature that is in appearance.
Learn more about appearance here:
https://brainly.com/question/15851729
#SPJ2
What vieo editor is best for beginner? I have heard that TunesKit Acemovi and Adobe Premier is good, but i'm not sure wich one is better for me.I just use the video editor to organize my photo and vlog snippets. Can you tell me more about them? Thanks.
Answer:
Depends on what system you are on. I think Apple has a lot of decent free editing software for their devices, but on windows you are limited to windows movie maker... or paying for adobe or Sony Vegas (if people still use that...). Don't know anything about TunesKit Acemovi.
what is the purpose of file extensions apex
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The extension apex stands for the Android Pony Express Package file.
It is a zipped compressed package file that Google and other Android device manufacturers use for distributing updates to low-level system libraries on Android devices. It contains security updates deployed to Android devices. For example, instead of waiting to publish a full system upgrade, a device manufacturer can update an individual library to apply a patch or add a system feature.
A. They execute mail merge options
B. They tell the operating system what kind of document you are creating
C.They set up files in a organized hierarchy
D. They run spelling checker and grammar checker
This help y’all figure it out easier? These are the options apex shows
المساعد للWhat property of a metal describes its ability to be easily drawn into
a wire but not rolled into a sheet without splitting? iww.
Answer:
Ductility
Explanation:
Which core business etiquette is missing in Jane
Answer:
As the question does not provide any context about who Jane is and what she has done, I cannot provide a specific answer about which core business etiquette is missing in Jane. However, in general, some of the key core business etiquettes that are important to follow in a professional setting include:
Punctuality: Arriving on time for meetings and appointments is a sign of respect for others and their time.
Professionalism: Maintaining a professional demeanor, dressing appropriately, and using appropriate language and tone of voice are important in projecting a positive image and establishing credibility.
Communication: Effective communication skills such as active listening, clear speaking, and appropriate use of technology are essential for building relationships and achieving business goals.
Respect: Treating others with respect, including acknowledging their opinions and perspectives, is key to building positive relationships and fostering a positive work environment.
Business etiquette: Familiarity with and adherence to appropriate business etiquette, such as proper introductions, handshakes, and business card exchanges, can help establish a positive first impression and build relationships.
It is important to note that specific business etiquettes may vary depending on the cultural and social norms of the particular workplace or industry.
You are getting a page that cannot be displayed but your modem is online. You run a ping test and are able to receive the results below but still can't browse. Will clear cache and cookies resolve this issue?
Since You run a ping test and are able to receive the results below but still can't browse. the act of clearing the cache and cookies will not resolve this issue so the response is NO.
Can ping but the page won't show up?Due to the fact that the DNS servers of the Internet service provider are said to be down, this problem is one that is frequently brought on by a DNS resolution issue.
It can also be brought on by issues with security software (generally a firewall) operating on the machine that is known to be trying to access the Internet.
Hence, based on the fact that You run a ping test and are able to receive the results below but still can't browse. the act of clearing the cache and cookies will not resolve this issue so the response is NO. The issue will not change.
Learn more about cache from
https://brainly.com/question/6284947
#SPJ1
Because of inability to manage those risk. How does this explain the team vulnerability with 5 points and each references
The team is vulnerable due to a lack of risk assessment. Without risk understanding, they could be caught off guard by events. (PMI, 2020) Ineffective risk strategies leave teams vulnerable to potential impacts.
What is the inability?Inadequate contingency planning can hinder response and recovery from materialized risks. Vulnerability due to lack of contingency planning.
Poor Communication and Collaboration: Ineffective communication and collaboration within the team can make it difficult to address risks collectively.
Learn more about inability from
https://brainly.com/question/30845825
#SPJ1
Write a non-stop multi-function program to do the following taks:
1. Function Program to find the future value given present value, interest rate and duration in years.
Write Code in C program
A multi-function in C program is written using many variables and function.
Code:
#include <stdio.h>
#include <math.h>
double calculateFutureValue(double presentValue, double interestRate, int duration) {
double futureValue;
futureValue = presentValue * pow((1 + interestRate), duration);
return futureValue;
}
int main() {
double presentValue, interestRate;
int duration;
printf("Enter the present value: ");
scanf("%lf", &presentValue);
printf("Enter the interest rate (in decimal form): ");
scanf("%lf", &interestRate);
printf("Enter the duration in years: ");
scanf("%d", &duration);
double futureValue = calculateFutureValue(presentValue, interestRate, duration);
printf("The future value is: %.2lf\n", futureValue);
return 0;
}
In this program, the calculateFutureValue function takes the present value, interest rate, and duration as parameters.
It uses the formula for compound interest, where the future value is calculated by multiplying the present value with (1 + interestRate) raised to the power of the duration.
The main function prompts the user to input the necessary values, calls the calculateFutureValue function, and prints the calculated future value.
To use the program, compile and run it in a C compiler.
Then enter the required inputs when prompted, such as the present value, interest rate, and duration in years.
The program will calculate and display the future value based on the given inputs.
For more questions on C program
https://brainly.com/question/26535599
#SPJ8
Please help me I don’t get this
Answer:
I think it's a? sorry if its wrong
your favorite type of advertising
Answer:
Here are some of the best types of advertising:•Social Media Advertising.
•Pay-Per-Click Advertising.
•Mobile Advertising.
•Print Advertising.
•Broadcast Advertising.
•Out-of-Home Advertising.
•Direct Mail Advertising.
•Target the Right Audience.
'But my favorite type of advertising is SOCIAL MEDIA ADVERTISING..'Explanation:
Hope it helps you..
Y-your welcome in advance..
(;ŏ﹏ŏ)(ㆁωㆁ)
TCP is more dependable protocol than UDP because TCP is
Explanation:
because TCP creates a secure communication line to ensure the reliable transmission of all data.
What kind of material is used for DRAM (dynamic random-access memory)?
The kind of material that is used for DRAM (dynamic random-access memory) is metal-oxide-semiconductor.
What is DRAM?DRAM was invented in 1968. It is a type of RAM used in modern computers and laptops. It is a type of random access memory. Its name is dynamic random access memory.
Metal-oxide-semiconductor is used in making the transistors and capacitors of the DRAM, which are used to store the data. They hold a bit of the data in these capacitors and transistors.
Thus, the material that is used is metal-oxide-semiconductor to make DRAM (dynamic random-access memory).
To learn more about DRAM, refer to the link:
https://brainly.com/question/20216206
#SPJ1
Which swap is successful? >>> x = 5 >>> y = 10 >>> temp = x >>> y = x >>> x= temp >>> temp = x >>> x=y >>> y = temp >>> temp = x >>> y=temp >>> x=y
Answer:
>>> temp = x
>>> x = y
>>> y = temp
Explanation:
got a 100% on the assignment
What are technology trends in science check all that apply
Answer:
3D Printing Molecules.
Adaptive Assurance of Autonomous Systems.
Neuromorphic Computing (new types of hardware) and Biomimetic AI.
Limits of Quantum Computing: Decoherence and use of Machine Learning.
Ethically Trustworthy AI & Anonymous Analytics.
Explanation:
Mary and Joanne would like to start their own jewelry business. They do not want to file a bunch of papers, but also do not want to be personally liable for debts incurred by the company. Which form of ownership should they pursue?\
A-Partnership
B-Sole proprietorship
C-Limited Partnership
(helping my friend do his work cos hes sick)
In the United States, an LLC is a type of organizational structure where the owners are not held personally responsible for the debts or obligations of the business. Limited liability companies are hybrid legal entities with traits shared by corporations, partnerships, and sole proprietorship.
What personally liable for debts incurred by the company?A business where some people hold the bulk of the company's shares is known as a closely held corporation. Shares cannot be purchased by the public because they are not openly traded on an exchange. The majority shareholders have a large impact on and control over the company.
Therefore, The simplest and most straightforward type of business ownership is a sole proprietorship. One individual is the owner of it. The distinction between the individual and the company does not exist. Profits and losses from the company are shared by the owner.
Learn more about personally liable here:
https://brainly.com/question/14682274
#SPJ1
The IT staff at a hospital shares genetic information about specific patients with a life insurance company. Which ethical standard was violated?
The ethical standard which was violated by the IT staff at a hospital is: confidentiality.
What is PHI?PHI is an acronym for protected health information and it can be defined as any form of health information for a patient that mustn't be disclosed without the patient's knowledge, approval (consent) or used for the payment of health care insurance for employees.
This ultimately implies that, it is an ethical standard for all health workers to keep and protect protected health information under normal working conditions because they are confidential in nature with respect to Health Insurance Portability and Accountability Act (HIPAA).
Read more on PHI here: https://brainly.com/question/24439144
We know that February has either 28 or 29 days, but there is a year in the future, February will have 30 days
What exactly is this year?
Answer:
39 days is the offensive number
Explanation:
cuz calendar no have that numer
ITIL 4: Which of the following TRUE with respect to Practices in ITIL®?
A Practices are independents activities outside SVC
B: practice is just a new name given for process
C: practices support multiple activities within Value chain
D: every practice is tightly linked to a specific activity within value chain
Answer:
m
Explanation:
it would be c cause i take the test
The option that is true with respect to Practices in ITIL is that its practices support multiple activities within Value chain.
What are ITIL practices?ITIL is known to be the background of all the best methods used for delivering IT services.
Conclusively, the key element in the ITIL SVS is known to be the Service Value Chain as it uses an operating model for service delivery. Its practices aids the use of different activities within Value chain.
Learn more about Practices from
https://brainly.com/question/1147194
a) five benefits of having
an operating system over not having one.
Answer:
Software Updates, Computing Sources, No Coding, Relatively Inexpensive, Safeguards Data.
Explanation:
which of the following file formats cannot be imported using Get & Transform
Answer:
The answer to this question is given below in the explanation section.
Explanation:
In this question, the given options are:
A.) Access Data table
B.)CVS
C.)HTML
D.)MP3
The correct option to this question is D- MP3.
Because all other options can be imported using the Get statement and can be further transformed into meaningful information. But MP3 can not be imported using the GET statement and for further Transformation.
As you know that the GET statement is used to get data from the file and do further processing and transformation.
What best determines whether a borrower's interest rate on an adjustable rato loan goes up or down?
a fixed interest rate
a bank's finances
a market's condition
a persons finances
It should be noted that term that best determines whether a borrower's interest rate on an adjustable ratio loan goes up or down is market's condition.
This is because, Market conditions helps to know the state of an industry or economy, and this will helps to get the necessary information about borrower's interest rate on an adjustable ratio loan.
Therefore, option C is correct.
Learn more about Market conditions at:
https://brainly.com/question/11936819
Answer:c
Explanation: