A country charges income tax as follows based on one's gross salary. No tax is charged on the first 20% of salary. The remaining 80% is called taxable income. Tax is paid as follows: 10% on the first $15,000 of taxable income; 20% on the next $20,000 of taxable income; 25% on all taxable income in excess of $35,000; Write a program to read a value for a person's salary and print the amount of tax to be paid in dollars. ● ● .
Q: Discuss the pros and cons of two components of a regulatory system that addresses cyber security.
A: Let's check the response: Introduction:- A cybersecurity framework is a set of guidelines that, when…
Q: dern computers are powerful enough to allow for this to happen. When and why did computer usage…
A: The first computers were developed in the 1930s, but the computers for everyday use appeared in the…
Q: When compared to using servers in-house, why should we use an IaaS model?
A: Definition: Using the infrastructure as a service (Ia As) deployment model, charity management…
Q: What are the top ten risks associated with IT project management?
A: Project Risk Management Risk management is a concept in clear project management that refers to the…
Q: Describe in more than sixty words and with well-labeled illustrations three (3) current methods you…
A: Database Environment: Software, hardware, personnel, database administration methods, and data make…
Q: The strength of modern computers is to blame. When did schools start using computers so extensively,…
A: Computers have been robust since their introduction, but they are now ubiquitous, playing a…
Q: No selection 191 192 193 194 195 196 197 198 199 200 201 202 203 204 Student Answers.cs 205 206 207…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: For more information about Service Oriented Architecture, please go here.
A: Introduction: The service-oriented architecture that is used in software development is the root of…
Q: Assume the base package for an Eclipse project is edu.westga.cs1301.drinks and that you are…
A: Let's understand this things one by one step by step . In the Java programming language the naming…
Q: Discuss About The Modelling and Rendering of 2D and 3D Geometric Objects
A:
Q: Discuss Operations on Stacks.
A: Given: Explain operations on stack.
Q: To what end may server deployment and configuration be automated? Can you think of any disadvantages…
A: Introduction: edges of automating server readying and configuration : 1)The anyone will…
Q: What are hybrid systems? Explain different types of hybrid.
A: A system is a collection of elements or components that are organized for a common purpose.
Q: What are hybrid systems? Explain different types of hybrid.
A: Hybrid systems are the intelligent systems that are framed by combining at least two intelligent…
Q: If you had to put a Big O notation on the database's execution time, what would it be? As long as…
A: Introduction: The worst-case temporal complexity of the programme is denoted by the value Big O,…
Q: Differentiate RGB and HSV Color Model.
A: These question answer is as follows,
Q: A computer system serves four main purposes. provide a specific instance to demonstrate
A: Introduction Any computer system will have the same four primary purposes, which may be used to…
Q: When it comes to making use of a database, what are some of the downsides that come along with it?
A: The development of database systems is difficult, time-consuming, and complex. Specialized staff:…
Q: Consider 2 level page table with outer page has 16 4KB page bytes long. How many entries can this…
A: Dear Student, The solution for your question is given below -
Q: Given Triangle struct (in files Triangle.h and Triangle.cpp), complete main() to read and set the…
A: Given: Bases and Heights of 2 triangles To Find: Triangle with larger area and output its details
Q: Discuss Operations on Stacks.
A:
Q: Discuss About The OpenGL Character Attributes.
A:
Q: Write a complete program to test your code and show the output. Problem 2: Write a Java application…
A: The complete answer in java along with comments and screenshot is below:
Q: Write 3 x 3 transformation matrix for each of the following rotation about the origin (a) Counter…
A:
Q: Custom-made solutions developed for a particular client. Pick your favorite from the following…
A: The requirements that companies have for their systems are going to be different depending on their…
Q: A company built a satellite communication system to help people make their way around a new city;…
A: Introduction: An object in space that orbits or travels in a circle around another, bigger object is…
Q: One of the most important notions that governs software engineering practice is "divide and…
A: The answer to the question is given below:
Q: Discuss Operations on Stacks.
A: Stack: It is a data structure which is used to store the data in a linear fashion. It is an…
Q: Explain OpenGL Fill Attributes.
A: Introduction: The graphics processing unit (GPU) receives character data via OpenGL buffers. This…
Q: a. Calculate the latency (in msec) required to send the 1500byte packet from Host A to Host B
A: Latency The amount of time it takes for data to move between two points on a network is known as…
Q: When you run the following code, what would happen? public class Question1 { public static void…
A: Answer:
Q: What exactly is meant by the term "binary translation"? When and why is this something that must be…
A: Introduction: An interpreter is used to finish the process of binary translation, a kind of software…
Q: For each of the pairs of statements 1)-1v) below, do the appropriate one of the following: a) give…
A:
Q: Explain OpenGL Fill Attributes.
A: Introduction: Character data just alludes to the one it is shipped off the GPU through OpenGL…
Q: Explain the difference between a disguised ROM and a one-time password (OTP).
A: Plastic-encased OTP is an EPROM variant. The least expensive software is ROM, but it has limited…
Q: To what extent are virtual servers being used in the classroom?
A: online serverIn contrast to dedicated servers, virtual servers share hardware and software resources…
Q: How do you protect your MIS from the many of cyber threats that exist today?
A: Introduction: Information security is done through a systematic approach to risk management that:…
Q: Task 1 Write a python program that reads the first n lines of a text file. Suppose you have a file…
A: Code =========== #open file file=open("input.txt") #read file and store data lin lines…
Q: What Is Surface Shading Algorithm?
A: Introduction: Surface shading algorithm: Steps/procedures to shade surfaces(plane/2D/3D) Used in…
Q: Explain The Interaction.
A:
Q: Describe how inline style sheets override the style of the HTML page in which they are used
A: Introduction What exactly is a Style Sheet: A Style Sheet is a collection of the style rules that…
Q: Discuss About The Beam-Penetration Technique.
A:
Q: The advantages and disadvantages of solid-state secondary storage devices compared to magnetic…
A: In reality, memory is utilized to store data and information. Hard disc drives (HDD) and Solid State…
Q: In other words, what exactly is a model of a real-time system? Define the RT-System model's…
A: Answer: A system that is subjected to real-time limitations is referred to as a "real time system."…
Q: Determine whether each of these functions from R to R is a bijection. f(x)=(x2+2)/(x2+3)
A: Please find the detailed answer in the following steps.
Q: What happens if we tie multiple outputs from a standard TTL family IC? Why?
A: A normal TTL family IC's various outputs can be tied together, but doing so results in very high…
Q: DISCUSS THE CONCEPT OF DIFFUSION REFLECTION.
A: The answer is given below step.
Q: Apply non-preemptive Shortest Job First (SJF) scheduling algorithm - Process ID P1 P2 P3 P4 P5…
A: Given tables contains, Five processes are that are P0 to P5. Each process contains it's own Arrival…
Q: What types of real life situations can be modelled with polynomial functions and also discuss the…
A: The question has been answered in step2
Q: What are the four aspects that should be taken into account when deciding how to schedule the CPU?
A: CPU scheduling is the process of determining which of the available processes in a system should be…
Step by step
Solved in 3 steps with 1 images
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }(Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.(Modify) a. Modify the program you wrote for Exercise 7 to provide the mass of a person as an output, given his or her weight as an input to the program. Use your program to determine the mass of a person who weighs 140 lbf on Earth. b. Modify the program written for Exercise 7a to also output the person’s weight on Mars and the moon. The pull of gravity on Mars is 12.54ft/sec2=3.728m/s2,andonthemoonis5.33ft/sec2=1.625m/s2.
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.1. Federal law requires that hourly employees be paid “time-and-a-half” for work in excess of 40 hours in a week.For example, if a person’s hourly wage is $12 and he or she works 60 hours in a week, the person’s gross pay shouldbe (40 *12) + (1.5 *12 * (60-40)) = $840.Write a program that requests the floating number of hours a person works in a given week and the person’s hourlywage as input, and then displays the person’s gross pay. Save it as overtimePay.py
- An oil slick occurs when an underwater refinery pipe ruptures, pumping oil into the water. The spilled oil sits on top of the water and causes a natural disaster. For simplicity, suppose that the oil sits on top of the water in the form of a circle. Write a program that prompts the user to enter the rate at which the ruptured pipe pumps oil (in gallons) per minute, the thickness of the oil on top of the water, and the number of days for which the area is covered by the spilled oil. The program outputs the spilled area (in kilometer) and the volume of oil (in gallons) on top of the water after each day.The New Telephone Company has the following rate structure for long-distance calls: The regular rate for a call is P8 per minute. Any call started after 6:00P.M. (1800 hours) but before 8:00 A.M (0800 hours) is discounted 50%. Any call longer than 60 minutes receives a 15% discount. All calls are subject to 4% federal tax on the cost after any discounts. Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added).. The progressive income tax rate is mandated as follows: Taxable Income Rate (%) First $20,000 0 Next $20,000 10 Next $20,000 20 The remaining 30 For example, suppose that the taxable income is $85000, the income tax payable is $20000*0% + $20000*10% + $20000*20% + $25000*30%. Write a program called IncomeTaxCalculator that reads the taxable income (in int). The program shall calculate the income tax payable (in double); and print the result rounded to 2 decimal places. For examples, Enter the taxable income: $41234 The income tax payable is: $2246.80 Enter the taxable income: $67891 The income tax payable is: $8367.30 Enter the taxable income: $85432 The income tax payable is: $13629.60 Enter the taxable income: $12345 The income tax payable is: $0.00
- C++ Programming Exercise: Ther are 50 apartment units. When the rent is $600 per month, all the units are occupied. However, for each, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…the electrical resistance r (in ohms) of a metal wire is given by the formula r = (ml)/ a where m is the resistivity of the metal; l is the lenght of the wire in feer, and a is the cross-sectional area of the wire ( in the circular mils) write a program that allow user to input for l and a for a copper whose resistivity m of copper is 10.4. Calculte the resistance of a wire