Question 1 Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range (S) Tax Rate SPE GI 1% 2% 13% 0- 1999 0% I1 % 2000 - 2999 3000 - 4999 Above 5000 5% 12 % 5% 8% 8% 10% 17 % Based on the table given, you are required to write a C programming for a system that accepts the employee's basic salary, and generates the net salary after the respective deductions as described above.
Q: Q1 Given a set of dates and a set of expenses or withdrawals accordingly, the final amount should…
A: C++ program and pseudo code to calculate utilites bill and taxes
Q: Use functional decomposition to write a C++ program that asks the user to enter his or her weight…
A: Objective: This program determines the weight of the user if the type of the planet is given. Planet…
Q: N" Food Stuff Grocery Shop"/ Customer Name: Salim ITEM PRICE Sales Tax+ VAT Sub-Total Fresh Milk 1.0…
A: In step 2, you will get C++ code. In step 3, you can see the sample output.
Q: The language is C++. Can someone write a function for each these three bullet points. One function…
A: I have completed a similar question in past. I have updated the code according to your needs. please…
Q: [1]. Given the following Structure that represents a Student Struct: struct Student char name[20];…
A: #include <iostream>using namespace std; struct Student{ //given struct char…
Q: Summary In this lab, you complete a prewritten C+ program for a carpenter who creates personalized…
A: Written Code #include <iostream>#include <string>using namespace std; main() { string…
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: PROGRAM INSTRUCTIONS: The C++ program has the following algorithm: Declare and initialize the…
Q: Write a program that computes and assess the TF of the students in one semester, based on the given…
A: In the solution of given problem, first we read the tuition fees, then read the mode of payment…
Q: Q4, a mechanical pump whose rated speed is (Sm=15 cfm) is connected by a pipe and valve to a vacuum…
A: Please refer to the following steps for the complete solution to the problem above.
Q: This exercise is about the demonstration of the basic programming skills learnt during the previous…
A: C++ is a powerful general-purpose programming language which can be used to develop operating…
Q: A military academy accepts candidates according to the following height and weight requirements…
A: FUNCTION boolean checkHeight (int height, char sex) if sex is 'M' or 'm' : return (h>=65…
Q: Activity 20 Electric Bill: Using C Language and Using Switch Statement, Make a program that will…
A: Please find the code and output below:
Q: QUESTION Write a complete C++ program that helps the Ministry of Health (MOH) to determine the…
A: #include <iostream>using namespace std; void dispStatus(int activeCases); void getInput(int…
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: Hi student, hope you are doing well. This question is about writing a C++ program to display a table…
Q: calculator (4 operations) Create a class Weight which contains: • Kilograms (kgs) • Grams (g) Write…
A: The program is created by the steps below: Create a class names Weight with the variables kilogms…
Q: NAME MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY TOTAL Kwame 20 25 25 30 20 Adwoa 10…
A: In step 2, you will the C++ code.In step 3, you can see the sample output.
Q: Exercise 2.1 Write a Program in C++ for a grocery shop payment bill/ receipt. The program should…
A: 2.1 Program: //header files #include<iostream> #include<cstring> #include<conio.h>…
Q: Exercise 2.1 Write a Program in C++ for a grocery shop payment bill/ receipt. The program should…
A: PROGRAM CODE: Code with built-in formatting function setw( ): #include <iostream>#include…
Q: Exercise Write a C++ program to develop a Vehicle Fine Management System for Police. The program…
A: Exercise Write a C++ program to develop a Vehicle Fine Management System for Police. The program…
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: Below is the required C++ program. Program Approach: Include necessary header files and using the…
Q: in C# Sometimes figuring letter grades is hard. Write a program that asks for, and reads from the…
A: C# program
Q: Hi A game is played in which a single dice is tossed. If the result is 4 or 6, the player wins. If…
A: Above function game re-written in switch-case statement: void game(int roll) { switch (roll)…
Q: 1. Use a functional decomposition to write a C++ program that asks the user to enter his or her…
A: Below i have given program:
Q: 8: PGandE.cpp) Consider a gas and electric bill that sets two levels of use as follows: Gas Electric…
A: Coded using C++.
Q: Write 2 functions in C program that calculate surface area and the volume of 3 (three) boxes where…
A: Algorithm: 1. Display the message "Enter sides of the box" 2. Read the all sides 3. calculate…
Q: write a program in c++ to handle the following scenario: three friends asif, shahid and bashir start…
A: Use float value for storing investments as you deal with fractional values
Q: Overview In this assignment, the student will write a C++ program that identifies a non-negative…
A: Note: Below is the required C++ program. Program Approach: Declaring necessary header file Using…
Q: Use functional decomposition to write a C++ program that asks the user to enter his or her weight…
A: PROGRAM: //including essential header files #include <iostream> #include <cstring> using…
Q: (The function that returns letter grade according to midterm and final grade) : The function…
A: Required: The function turn_to_letter decides on the letter grade of the student according to the…
Q: Please help, this question was rejected for complexity but I really don't have any one else to ask!…
A: SUMMARY: -Hence, we got the result.
Q: Geumga Bowling Centre giving a special rate for their customer as shown in Table 1: Table 1: Table…
A: Sample output
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: To write a code to computes the tuition in ten years and the total cost of 4 years’ worth of tuition…
Q: Write a Program in C++ for a grocery shop payment bill/ receipt. The program should display the…
A: ALGORITHM:- 1. Take input for number of items. 2. Take input for for item name and their price. 3.…
Q: Question 4 OneAuni is a sandwich shop which provides a variety of sandwiches. The following are the…
A: Answer : In the above a question we have to do a cpp code of following OneAuni sandwich shop, so I…
Q: You are required to write a complete C++ program for a simple grading system. You need to input…
A: Use a do-while loop to check whether to continue inside loop or not
Q: Q2) The following graph shows the x and y coordination of different cities. Write a C Program that…
A: Declare six integer variables to hold the x and y coordinates of the three points. Initialize the…
Q: Q2/ Write a program in C++ that works to calculate the area of four rectangular halls of different…
A:
Q: The following C program which involves struct requires you to fill in the blank with the correct C…
A: 1. #include<stdio.h> 2. #include<string.h> 3. 4. struct student 5. { 6. char…
Q: Question 3 Write a C program to compute the area and hypotenuse of a triangle using 3 functions. i)…
A: I hope it will help you #include<bits/stdc++.h>#include <iostream>#include…
Q: Q. You are asked to write a C program by storing student’s roll no., name along with their marks of…
A: Create a structure student. The following functions have to defined to achieve the mentioned tasks:…
Q: Write a Program in C++ for a grocery shop payment bill/ receipt. The program should display the…
A: Given: Write a Program in C++ for a grocery shop payment bill/ receipt. The program should display…
Q: An Auto Insurance Program Example - Write a C++ program to determine the cost of an…
A: PROGRAM: //Header File #include <iostream> using namespace std; //Defining main int main() {…
Q: Question 1 is already done need help with the others though This is the C code I have so far…
A: Coded using C language.
Q: Mr. Abu Tawfiq has a farm in Jordan Valley. His farm contains cows and chickens. In his farm, cows…
A: #include <iostream>using namespace std; // Class for storing chcken(egg) dataclass…
Q: 3. The ABC Lumber Co. asks you to write a Phyton program that would produce a table of g properties…
A: Program description: base is the list that stores the base sizes of lumber. height is the list that…
Q: using C-programming; Write the following functions that compute the volume and surface of a sphere…
A: Write a C program which implements the following functions: float sphereVolume(float r)float…
Q: Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a…
A: //Code #include <iostream> using namespace std; int main(){ string products[] =…
Q: Write a complete C++ program that asks the user to input information for at least 10 students. Use…
A: The question is to write C++ code for the given problem.
Q: Hello good afternoon, Use functional decomposition to write a C++ program that asks the user to…
A: create three methods with void return type as well as declare input variables as a global variable,…
Q: Exercise 2.1 Write a Program in C++ for a grocery shop payment bill/ receipt. The program should…
A: Given: Exercise 2.1 Write a Program in C++ for a grocery shop payment bill/ receipt. The program…
Step by step
Solved in 2 steps with 2 images
- Player Team W L ERA SO/IP HR/IP R/IP Verlander, J DET 24 5 2.40 1.00 0.10 0.29 Beckett, J BOS 13 7 2.88 0.91 0.11 0.33 Wilson, C TEX 16 7 2.93 0.92 0.07 0.39 Sabathia, C NYY 19 8 2.99 0.96 0.06 0.37 Haren, D LAA 16 10 3.17 0.81 0.07 0.37 McCarthy, B OAK 9 9 3.31 0.71 0.05 0.42 Santana, E LAA 11 12 3.37 0.78 0.10 0.41 Lester, J BOS 15 9 3.46 0.94 0.10 0.39 Hernandez, F SEA 14 14 3.47 0.95 0.07 0.41 Buehrle, M CWS 13 9 3.58 0.52 0.09 0.44 Pineda, M SEA 9 10 3.74 1.00 0.10 0.43 Colon, B NYY 8 10 4.00 0.81 0.12 0.52 Tomlin, J CLE 12 7 4.25 0.54 0.14 0.47 Pavano, C MIN 9 13 4.29 0.46 0.10 0.54 Danks, J CWS 8 12 4.33 0.79 0.11 0.51 Guthrie, J BAL 9 17 4.32 0.62 0.12 0.54 Lewis, C TEX 14 10 4.39 0.83 0.16 0.51 Scherzer, M DET 15 9 4.42 0.89 0.14 0.52 Davis, W TB 11 10 4.44 0.57 0.13 0.51 Porcello, R DET 14 9 4.75 0.56 0.09 0.57 Due to a recent change by Microsoft you will need to open the XLMiner Analysis ToolPak add-in manually from the home ribbon.…For 1990, let dkr be a firm’s debt to capital ratio, let eps denote earnings per share, let netinc denote net income in millions USD, and let salary denote total compensation for the CEO in thousands USD. The following equation was estimated: return= -14.37+0.321 dkr + 0.043 eps -0.0051 nentinc + 0.0035 * salary (6.89) (0.201) (0.078) (0.0047) (0.0022) n=142, adj. R-squared=0.0395 What do we know about the fit of the regression?<ul> - `bsal` = beginning salary (annual salary at time of hire) - `sal77` = annual salary in 1977 - `sex` = MALE or FEMALE - `senior` = months since hired - `age` = age in months - `educ` = years of education - `exper` = months of prior work experience </ul> banksalary.csv bsal,sal77,sex,senior,age,educ,exper 5040,12420,MALE,96,329,15,14 6300,12060,MALE,82,357,15,72 6000,15120,MALE,67,315,15,35.5 6000,16320.00098,MALE,97,354,12,24 6000,12300,MALE,66,351,12,56 6840,10380,MALE,92,374,15,41.5 8100,13979.99902,MALE,66,369,16,54.5 6000,10140,MALE,82,363,12,32 6000,12360,MALE,88,555,12,252 6900,10920,MALE,75,416,15,132 6900,10920,MALE,89,481,12,175 5400,12660.00098,MALE,91,331,15,17.5 6000,12960,MALE,66,355,15,64 6000,12360,MALE,86,348,15,25 5100,8940,FEMALE,95,640,15,165 4800,8580,FEMALE,98,774,12,381 5280,8760,FEMALE,98,557,8,190 5280,8040,FEMALE,88,745,8,90 4800,9000,FEMALE,77,505,12,63 4800,8820,FEMALE,76,482,12,6 5400,13320,FEMALE,86,329,15,24 5520,9600,FEMALE,82,558,12,97…
- <ul> - `bsal` = beginning salary (annual salary at time of hire) - `sal77` = annual salary in 1977 - `sex` = MALE or FEMALE - `senior` = months since hired - `age` = age in months - `educ` = years of education - `exper` = months of prior work experience </ul> banksalary.csv bsal,sal77,sex,senior,age,educ,exper 5040,12420,MALE,96,329,15,14 6300,12060,MALE,82,357,15,72 6000,15120,MALE,67,315,15,35.5 6000,16320.00098,MALE,97,354,12,24 6000,12300,MALE,66,351,12,56 6840,10380,MALE,92,374,15,41.5 8100,13979.99902,MALE,66,369,16,54.5 6000,10140,MALE,82,363,12,32 6000,12360,MALE,88,555,12,252 6900,10920,MALE,75,416,15,132 6900,10920,MALE,89,481,12,175 5400,12660.00098,MALE,91,331,15,17.5 6000,12960,MALE,66,355,15,64 6000,12360,MALE,86,348,15,25 5100,8940,FEMALE,95,640,15,165 4800,8580,FEMALE,98,774,12,381 5280,8760,FEMALE,98,557,8,190 5280,8040,FEMALE,88,745,8,90 4800,9000,FEMALE,77,505,12,63 4800,8820,FEMALE,76,482,12,6 5400,13320,FEMALE,86,329,15,24 5520,9600,FEMALE,82,558,12,97…<ul> - `bsal` = beginning salary (annual salary at time of hire) - `sal77` = annual salary in 1977 - `sex` = MALE or FEMALE - `senior` = months since hired - `age` = age in months - `educ` = years of education - `exper` = months of prior work experience </ul> banksalary.csv bsal,sal77,sex,senior,age,educ,exper 5040,12420,MALE,96,329,15,14 6300,12060,MALE,82,357,15,72 6000,15120,MALE,67,315,15,35.5 6000,16320.00098,MALE,97,354,12,24 6000,12300,MALE,66,351,12,56 6840,10380,MALE,92,374,15,41.5 8100,13979.99902,MALE,66,369,16,54.5 6000,10140,MALE,82,363,12,32 6000,12360,MALE,88,555,12,252 6900,10920,MALE,75,416,15,132 6900,10920,MALE,89,481,12,175 5400,12660.00098,MALE,91,331,15,17.5 6000,12960,MALE,66,355,15,64 6000,12360,MALE,86,348,15,25 5100,8940,FEMALE,95,640,15,165 4800,8580,FEMALE,98,774,12,381 5280,8760,FEMALE,98,557,8,190 5280,8040,FEMALE,88,745,8,90 4800,9000,FEMALE,77,505,12,63 4800,8820,FEMALE,76,482,12,6 5400,13320,FEMALE,86,329,15,24 5520,9600,FEMALE,82,558,12,97…Q1. A series of messages is to be transferred between two computers over the Internet. The messages comprise just the characters A through H. Analysis has shown that the probability (relative frequency of occurrence) of each character is as follows: A and B= 0.25, C and D= 0.14, E,F,G, and H= 0.055 (a) By computing the entropy of the source, derive the minimum average number of bits per character.
- As of early 2022, the global bitcoin hashrate is 160∗1018 hashes per second. The Antminer S19 can compute 110 TH/s = 110∗1012 hashes per second. It costs $2600 and consumes 3.25kW when operating. Question: Assuming that BTC is worth $40,000, the mining reward is 6.25 BTC, and that electricity costs 10 cents per kilowatt hour, how long would a miner who bought the devices calculated in Question 14 above achieve a 1% market share need to operate in order to break even? For simplicity, assume that the BTC price and hash difficulty do not change.This is the question. I am unsure how to begin on - Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shift, $17 per hour; second shift, $18.50 per hour; third shift, $22 per hour. Each factory worker might work any number of hours per week; any hours greater than 40 are paid at one and one-half times the usual rate. In addition, second- and third-shift workers can elect to participate in the retirement plan for which 3% of the worker’s gross pay is deducted from the paychecks. Write a program that prompts the user for hours worked, shift, and, if the shift is 2 or 3, whether the worker elects the retirement (1 for yes, 2 for no). Display: Hours worked Shift Hourly pay rate Regular pay Overtime pay Total of regular and overtime pay Retirement deduction, if any Net pay. This is the way the code starts - import java.util.*; public class AcmePay { public static void main(String[] args) throws Exception {…A shop owner has 2 outlets namely a High Street Branch and Mall Branch, before Covid-19 lockdown the respective shops recorded sales as follows: high stree branch Quarter sales sales sales Q1 42,000 48,000 50,000 Q2 52,000 58,000 60,000 Q3 46,000 49,000 58,000 Q4 50,000 51,000 61,000 Mall Branch Quarter Q1 57,000 63,000 60,000 Q2 70,000 67,000 72,000 Q3 67,000 65,000 62,000 Q4 72,000 69,000 75,000 As a programmer hired by the shops’ owner, write a java program to calculate: (a) the monthly combine sales figures for both shops; (b) the respective shops annual sales figures; (c) the grand annual combine total sales figures. Note: Your program must be implemented with arrays.
- A B C D X1 a1 b1 c3 L X2 a2 b1 c1 L X3 a2 b2 c1 H X4 a2 b2 c2 H X5 a2 b1 c1 L X6 a2 b2 c1 H X7 a2 b1 c2 H X8 a1 b2 c2 L From the table above, assuming the min confidence is 35%, and minsup is 37%, which of the following rules are strong? a. a1 => c3 b. L => b1 c. a2, b2 => H d. a1, b1 => L(b) Using VLOOKUP, write a formula in cell G24 to find the rate per hour from Table 8 for the given server size. Copy the formula to G25 to G41. (c) Using IF and VLOOKUP functions, write a formula in cell H24 to find the spot server's discount rate. For on-demand servers, the discount rate is 0%. Copy the formula to H25 to H41. SCREENSHOTS ARE ATTACHED BELOW Write down the formula needed to solve for the cells neededPretend you have five employees who would like to know exactly how much their bi-weekly pay will be once all of their deductions are taken off. Their weekly pay is as follows: Emp #1. $1100 Emp #2. $1300 Emp #3. $1500 Emp #4. $1700 Emp #5. $2300 *Taxation *