Write the program to get # of units as the user input and output the bonus amount : In a manufacturing firm, monthly bonus is given to workers based on their production quantities. For every 100 units beyond the minimum of 1000 units up to maximum of 2000 units, $50 bonus is paid (e.g. worker with 1524 output units will get a bonus of $250). in C++
Q: Generalization ? Select one: a. In object-oriented languages, is implemented using inheritance b. E...
A: Generalization is the process of extracting common attributes and functions from different classes a...
Q: What are IP classes, and how can you tell what class an IP address belongs to?
A: IP Classes can be defined as to determine the bits utilized for network ID and host ID and the quant...
Q: What is the running time of the following algorithm. f(n){ for(int j = 1; j<=7;j++) f(n/7): for(int ...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: ind a router?
A: given - What is a typical IP scenario for an office computer behind a router?
Q: While globalisation and information technology are both exhilarating, they also pose risks to curren...
A: INTRODUCTION: The word "globalization" refers to how trade and technology have made the world a mor...
Q: Could someone give me an example of how to design a UML/class diagram for a Python program? Mainly j...
A: UML class diagram: In the project tool window, right-click an item for which you want to create a di...
Q: What is the difference between a UNIQUE and a PRIMARY KEY constraint? (See the tables in the JustLee...
A: Introduction: When creating a table, a primary key is used to identify each row in the table, while ...
Q: Which of the following is printed to standard output when the following expression is executed fprin...
A: The Syntax of fprintf() is wrong in the given question so it won't print any options which are given...
Q: Construct a 5 to 32-line decoder with four 3 to 8 decoders, with enable and 2 to 4-line decoder with...
A: Truth table A B C D E DECODER ENABLE 0 0 X X X DE1(D0 - D7) 0 1 X X X DE2(D8 - D15 1 0 X...
Q: In a database, how can you utilize a sequence?
A: An object tied to a schema, a sequence creates a list of numbers. For a variety of applications, uni...
Q: What distinguishes materialised views from other perspectives?
A: Introduction Materialized View – In SQL, the materialized view is stored on the physical disc and ...
Q: how many ways the data is How can a network be certified as an effective network? What are the facto...
A: The network can certified as an effective depending on the performance.
Q: How can Amazon Route 53 ensure high availability while maintaining low latency?
A: Introduction: Amazon Route 53 ensure high availability while maintaining low latency Amazon Route...
Q: describe how hybrid cloud platforms such as Dropbox work in detail.
A: Introduction: A hybrid cloud system combines public and private cloud services.
Q: Why would you put two power supply in a mission-critical server?
A: It has two power sources: It is a standard piece of equipment in electronic circuits, and each one r...
Q: Assume that there is a valid file cards.txt in the current directory which contains 10 valid int val...
A: int cardsMax() { FILE* file = fopen("cards.txt", "r"); /*Assuming that each integer would be l...
Q: Prompt When you use WiFi at home to connect to the internet, you should know that all the internet-...
A: Proxy means ‘in place of’, representing’ or ‘in place of’ or ‘on behalf of’ are literal meanings of ...
Q: Student (snum: integer, sname: string, major: string, level: string, age: integer) Class (cname: st...
A: CREATE TABLE student( snum INT, sname VARCHAR(10), m...
Q: In ge the bottleneck links are in O the rk core O public n O the network edge thand
A: Bottleneck links: In computernetworktechnology, a bottleneck describes the link for a given data flo...
Q: Which sort algorithm is the following code implementing? int out, car, key; for(car = 1; car = 0) &&...
A: here we have to find which sort algorithm is the given code implementing:- Code Given To Us:- int ou...
Q: The following hex string has been XOR'd using a one-character key; decrypt it to get this flag's val...
A: What they meant in the above hex string was that they XORed each byte of the message against this "k...
Q: Why is it critical that you understand compressed zip files and folders?
A: It is critical that you understand compressed zip files and folders as It takes very less space to...
Q: Build an application that shows the use of a TableView and the navigation. The app should implement ...
A: According to the question, we have to Build an application that shows the use of a TableView and the...
Q: The menu command under the editor window that allows you to submit the program to the command window...
A: The MATLAB Editor Window is a simple text editor where you can load, edit and save complete MATLAB...
Q: How would you add up multiple processes in openMPI? An example would be P0:1 P1:2 thus the sum of tw...
A:
Q: Is there a centralised control point for internet traffic? Is this correct or incorrect?
A: Introduction: The data on the internet is today controlled primarily on centralised, private servers...
Q: What exactly do you mean when you say "spiral model" in software engineering?
A: Introduction: The spiral model is a risk management method for systems development lifecycle (SDLC) ...
Q: Write a program that calculates the average word length in a sentence cntered by thc user.
A: Program Explanation :- First take the user input by using input function. Then split by using split...
Q: Write a Visual Basic statement to change the text property of Form1 into "Midterm Exam"
A: The Text property of form is used to set the title for a form window. Given form instance is form1 W...
Q: Do you understand what SSL and TSL are? Is it possible to make distinctions? Please offer additional...
A: Intro SSL stands for a Secure Sockets Layer and is a popular security technique that uses a domain n...
Q: Paula's manufacturing builds products in batches of 50 pieces at a time. She is trying to determine ...
A: Paula's manufacturing builds products in batches of 50 pieces at a time. She is trying to determine ...
Q: Add a firstname parameter of type String to myMethod, and output "Azeneth Garcia". static void myMet...
A: - We need to complete the java code provided for the name string output. - For executing the code,...
Q: To bond ports between a switch and a busy server, what protocol is most commonly used?
A: Link Aggregation Control Protocol (LACP )is used to bond ports between a switch and a busy server.
Q: About white-hat hackers and black-hat hackers. Do you agree that hackers should be categorized based...
A: Explain white hat hacker and black hat hacker. hackers should be categorized based on their inten...
Q: Instantiate a default_random_engine object called 'randObj'. Declare a vector named 'intVec', and (u...
A: default_random_engine is a number generating engine which generates pseudo-random number class.
Q: (a) Identify the errors in the following code and correct them to produce the output shown in the gi...
A: Here are the errors in the code :- --> At the code line 6 the pitch and loudness are the float a...
Q: 6. Create a flowchart that will input for two numbers then get the sum,difference,products and qouti...
A:
Q: Describe the concepts of content-addressable memory.
A:
Q: What does the term Magnitude signify in the context of computer science?
A: Introduction: In computer science, the signed-magnitude format is used to indicate the magnitude of ...
Q: Q1- Write a matlab program to print the name of the day depending on the entered number (1.. 7), use...
A: day = input("Enter day number: "); % Get the input switch(day) % switch based on day case 1 % for da...
Q: What does it mean to have valid data?
A: Firstly validity defines that how accurately a method measures what is intended to measure DATA VALI...
Q: Consider the (2, 8) encoding function e, e(00) = 00000000 e(01) = 10110100 e(10) = 01100010 e(11) = ...
A: In order to calculate the Hamming distance between two strings, and , we perform their XOR operation...
Q: What benefits has Vivobarefoot gained as a result of its infrastructure upgrade?
A: Introduction: Vivobarefoot is a shoe company that has gained a lot of attention in a short period of...
Q: tilize a sequence?
A: given - In a database, how can you utilize a sequence?
Q: Q1- Write a matlab program to print the name of the day depending on the entered number (1.. 7), use...
A: Please refer to the following steps for the complete solution to the problem above.
Q: Apply quickselect to find the median of the list of numbers 17,9, 5, 12, 20, 30, 8. Show the procedu...
A: Find median from the given list of numbers by quickselect given list = [17, 9, 5, 12, 20, 30, 8] Med...
Q: Explain how in-database analytics works.
A: Ans: The database analytics working is: 1) In this first step it is determine the data requirements ...
3.
Write the program to get # of units as the user input and output the bonus amount :
In a manufacturing firm, monthly bonus is given to workers based on their production quantities.
For every 100 units beyond the minimum of 1000 units up to maximum of 2000 units, $50 bonus is paid
(e.g. worker with 1524 output units will get a bonus of $250).
in C++
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- You have to write a program in C++ that Mr. Ali has invested an amount of Rs101, 876 in a Bank scheme. Bank credits profit of 7% each year, and charge a bank fee of Rs 100 per month. What will be you amount at the end of 7th year?Use C++ Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. Ex: If the input is: 0 (or less than 0), the output is: No change Ex: If the input is: 45 the output is: 1 Quarter 2 Dimes(Practice) An automobile travels at an average speed of 55 mph for 4 hours. Write a C++ program that displays the distance, in miles, the car has traveled after 1, 2, and so on hours until the end of the trip.
- Write an improved version of the futval . py program from Chapter 2.Your program will prompt the user for the amount of the investment, theannualized interest rate, and the number of years of the investment. Theprogram will then output a nicely formatted table that tracks the value ofthe investment year by year. Your output might look something like this: Year Value----------------0 $2000 . 001 $2200 . 002 $2420 . 003 $2662 . 004 $2928 . 205 $3221 . 026 $3542 . 127 $3897 . 43Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…
- Modify the craps program to allow wagering inside of C#, and explain each step (reject if you can't). Initialize variable Balance to 1000 dollars. Prompt the player to enter a wager. Check whether the wager is less than or equal to Balance and, if not, have the user reenter the wager until a valid wager is entered. After a valid wager is entered, run one game of craps. If the player wins, increase Balance by wager, and print the new Balance. If the player loses, decrease Balance by wager, print the new Balance, check whether Balance has become zero and, if so, print the message “Sorry. You busted!” (explain steps as much as possible so I can understand plz).The program to modify has the code listed below:// Craps class simulates the dice game craps.using System; class Craps{// create random-number generator for use in method RollDiceprivate static Random randomNumbers = new Random(); // enumeration with constants that represent the game statusprivate enum Status {Continue, Won, Lost}…A travel company has three types of buses (A, B and C), each one has a price based on the kilometer traveled per person, the costs are $3.0, $4.5 and $6.0 respectively. Write a C program to determine the total cost of the trip considering that when it is quoted there must be a minimum of 20 people, otherwise the payment is made based on this limit number.Q 4) Write a c# program to calculate and print the bill of a given customer. [2] The customer id., name and unit consumed by the user should be taken from the keyboard and display the total amount to pay to the customer. The charges are as follow: Unit Charge/unit upto 199 @1.20 200 and above but less than 400 @1.45 400 and above but less than 600 @1.70 600 and above @2.50 If bill exceeds Rs. 400 then a surcharge of 16% will be charged and the minimum bill should be of Rs. 150/=
- C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % 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 aboveA movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a c++ 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. Assume the price of an adult ticket is $10.00, the price of a child's ticket is $6.00 and the theater keeps 20% of the gross box office profit.