In this program you will produce an output of the total tax based on your income and marital status. If you are married, your tax rate will be 25%. If you are single, your tax rate will be 20%. Write a program that asks Abi if s/he is single or married and then asks the user the income and shows the results. Please read Abi’s persona below.
Q: Suppose you wanted to implement a control unit for a computer that you are designing. A. Would you…
A: The above question is solved in step 2 :-
Q: Q.4 Discuss different standards related to information security.
A:
Q: Explain when a scatter map visual can be used AND if scatter map visuals are effective or…
A: Chart visual => Data visualization charts are graphical representations of data that use…
Q: 1. Design a C++ program named (permu_combi.cpp), that presents a menu to select to calculate…
A: The C++ program is given below:
Q: List 5 most important agility principles. Why do you think they are important?
A: Introduction: The software development process takes a sizable part of the entire software…
Q: solve q if you know correct ans otherwise you will get downvote What is Integrated ARMA Models in…
A: It is essential to exclude nonstationary sources of variation in order to fit a stationary model. It…
Q: Lab-2: Write a program to implement a full calculator that must add two float numbers using a case…
A: ALGORITHM:- 1. Take input for the choice of operation from the user. 2. Take the operands as input…
Q: Consider a Disk I/O transfer, in which 1500 bytes are to be transferred, but number of bytes on a…
A: Given data: data to be transfer = 1500 bytes No. of bytes on track = 1000 bytes Rotation speed =…
Q: Can you show this program in Eclipse with Java instead of Python?
A: In this question we have to write a java code for above problem Let's code
Q: cost of a connection is reduced? Why? How about connecting two nodes th
A: The answer is
Q: Based on the following information I need help in coding in Java for the appropriate classes. *)A…
A: The answer is given in the below step
Q: Give the view of OS as an extended machine
A:
Q: A client requires an internet presence that is equally good for desktop and mobile users. What…
A: A responsive website. A developer should build a responsive website to address a variety of screen…
Q: Calculate how many customers there are for each lawn size in access database.
A: The above question is solved in step 2 :-
Q: Gamer: (UserID, Name, Age, Address, City, Favorite-Game, Rank) Game:…
A: List the name and category of the game as well as the name and address of the store selling it. Name…
Q: What is operating System? Explain the abstract view of the components of a computer system.
A:
Q: What is the physical address?
A: Physical address is the memory address that is represented in the form of a binary number on the…
Q: Therapy Groups Recreation Groups Socialization Groups Education Groups These groups are gener…
A: Therapy groups: Who is group therapy for?Anyone can participate in group therapy. However, group…
Q: Please do it with regular expression. Don't use loops please. Do fast, I have no time left Write a…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: he picture size is 100x150mm, the D culate the total number of pixels in th lor depth is 24bit,…
A: SummaryNote:Factors of printed image that DPI affects are:#size #quality It does not affect the size…
Q: How can the use of artificial intelligence (robots) affect the work of some people?
A: The above question is solved in step 2 :-
Q: ifndef SEQUENCE_H #define SEQUENCE_H #include // provides size_t namespace…
A: C++ which refers to the object oriented programming languages. C++ also provides the cross platform…
Q: Q.28 Explain strength and weakness of Kerberos.
A:
Q: Select which network to which each IP address is a part of, either Network A or Network B. Network…
A: For Network A - Number of IP address assignable is found by subtracting 24 from 32 which is 232-24 =…
Q: what is added to the UML diagrams and the scenario descriptions that makes the models more physical…
A: UML Diagram:- It stands for Unified modeling language which is used to visually represented the…
Q: When learning about using Divide and Conqueror algorithms with maximum sub arrays. How do I…
A: How do I approach in the process of solving using either Brute force, divide and conqueror, and…
Q: An explanation of "What precisely is a data warehouse?" Aside from that, what exactly is the purpose…
A: Please find the answer below :
Q: Define a recursive function merge: Ord a => [a] -> [a] -> [a] that merges two sorted lists of values…
A: Lets see the solution.
Q: Write a Python code that can allow as to change the Fibonacci expression F(n,2,q) to F(n,k,q). where…
A: The code defines a Fibonacci function that accepts n, k, and q as its three input parameters.…
Q: How do I find P(A) and also P(B) given P(C) P(C') P(AlC) P(BlC) P(AlC') and P(BlC'). And how do I…
A: Conditional probability: The conditional probability of X given Y is denoted as P(X|Y). P(X|Y) = P(X…
Q: Q2: Write C++ program to read four integer numbers and determines the maximum number among them…
A: The above question is solved in step 2 :-
Q: 8 - For the following operations: write the operands as 2's complement binary numbers then perform…
A: Regular addition (decimal addition) and binary addition merely vary in that binary addition utilizes…
Q: )A hotel has a name and several rooms. When a hotel is built, the name and the number of rooms…
A: The answer is
Q: What number does the bit pattern 1001 0110 represent if it is a sign-magnitude integer?
A: Binary numbers which refers to the one that it is a number expressed in the base-2 with the numeral…
Q: Problem Statement Create a program that will determine the day a particular date falls. Input Input…
A: Here is the solution:
Q: Explain the whole process of how a neural network learns in extracting/finding patterns in large…
A: The whole process of how a neural network learns in extracting/finding patterns in large sets of…
Q: Your task is to write the following C programs: •ls: list contents of a directory •find: find…
A: C programming With a static type system, C is an imperative procedural language that supports…
Q: Given the following function, answer the two questions that follow CREATE OR REPLACE FUNCTION Cale…
A: (a) In the function parameter list, the word IN means that the function is expecting an input value…
Q: I don’t understand anything that’s happening What’s xs and ys
A: As the Problem Statment is not clear here, I will try to explain it as best of my ability. According…
Q: Code to Generate image captcha in python?
A: Note: Please install the captcha module before running/executing the given/solution code, otherwise,…
Q: The content of a file containing UTF-8 Unicode encoded text is given by the following sequence of…
A: Binary notation is a system of numbers that has only two different integer values 0 and 1. we need…
Q: Imagine that your current working directory within a terminal only contains a single, empty folder,…
A: There are various commands used in linux to perform to various kinds of operations.
Q: Write an algorithm that fills the matrix T of N elements of integr, then sort it using selection…
A: Solution in Step 2:
Q: face difference between telephones in mid 1900's and present landline technology
A: It is defined as A telephone is an electronic device that you use for conversations over great…
Q: a) (p ∧ ~q) ∧ p True False
A: Tell if the statements are true or false. Let p: 3 + 5 = 6; q: 5 + 5 = 10. (a) (p ∧ ~q) ∧ p True…
Q: Given the 4-bit adder/subtractor circuit below, which inputs can perform 2-7? V By A₂ FA -5 Sy M=0,…
A: According to the information given:- We have to follow the instruction in order to choose the…
Q: Q.9 Explain IT Act, 2000. Give Aims and Objectives of IT Act.
A: The Information Technology Act of 2000 was made public on October 17, 2000. It was a law in India…
Q: Q. 12 Explain TLS.
A: TLS stands for Transport Layer Security.
Q: Explain working of AES in detail.
A: These question answer is as follows
Q: Genetic Algorithm n-Queens problem if i have 5 parent or 5 inti pop how to crossover?
A: Genetic algorithms are used with new fitness functions as meta-heuristics. The goal of the N-Queens…
- In this
program you will produce an output of the total tax based on your income and marital status. If you are married, your tax rate will be 25%. If you are single, your tax rate will be 20%. Write a program that asks Abi if s/he is single or married and then asks the user the income and shows the results. Please read Abi’s persona below.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- 4. Write a program which to find the grace marks for a student using switch. The user should enter the class obtained by the student and the number of subjects he has failed in. - If the student gets first class and the number of subjects he failed in is greater than 3, then he does not get any grace. If the number of subjects he failed in is less than or equal to 3 then the grace is of 5 marks per subject. - If the student gets second class and the number of subjects he failed in is greater than 2, then he does not get any grace. If the number of subjects he failed in is less than or equal to 2 then the grace is of 4 marks per subject. - If the student gets third class and the number of subjects he failed in is greater than 1, then he does not get any grace. If the number of subjects he failed in is equal to 1 then the grace is of 5 marks per subject. [Marks - 10]Bob is playing a game. He and his team have come up with a plan to throw a ball so that it can hit the target object. The target is at a distance of X meters from Bob. He is at a height of Y meters from the ground and the target is at a height of Z meters from the ground. Bob can throw the ball with a certain speed Task Determine the speed that he should throw the ball. Notes He is aiming at an angle parallel to the ground. Assume acceleration due to gravity is 10m/s² Example Assumptions • X = 2 • Y=5 • Z=2 Approach It can be calculated that he needs to fire at speeds 2.58m/s at an angle parallel to the ground respectively. The answers are taken up to 2 decimal places only. Hence, the answer is 2.58 m/s. Function description Complete the solve function provided in the editor. This function takes the following 3 parameters and returns the minimum speed required: • X Represents an integer denoting the distance of the target from Bob • Y Represents an integer denoting the height of Bob…Task 03: Read the concept of Binomial coefficient given in chapter-6. Write a method that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k). For example, your function should return 20 for n = 6 and k = 3, and it should return 35 for n= 7 and k = 4. ( confirm it through the Pascal's triangle as given below). 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 15 10 10 5 1 15 (20) 15 6 1 1 7 21 35 (35 21 7 1 1
- The objective of this program is to demonstrate your proficiency with the if-elif-else construct. Your program will consist of a simple guessing game. Using the random module, generate an integer between 1 and 10. This will be the secret. You will then ask the user for a guess between 1 and 10. . If the guess is greater than the secret respond, "Too high". • If the guess is less than the secret respond, "Too low". . If both numbers are equal respond, "Success!". Remember to test your program to ensure that all of the comparisons work. Please note that a loop is not required. The images below shows the program being run multiple times to display the three different possible output messages. Your display should look like this. User input is highlighted in green. Please enter your guess: 10 Too high! Please enter your guess: 5 Too low! Please enter your guess: 1 Success!Exercise 2: ● . ● Write a program to simulate tossing a "fair" coin. Allow the user to enter the number of tosses. Print the number of tosses that yielded heads and the number of tosses that yielded tails. What should be the percentage distribution of heads and tails?In this exercise, we are going to revist our Car and ElectricCar class from lesson 3. In lesson 3, you were given the Car class and needed to complete the ElectricCar class. You can use your code from that exercise to get started here. The focus of this exercise is the CarTester class. In this class, you will prompt the user for a car model and if the car is not electric, you will also prompt the user for the miles per gallon. For each car, you will add it to a single ArrayList. You will continue asking the user until they exit, then you will loop through your ArrayList and print the results. Remember, for a method call to compile, it needs to be defined in the reference type (the Car class in this exercise), but the actual method that executes will be based on the instantiated class. In this exercise, we want electric cars to run the Override methods. Sample Output Please enter a car model name(exit to quit): Tesla Is this car electric? (y or n) y Please enter a car model name(exit to…
- In this exercise, we are going to revist our Car and ElectricCar class from lesson 3. In lesson 3, you were given the Car class and needed to complete the ElectricCar class. You can use your code from that exercise to get started here. The focus of this exercise is the CarTester class. In this class, you will prompt the user for a car model and if the car is not electric, you will also prompt the user for the miles per gallon. For each car, you will add it to a single ArrayList. You will continue asking the user until they exit, then you will loop through your ArrayList and print the results. Remember, for a method call to compile, it needs to be defined in the reference type (the Car class in this exercise), but the actual method that executes will be based on the instantiated class. In this exercise, we want electric cars to run the Override methods. Sample Output Please enter a car model name(exit to quit): Tesla Is this car electric? (y or n) y Please enter a car model name(exit to…A flight of stairs has 10 steps numbered 1 to 10 as shown in the figure below. i. How many ways could you climb up the set of stairs, assuming that you can skip any number of stairs with each step, but you must end on step 10 and you can only go up, never down and never remaining on the same step. ii. How many ways could you climb up the set of stairs, assuming you take exactly 4 steps. Again, your staircase climb ends on step 10. JAlthough there are different ways in which you could solve this problem, model the problem as a balls and bins problem for full credit.Task 1 Description let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance.So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee.Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet. Objectives Let's break the task into several steps:First, read the numbers of coffee drinks from the input.Figure out how much of each ingredient the machine will need. Note that one cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 g of coffee beans. Output the required ingredient amounts back to the user.ExamplesThe greater-than symbol followed by space (> ) represents the user input. Notice that it's not the part of the…
- Scenario As you surely know, due to some astronomical reasons, years may be leap or common. The former are 366 days long, while the latter are 365 days long. Since the introduction of the Gregorian calendar (in 1582), the following rule is used to determine the kind of year: if the year number isn't divisible by four, it's a common year, otherwise, if the year number isn't divisible by 100, it's a leap year. otherwise, if the year number isn't divisible by 400, it's a common year. otherwise, it's a leap year. none of the above year int(input("enter the year")) if (year%4 1-0) and (year%400 -0) or (year % 1000): print (year is common year") else: print(year, is leap year") year= int(input ("enter the year")) if (years !-0) or (year480 1-0) and (year % 1001-0): print(year is common year") else: print(year, "is leap year") D year= int(input("enter the year"))When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)Write a program that recommends the number of calories a person should eat each day. Calories are units of energy found in all foods. Base your recommendation on the person's weight and whether the person has an active or sedentary (inactive) lifestyle. If the person is sedentary, that person's activity factor is 13. If the person is active, that person's activity factor is 15. Multiply the activity factor by the person's weight to get the recommended number of calories. Start your program by: having the user enter their weight, as a floating point number; having the user enter whether they have active or sedentary lifestyle, as a character, 'A' for active or 'S' sedentary; use a switch (or else if) selection statement to use the appropriate calculation for the recommended calories for the selected lifestyle. print out your results on the screen.