Write a python program where the user is prompted to enter a salary and display the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a python program where the user is prompted to enter a salary and display the increased salary. Increased salary will be calculated based on the condition: If salary is greater than 70000, then increase salary by 3%, otherwise increase by 1%. Write a python program where the user is prompted to enter a salary and display the increased salary. Increased salary will be calculated based on the condition: If salary is greater than 70000, then increase salary by 3%, otherwise increase by 1%.
Expert Answer:
Answer rating: 100% (QA)
import math def increasedsalarySalary if Salary70000 val Salary S... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
In Exercises 5970, the domain of each piecewise function is (- , ).a. Graph each function.b. Use your graph to determine the functions range. f(x) = -x if x <1 if x 1 2x + 1
-
Flowers tend to open in the daylight and close in the dark. The percent P of flowers open during a 24-hour period can be modeled by P(x) = a sin (bx) + d, where x is hours past 7 A.M. (a) Suppose...
-
With the aid of a well labeled diagram discuss the significance of the following terms in a tensile test Diagram 2 i Limit of proportionality 1 ii Elastic limit 1 iii Yield point 1 iv Maximum stress...
-
Is there more to marketing than building product and brand awareness than what people discuss? How do marketing managers and executives manage consistent messaging across cultures?
-
(a) If a photon and an electron each have the same energy of 20.0eV, find the wavelength of each. (b) If a photon and an electron each have the same wavelength of 250 run, find the energy' of each....
-
Given the projects displayed in Table 18.21, if FCFS is used to sequence the jobs, what is the average flow rate of the projects (in projects per hour)? Project P1 P2 P3 P4 P5 P6 P7 P8 Processing...
-
Suppose that a probability of \(\frac{1}{16}\) is assigned to each point of the sample space of part (a) of Exercise 3.1 on page 65 . Find the probability distribution of the total number of units of...
-
Iridium Technologies manufactures a variety of flash memory chips at its main foundry in Anam, Korea. Some chips are sold by Iridium to makers of electronic equipment while others are embedded into...
-
Who is your favorite designer from the 20th Century (the 1900s)? Give a detailed explanation of why he or she is your favorite and how his/her designs have impacted the fashion industry.
-
Given two arrays each of length n, arr1, and arr2, in one operation, any two elements of an array can be swapped. This can occur any number of times. Find the maximum possible sum of i*(arr2[1]-...
-
Soal 3 The North American Air Defense Command (NORAD) and The Strategic Air Command (SAC) are participating in a large war-game-exercise. Each will consider the other on opponent. The designated...
-
Simplify C 52x-3
-
A perpetuity bond is a coupon bond with infinite maturity. The price-yield relation for the perpetuity bond is P = C/y where P is the price, C the coupon rate and y the yield. Consider two perpetuity...
-
When Matthew sends Richard a message, what key should he use to encrypt the message?
-
Zillow was formed on January 1, 2021. The following information is available in Zillow inventory records for Product C: Units Cost per unit January 1, 2021 Initial inventory 690 $7.76 Shopping:...
-
How can a human service practitioner integrate outreach and humanitarian activities to their case management role ?
-
Checking the competitive advantage potential of cross-businessstrategic fit involves: A) evaluating a diversified company's profitability relative tocompetitors. B) examining a company's costs...
-
A certain Christmas tree ornament is a silver sphere having a diameter of 8.50 cm. Determine an object location for which the size of the reflected image is three-fourths the size of the object. Use...
-
What would the following statements, when used in a Java program, display on the screen? int age; age = 20; System.out.println ("My age is"); System.out.println(age);
-
Write a switch statement to convert a letter grade into an equivalent numeric value on a fourpoint scale. Set the value of the variable gradeValue to 4.0 for an A, 3.0 for a B, 2.0 for a C, 1.0 for a...
-
What behaviors might a song have? What behaviors might a play list have? Contrast the difference in behavior between the two kinds of objects.
-
What are the differences between the light stall and the deep stall. Comment on the differences as regards the sectional lift and the moment coefficients.
-
Comment on the effect of the (i) separation, (ii) Mach number on the negative drag for a plunging airfoil.
-
Obtain the relation between the stream function and the vorticity as the kinematic relation of the 2-D flow. Apply SOR (Successive Overrelaxation) technique to solve the elliptic equation.
Study smarter with the SolutionInn App