Using the switch, case, · · · , otherwise control structure, write a MATLAB program for calculating individual taxes
Q: % Dr. J.Lyver % CDS-130 ICE11C.m % 2/1/2019 clear; clc format bank P(1) = 7000; % opening…
A: PROGRAM: %Dr.J.Lyver %CDS-130 ICE11C.m %2/1/2019 clear;clc %clears screen format bank P(1) = 7000; %…
Q: (b who have reserved a red boat. ) Find the names and ages of sailors (c) have reserved a red and a…
A: b) Πsname,Πage,(σcolor='red'(Sailors ⨝ Reserves ⨝ Boats))
Q: Show the average of 74 (Failed),75 (Passed), and others Output: Enter Last Name : CAGADAS Enter…
A: Here, I need to write java code for the above question.
Q: COMPUTE FOR THE FOLLOWING: Gross Pay = no. of hours worked rate per hour (if no. hours is 8 hours or…
A: The program is written in C++. Please find the source code in step 2.
Q: A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk.…
A: import numpy as np import matplotlib.pyplot as plt product = { "Noodle":…
Q: Branching Statements on Tax Problems My Sc In 2009, individual citizens and residents of Australia…
A: The above code is solved in Matlab below:
Q: QUESTION The shelf life of the following vegetables and fruits can be extended using the packing…
A: clear all close all %function for amount of bacteria for given G f=@(t,G) 1000.*10.^(t./(3.3.*G));…
Q: 3- Suppose you have the information of some of chickens farms (F1, F2) as fallow: chicken dilscount…
A: Note: since your question contain multiple part but we can answer only first 3-sub parts due to our…
Q: Suppose the university has decided to announce bonus 1 PMS point to employees those have PMS points…
A: Given: The university has decided to announce bonus 1 PMS point to employees who have PMS points…
Q: Bowling Stat's D.B WR В — 1 В - 2 B - 3 X =| 5 В — 4 В - 5 4 10 2 27 1 14 13 3 40 3 5 2 22 12 3 37…
A: since you have posted multiple sub parts for the question, we will solve the first 3 sub parts for…
Q: Table (A) shows the individual incom assessment year 2020. If Open with Table (A): Income tax rates…
A: Objective: This program asks the chargeable amount from the user and computes the tax on the basis…
Q: In a company, the net salary of employees is a function of two discounts: the social security…
A: def socialsecurity(sal): if (sal<1659.38): ssc = sal*0.08 return sal-ssc…
Q: Experiential students who are at least 21 years old and have completed at least three years of…
A: To discuss the formula used in excel to assess if Kay Colbert is eligible to serve as a mentor based…
Q: 1. In the second semester of the 3rd year Rahim found that his CGPA is really not up to the standard…
A: Include the required headers in the answer program. Declare the main function in the program.…
Q: Random Population Y intercept Population Slope Coefficient Independent Variable Error term Dependent…
A: Here is the detailed explanation of the solution
Q: Barb and Jim run a business that sets up and tests computers. Assume that Barb and Jim can switch…
A: Barb take 48 minutes to set up a computer To test a computer barb take= Computer tested/40 hours=…
Q: A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer…
A: Q: Detect Error in program.
Q: Determine whether the following argument is valid or invalid. type a truth table and a few words…
A: Using a, b and c, we first translate the given argument into symbolic form. Then, using the supplied…
Q: ind the names of all employees who earn more than every employee of Small Bank Corporation. 8.…
A: I have answered QUERRY Below:
Q: The standard deviation measures the spread of the data about the mean value. It is useful in…
A: #include <iostream> using namespace std; int main(){ int…
Q: F20 fx A B c D E H Practical University 1 2 3 Name Score Grade Score Grade We need a function to…
A: The question is to calculate grade using vlookup function.
Q: A matrix for rugby results shows the number of conversions, drop goals and penalties for three teams…
A: Question given: A matrix of size (3,3) stores number of conversion, drop goals and penalty by 3…
Q: Consider the following list of Xi,Yi values: Xi Yi 1 2 2 4 3 6 Using the above data,…
A: Summation is the addition of any sequence. The result is the sum of all the values of sequence. Here…
Q: corporate profits sum The sales purchases experses profit 4% tax I profit all compares) 1000 5000…
A: 1) =MIN (F3:F7)
Q: phyton 3#use if, elif or else In a company, the net salary of employees is a function of two…
A: In this program, you need to read input from user for gross salary first. Then you need to apply…
Q: Question 31 A survey on pollution has been conducted on four cities. The degree of pollution is…
A: Given Data, City city1 city2 city3 city4 xi1: not…
Q: Q7:The electricity accounts of residents in a very small town are calculated as follows: > if 500…
A: % Script that calculates the electricity bill % Input vectoripVec = [200, 500, 700, 1000, 1500]; %…
Q: The standard deviation measures the spread of the data about the mean value. It is useful in…
A: Mean of a set can be found using formula , mean = sum of values/ total number of valuesi.e mean =…
Q: Give an example of a column A and a column B such that B is functionally dependent on A. Give an…
A: A table in the database consists of rows and columns. The dependency of the row and column is based…
Q: Homework İTÜ A laboratory test was performed to obtain the change of concentration with time. Test…
A: I have implemented the code find the value at t=20 display the result as per the given description.…
Q: Taxable Income N$ 2021/22 (N$) 0- 50 000 Not taxable 50 001 - 100 000 18% for each N$ above 50 000…
A: Answer is given below .
Q: The Electricity Distribution Company has recently adopted new tariffs for residential electricity…
A:
Q: Using C. This question deals with processing the semi-annual sales for a drug store. The drug store…
A: Source Code in C++ #include <iostream>#include <string>#include <limits> using…
Q: 5. Consider the following formula for body mass index (BMI) weight height BMI - × 703 BMI Weight…
A: import java.util.Scanner; public class Main{ public static void calcBMI() { Scanner…
Q: Taxable Income N$ 2021/22 (N$) 0- 50 000 Not taxable 50 001 - 100 000 18% for each N$ above 50 000…
A: MATLAB code :- disp("Enter amount in Namibian Dollars : ");N=input('PROMPT');total=0;if N>0…
Q: Let a DFA M = (Q, E, 8, q,, F) as shown in below figure. a, b 4. a,
A: Given data:-
Q: Objective/s: Apply logical functions given certain conditions 1. Open a new workbook and type the…
A: The answer is given below:-
Q: estion 7 of 20 : ect the best answer for the question. Use the remainder theorem to determine the…
A: Here in this question we have given two expression and we have asked to apply remainder theorem and…
Q: Determine whether the identifier is valid or not valid. If it is invalid, change it to make it…
A: Definition of identifiers: Identifiers are the valid names used for the variable names, function…
Q: The following table shows a utility company's cost to supply a fixed amount of power to a new…
A: The Answer is
Q: employees, their hourly pay rates, gross deduction of income tax just use 20%) for each employee.…
A: Code in C++ - #include<bits/stdc++.h>using namespace std; int main(){ // create a nested…
Q: r mismatch - from PAM250 su
A: The matrix is given as,
Q: Question $9 .$ Given $$ z(x, y)=-\sin \left(x^(4) y^{2}\right) $$ find $\frac{\partial z}{\partial…
A: Answer: I have given answered in the handwritten format in brief explanation.
Q: Consider the following list of Xi , Yi values: Xi , Yi 1 2 2 4 3 6 Using the…
A: (Summation Yi )2 =( Y1 + Y2 + ....)2 Summation of Yi2 = Y12 + y22 + ....
Q: Set-E2. A 41-year-old consulting engineer wants to set up a retirement fund to be used starting at…
A: Final Amount A = $80,978.69
Taxable income (NAD*) | Tax on column 1 (NAD) | Tax on excess (%) | |
Over (column 1) | Not over | ||
0 | 50,000 | 0 | 0 |
50,000 | 100,000 | 0 | 18 |
100,000 | 300,000 | 9,000 | 25 |
300,000 | 500,000 | 59,000 | 28 |
500,000 | 800,000 | 115,000 | 30 |
800,000 | 1,500,000 | 205,000 | 32 |
1,500,000 | 429,000 |
37 |
Q Using the switch, case, · · · , otherwise control structure, write a MATLAB program for calculating individual taxes
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Note: “breadth” is a boolean indicating whether or not a course satisfies the breadth requirement for degrees in the Faculty of Arts and Science. Student(sID, surName, firstName, campus, email, cgpa) Course(dept, cNum, name, breadth) Offering(oID, dept, cNum, term, instructor) Took(sID, oID, grade) answer queries for them Department and cNum of all courses that have been taught in every term when csc448 was taught? Name of all students who have taken, at some point, every course Gries has taught (but not necessarily taken them from Gries).? Department and course number of courses that have never been offered?Table (A) shows the individual income tax rates for assessment year 2020. Table (A): Income tax rates assessment year 2020 Chargeable Income (RM) 0- 5,000 Calculation (RM) On the First 5,000 On the First 5,000 Next 15,000 On the First 20,000 Rate % Таx (RM) 5,001 – 20,000 1 150 150 20,001 – 35,000 3 Next 15,000 450 On the First 35,000 Next 15,000 600 35,001 – 50,000 8 1,200 Write a complete C program to prompt the user to enter the total chargeable income (RM), and then calculate the tax based on the calculation given in Table (A). For example: Prem's chargeable income = RM30,000 (RM20,000 + RM10,000) Total tax = RM150 (for first RM20,000) + RM300 (3% x RM10,000) = RM450 The program will then display the result which is the total amount tax needed to be paid in Ringgit Malaysia (RM), up to three significant digits after the decimal point. Requirements: Apply one return value function, include parameter list if necessary - Apply one non-return value function, include parameter list if…Table (A): Income tax rates assessment year 2020 Chargeable Income (101) Calculation (RM) Rate % 'lax (101) 0 — 5,000 On the First 5,000 0 0 5,001 — 20,000 On the First 5,000Next 15,000 0150 20,001 — 35,000 On the First 20,000Next 15,000 150450 35,001 — 50,000 On the First 35,000Next 15,000 8 6001,200 Write a complete C program to prompt the user to enter the total chargeable income (RM), and then calculate the tax based on the calculation given in Table (A). Requirements: - Apply one return value function, include parameter list if necessary - Apply one non-return value function, include parameter list if necessary - If user enter chargeable income that is out of range (refer to Table (A)), display an error message and ask user to re-enter the chargeable income. - Repeat the program for 3 times.
- Question 1 included for referencecredits Q3: Normalize the following table, given 1NF, 2NF and BCNF: Module Dept Lecturer Texts M1 D1 L1 T1,T2 M2 D1 L1 T1,T3 M3 D1 L2 T4 M4 D2 L3 T1,T5 M5 D2 L4 T6Sheet1 Sheet2 Sheet3 A В C D F K TABLE FOR EMPLOYEE SALARY 4 EMP ID EMP NAME TOTAL SALARY TAX1 TAX2 NET SALARY notes 1 TAYSEER 850 tax1 = 10% from total salary 6. 2 SARA 450 7 3 SAMAH 700 tax2= 5% from total salary if its =700 8. 4 МОНАММAD 350 9. 5 KHALED 1200 10 6 ALI 1000 11 SAMI 670 12 13 MAXIMUM NET SALARY 14 MINIMUM NET SALARY 15 insert a chart between EMP NAME and NET SALARY SUM OF THE NET SALARIES 16 AVERAGE OF THE NET SALARIES 17 SUM OF THE TOTAL SALARIES 18 10 2 3
- Table EMP Column name Column type Integer Up to 10 characters Example entry EMPNO ENAME Description Employee ID number Employee surname 7369 SMITH Integer Integer Employee's job title No ID no. of employee's JOBNO 10 MGR 7566 manager HIREDATE Date 17/12/1980 Date employment started Monthly salary SAL Integer 1600 Table JOB Column name Column type Integer Up to 15 characters Example entry Description job title No Employee's job title JOBNO 10 JOB TITLE SALESMAN a) Write SQL statements to create EMP and JOB tables. Define appropriate data types and check constraints for the tables' fields. Write SQL statements to populate these tables with 3 rows of sample data.Table name: ADVISORS ADVISORID ADVISORNAME A102 Sami A103 Alice A104 Suad A105 Tamil A101 Arun Table name: DEPARTMENTS DEPTID DEPTNAME D102 ELC D101 IT D103 BSD D104 ENG Table name: STUDENTS STUDENTID STUDENTNAME DOB GENDER ALLOWANCE DEPTID ADVISORID STUDENTLEVEL AGE Hisham 6/1/1999 Male 90 D102 S103 A102 Level 1 22 12/30/1994 Female 45 D103 S102 Sara A104 Diploma 27 S101 Salim 6/1/1999 Male 45 | D103 A104 Diploma 22 5107 Khalil 5/6/1995 Male 45 D101 A101 Blech 26 45 | D104 Advanced Diploma S109 Said 10/15/1992 Male A101 29 5/1/1995 Male 45 D101 90 D104 5100 Ahmad BTech Advanced Diploma A103 26 4/5/1998 Male 2/23/1992 Female 9/12/1999 Female S104 Faisal A101 23 0 D102 45 D102 S105 Fatima 90 A102 Level 2 29 S106 Arwa A102 Level 3 22 S108 Ibtisam 8/13/1991 Female 90 D103 A104 Diploma 30 Write the SQL statement for the following: 1. Using the ON clause, display the advisor name and student name for all students in the BTech level 2. Display the student name, gender and department name of…Table below shows the number of students enrolled in public university for the study field of Science, Mathematics & Computing by programme level and year. Programme Level Year Number of Students Diploma 2019 17373 Bachelor 2019 51640 Master 2019 6918 Doctorate 2019 6292 Diploma 2018 15987 Bachelor 2018 51128 Master 2018 7200 Doctorate 2018 6331 Diploma 2017 15236 Bachelor 2017 49970 Master 2017 6985 Doctorate 2017 648 i) Based on the above table, using the number of students as the key value, draw a Binary Search Tree to store the data.
- CASE BACKGROUND Levi Landon owns a small lawn care business with three employees. He owns the lawn mowers, rakes, and weed whackers that are housed in a storage area at the back of his home. He currently keeps his records in a spiral-bound book. He has a page for his list of customers, and their information including when he first started to do their garden, and the size of their lawns. He has another section to keep track of payments. Levi usually requires payment on completion of the service, but this rarely happens and he has lost track of who owes him and how much. Levi realizes that he is not as efficient as he could be in his record keeping and asks you to help him to track customer service dates, payments and lawn care revenue. He may want to get a loan to purchase some more equipment. He provides you with his book of customers, and payments and prices of the various lawn sizes. To help Levi with the reporting requirements, you need to work with Customer, Payment, and Prices…INPUT Name of StudentCourse Code (1, 2 or 3)]Given Table for Tuition FeeCourse Code Tuition Fee1 - BSIT 130002 - BSECE 150003 - BSP 12000Wrong code 0OUTPUTTuition Fee to PayOrder Number: 5678 Customer Number: 9123 Customer Name: Thomas Customer Address: 51 Samora Machel Street City- Country: Durban, South Africa ProductNo A 123 B 234 C 345 Description A4 Paper Order Form Toner Staples Normal Form Quantity 100 200 1000 Date: 25/12/2020 Unit Price R1.00 R150.00 R5.00 1.1 Using normalization principles, depict the ONF, 1NF, 2nd NF and 3rd NF of the data above. Example: Below is an example of the table information converted to zero normal form, read chapter five in your module guide and convert the table to first, second and third normal form. The format of your answer must be as depicted below: • ORDER( order number, customer number, name, address, order date(product number, description, quantity, unit price))