if (income <= 10000) tax = income 0.13; else if (income <= 20000) if (income <= 10000) tax = income * 0.1; else if (income > 10000 && income <= 20000) tax = 1000 + %3D tax = 1000 + (income (income - 10000) * 0.15; 10000) * 0.15;
Q: Rock Paper Scissors Lizard Spock (RPSLS) is an extended version of the classical game of chance Rock…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: 04 what is the result of following if: a=3, b=3? i- ab iv- a>=b V- a==b vi- a!=b
A: Implementing the above statements through C++ langauge. #include <iostream>using namespace…
Q: Write the inverse of the following statement: “If it is winter, then it is snowing.”
A: As given, we need to write the inverse of the given statement. The given statement - "If it is…
Q: Suppose, you have $10 to buy food for a day. You have several options, but you need to maximize…
A:
Q: An electronic shop wants you to write a program to take orders from the clients and print the…
A: while changing from input type to number to string, make sure you clean the unwanted spaces in the…
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Algorithm : Step 1 : declare variables. Step 2 : assign the marks of each student in each variable.…
Q: A salesman is paid a commission on the following basis: Sales Value (SV) Commission up to P10,000.00…
A: Steps followed: Declare sales value(sv) and commission(comm) variables. Read sales value (sv) from…
Q: Input Th first line contains one integer t (1 < t < 1000) – the number of test cases. The only line…
A: In this Programming question we have to determine code and output of building with new layout…
Q: Let t0 be a specific value of t. Find t0 such that the statement is true: P(t ≥ t0) = 0.005 where df…
A: Dear Student, To find it's answer we need to refer to t-table . Here given that, P(t ≥ t0) = alpha =…
Q: Write a program that calculates and displays a person's body mass index (BMI). The BMI is often used…
A: Answer in step2
Q: how to solve this in python A retail company assigns a $5000 store bonus if monthly sales are more…
A: Decision control in python: A statement that controls the flow of the program. It is a statement…
Q: In city street grids, intersections are often defined by two integers, counting the position of…
A: We need to add the line int distance = Math.abs(h2-h1) + Math.abs(v2-v1); in the given code to…
Q: Project description The problem here is to make change using the smallest number of American coins.…
A: Code: #include<stdio.h>#include<stdlib.h>int *change(int amount){ int *data =…
Q: The short-term, 0-24 hours, parking fee, F, at an international airport is given by the following…
A: Program Planning: Include necessary header files. Prompt the user to enter the number of hours a…
Q: In Java: year in the modern Gregorian Calendar consists of 365 days. In reality, the earth…
A: import java.util.Scanner; public class Main{ public static void main (String[]args) { Scanner…
Q: Write a program that will accept the following inputs from the user: Company ID,…
A: //Note:since programming language is not given, we are providing answer in…
Q: When you use a mortgage to purchase a home, the lending institution effectively owns the home. You…
A: Answer :
Q: The game of Pig is a simple two-player dice game in which the first player to reach 100 or more…
A: This is required code to perform above problem statement. See below step for code and output:
Q: • P(x): x was sick • Q(x): x went to work R(x): x attended the meeting What is the form of the…
A: 1) Here the statement holds true for all employees. Thus we need to use universal quantifier. Also…
Q: Test Case 1 == One Year Interest Calculator == \n| How much money do you have? \n 100 ENTER What's…
A: GIVEN:
Q: A program calculates the total salary of an employee with the condition that if the working hours…
A: Given:
Q: Jacob is a retailer for ice. Normally a bag of ice costs $2.5, but the price varies with the amount…
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner sc = new…
Q: uppose, you are working in a company ‘X’ where your job is to calculate the profit based on their…
A: Note:- I am taking the Python part. Program: class FinalQ: def print(self,array,idx):…
Q: The Significance (S-value) of an integer number is the number of the digits that are composing the…
A: PROGRAM EXPLANATION: - The program comprise of multiple parts. The input is taken from user for the…
Q: A corporation named XYZ needs a program to calculate how much to pay their part-time and full-time…
A: The program code is : - for XYZ company : class Employee: def…
Q: MPUTER PROGRAMMING... Choose all the valid variable names. A. point_2_point B.…
A: Choose all the valid variable names. A. point_2_pointB. wage125C. savings#accountD. _grossE. annual…
Q: In investment analysis,the following equation is frequently used; A=P(1+r/100)n Where n =10 years.…
A: PHP program to find A = P(1+r/100)n
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
Q: Suppose you can buy chocolate bars from a vending machine for $1 each. Inside every chocolate bar is…
A: Write a test program in C++that would allow the user to enter amount of dollars and then use the…
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A:
Q: 1/ A Cuii number is the one whose digit sum is 17. Find out KthCuii number. K is an integer given as…
A: As per our company guidelines we are not supposed to answer more than one question per post and…
Q: Rock Paper Scissors Lizard Spock (RPSLS) is an extended version of the classical game of chance Rock…
A: the code is an given below : You can place this code in your project. #include…
Q: Ask the user to enter a day of the week in 3 letters. * Respond with the meal plan for that day.…
A: PROGRAM: //Header file import java.util.Scanner; //Defining the class class WeeklyMeakPlan {…
Q: What is the probability that in a classroom of x people, at least 2 will be born on the same day of…
A: Introduction What is the probability that in a classroom of x people, at least 2 will be born on the…
Q: n Python input 1 and input 2’s degree is 4 If input 1 and input 2 have same parents, result return 0…
A: SUMMARY: -Hence, we discussed all the points.
Q: Duke Shirts sells Java t-shirts for $24.95 each, but discounts are possible for quantities as…
A: Java Code:- import java.util.*; public class Main { public static void main(String[] args)…
Q: suppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display…
A: Summary: In this question, we have been given the yearly payment of a person and his payment doubles…
Q: Java code Ever wondered how change is disbursed to customers in certain stores? In country X the…
A:
Q: Write a program that will determine the salary of an employee based on his or her rank as follows:…
A: Let's understand step by step : Since programming language is not given so using C++. Now steps…
Q: 8. Write a program that will determine the salary of an employee based on his or her rank as…
A: Note: since programming language is not mention , we are providing solution in c++ . please repost…
Q: If you have been given the full amount required and the list represents the amount of change in your…
A: Notes:- quarter: 25 cents / $0.25 dime: 10 cents / $0.10 nickel: 5 cents / $0.05 penny: 1 cent /…
Q: (10 points) Suppose you have just finished approximating f(x) = x5 for 0 ≤ x ≤a and ended up with…
A:
Q: UTAS College teacher need to enter 75 marks of students and find out the following • Find out the…
A: program: //importing essential java package import java.util.Arrays; //import Scanner class…
Q: In order to discourage excess electric consumption, an electrical company charges its customers a…
A: Please note the given values in the output do not reflect the given rate of 7.5 for the first 250 kW…
Q: The short-term, 0-24 hours, parking fee, F, at an international airport is given by the following…
A: Hey! Since you have not specified the programming language you need the answer in, we are solving…
Q: Problem: Qty: X Machine A Total? Current Sol A Sol B Machine B Qty: 1 Machine A takes in X units of…
A: The answer as follows
Q: You have 3 buckets, the first of size 4 gallons, the second of size 10 gallons and the third of size…
A: Question:
Are the following statements equivalent?
Step by step
Solved in 2 steps
- Question 3 Give the result of the following code: quotaThisMonth = 7 quotaLastMonth= quotaThisMonth + 1 if (quota This Month > quota LastMonth) or \ (quotaLastMonth >= 8): print("Yes") quotaLastMonth = quotaLastMonth +1 else: print("No") quotaThis Month = quotaThis Month Blank 1 Blank 1 Add your answerWhich values are marked for deallocation after the sequence? Integerobj1=newInteger(10);Integerobj2=newInteger(20);Integerobj3=obj2;Integerobj4=newInteger(40);obj2=null;obj4=obj1; only 20 only 40 20 and 40 no values are marked for deallocation Which expressions for XXX, YYY, and ZZZ output "Great job" for scores above 90, and "Nice try" otherwise? Choices are in the form XXX / YYY / ZZZ. intscore;score=scnr.nextInt();if(XXX){System.out.println(YYY);}else{System.out.println(ZZZ);} score < 91 / "Great job" / "Nice try" score < 91 / "Nice try" / "Great job" score > 90 / "Nice try" / "Great job" (Not possible for given code) The program should determine the largest integer seen. What should XXX be if the input values are any integers (negative and non-negative)? All variables are integers and have…Installation of a Shopee Billboard Max. score: 100 You are installing a billboard and want it to be at the maximum height. The billboard will have two steel supports, one on each side. The height of each steel bracket must be equal. You have a number of rebar rods that can be welded together. For example, if the bars are of length 1, 2, and 3, they can be welded together to form a length of 6 brackets. Return the maximum possible installation height of the billboard. Return 0 if the billboard cannot be installed.
- if (fork () 0) == {a = a + 5; printf("%d,%d\n", a, &a); } else { a = a -5; printf("%d, %d\n", a, &a); } Let a, b be the qualities printed by the parent cycle, and p, q be the qualities printed by the child process. Which one of coming up next is TRUE? (a) a = p + 10 and b = q (b) a = p + 10 and b != q (c) a + 10 = p and b = q (d) a + 10 = q and b != q %3D %3DThe company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. Write an algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary.Last month Joe purchased some stock in Acme Software, Inc. Here are the details of thepurchase:• The number of shares that Joe purchased was 1,000.• When Joe purchased the stock, he paid $32.87 per share.• Joe paid his stockbroker a commission that amounted to 2% of the amount he paidfor the stock.Two weeks later Joe sold the stock. Here are the details of the sale:• The number of shares that Joe sold was 1,000.• He sold the stock for $33.92 per share.• He paid his stockbroker another commission that amounted to 2% of the amount hereceived for the stock.Write a program that displays the following information:• The amount of money Joe paid for the stock. • The amount of commission Joe paid his broker when he bought the stock. • The amount that Joe sold the stock for. • The amount of commission Joe paid his broker when he sold the stock. • Display the amount of profit that Joe made after selling his stock and paying the twocommissions to his broker. (If the amount of profit that your…
- int x=20; int y=30; int z =y%2; Z=0 Z=1 z=15The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary. Each input must be validated.and make trace memory screenQuestion 3: Given: int numl, num2, newNum; double x, y; Which of the following assignments are valid? If an assignment is not valid, state the reason. When not given, assume that each variable is declared. a. numl = 35; b. newNum=num1 – num2; c. numl = 5:; num2 = 2 + num1; numl = num2 /3; d. numl * num2 = newNum; e. x= 12 * num1 - 15.3; f. numl * 2 = newNum + num2; g. x/y=x * y
- Question 03: Write a simplified sinmulation of Ping-Pong according to the following rules: • Ranks 0 and 1 participate • Rank 0 starts with the ball • The rank with the ball sends it to the other rank Both ranks count the number of times they get the ball After counting to 1 million, the rank gives up • There are no misses or pointsLast month Joe purchased 100 shares of stock. Here are the details of the purchase: • When Joe purchased the stock, he paid $32.87 per share.• Joe paid his stock broker a commission that amounted to 2% of the amount he paid for the stock. Two months later Joe sold the stock. Here are the details of the sale:• He sold the stock for $33.92 per share.• He paid his stock broker another commission that amounted to 2% of the amount he received for the stock. Write a program that displays the following information:• The amount of money Joe paid for the stock.• The amount of commission Joe paid his broker when he bought the stock.• The amount that Joe sold the stock for.• The amount of commission Joe paid his broker when he sold the stock.• The amount of profit or loss that Joe had after selling his stock and paying both broker commissions.A software company sells a package that retails for $100. Quantity discounts are given according to the following tables. Quantity 10-19 Discount 20% 30% 40% 50% 20-49 50-99 100 or more Asks for the number of units sold and computes the total cost of the purchase.