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; }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.(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.
- Financial application: compute future apartment rent) Suppose that the rent for an apartment is $1000 thisyear and increases 3% every year. Write a program that computes the rent in five years and the total rent forone year starting five years from now.1. Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an integer and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.Exercise I- Medicine Write a program that asks the user to enter the name of the medicine (t for ThroX, f for FeliX), his mass. The user should enter as well if he has a prescription or not. The program will calculate the dosage using: age and his ThroX without prescription -The max dosage should be 0.75 mL -The dosage = mass / 150 -The number of pills per day to take is 1 ThroX with prescription -The dosage =mass * 3 / 150 -The number of pills per day to take is 5 FeliX with prescription -The dosage = 0.77 mL FeliX without prescription -The dosage should be between 0.3 and 0.7 -The dosage = mass * 0.009 -The number of pills per day to take is 2 -The number of pills per day to take is 6 The program should display the dosage and the number of pills to be taken per day if the requirements are full filled, otherwise it display "Please check your doctor for a prescription". In case the medicine does not exist in the database, the program display “Your medicine is not in our database!"…
- Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) Input: the name of the movie, number of adult tickets sold, number of child tickets sold Output: as specified below Object: cin, cout, getline, format output Note: 1. Movie names contain spaces 2, the report is aligned. 3. The decimal number is displayed with 2 decimal places.Program - python A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. Then, she calculates the number of calories that result from the fat, using the following formula: calories from fat = fat grams x 9. Next, she calculates the number of calories that result from the carbohydrates, using the following formula: calories from carbs = carb grams x 4. Write a program that will make these calculations. Your program should use two separate functions to calculate fat and carb calories. Write a 3rd function that is called from main to capture user input and call the others.السبت ۲ أكتوبر المحاولة رقم 1 :2 HW • Write a program that computes the average of 5 students grades which are entered by the user. Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. محتوى إضافي؟ يمكنك إضافة نص وملفات تدعم إجاباتك. إضافة محتوی إرسال الحفظ لوقت لاحق
- Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can determine what type of radiation it is. Write a program that asks for the wavelength in meters of an electromagnetic wave and then displays what that wave is according to the following chart. (For example, a wave with a wavelength of 1E-10 meters would be an X-ray.) 1x 10-11 1 x 10-8 4 x 10-7 7x 10-7 1x 10-3 1 x 10-2 Gamma Rays. X Rays Ultraviolet Visible Light InfraredProblem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr 40hrs) + ($30/hr 20 hrs) = $800 + $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee's weekly paycheck. . Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following: What input does the computer need? What steps does the program need to follow to process the input? What output should…Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours and an additional $0.50 per hour for each hour or part thereof over three hours. The maximumcharge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hoursat a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for eachcustomer. Your program should print the results in a tabular format, and should calculate and printthe total of yesterday's receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format:Car Hours Charge1 1.5 2.002 4.0 2.503 24.0 10.00TOTAL 29.5 14.50