In C++ A carpet company has determined that every 50 square feet of floor coverage will require 6 hours of labor. The company charges $30 per hour for labor. The program should ask for the number of rooms to be carpeted and the price of the carpet per square foot. Write a program uses this method to calculate the total cost: int getArea ( ) should ask for the square feet of floor space in each room, validate it, and return it the value main. This function should be called by main once for each one of the rooms. Display the area to be carpeted, the cost of the carpet, and the cost of labor, and the total cost to the customer. Input Validation: Do not accept a negative value for any data element.
Q: A={L,M,N,P,Q} and B={L,R,S,P,T} , Find the output of A union B?
A: In discrete mathematics which is subject in computer science consist of sets, functions, re...
Q: Explain how the three properties of big data (volume, velocity, and variety) apply to the data colle...
A: Introduction: The three characteristics of bi data are Volume, Velocity, Variety. They are the helpf...
Q: Create a program that can ACCEPT your name, hobbies and birthday USE JAVA PROGRAMMING
A: Your question is about create program that accept your name , hobbies and birthday.
Q: Q2] (. Write a program to enter the value of three variables in TextBoxes. Find and print (the maxim...
A: Explanation
Q: What is included in computer printouts when automated methods are used?
A: AUTOMATED METHODS: Automated methods refers to those methods which does not requires high interacti...
Q: What is the name of the flowchart used to distinguish between value-added and non-value-added steps ...
A: What is the name of the flowchart used to distinguish between value-added and non-value-added steps ...
Q: What's the difference between Stored Procedures and Scripts? What is the purpose of each? How does e...
A: Introduction: A stored procedure (also known as a proc, storp, sproc, StoPro, StoredProc, StoreProc,...
Q: Make a program that will follow the format of the program output below and analyze as well the formu...
A: Find Your Code Below
Q: "rite a Python program f the isinstance() functic zhether the value 0 5 is a
A: Below a Python program to show the use of the is instance() function to check whether the value 0.5...
Q: What are the two basic approaches to addressing energy concerns that the author examines as broad ca...
A: Introduction: As with #interest targeting, broad category targeting is a lot like it. Advertisers ma...
Q: Explain the terms "information repetition" and "inability to express information." Explain why each ...
A: A Relational database architecture should be well structured so as easily retrieve the amount of nec...
Q: ill sure downvote and feedback to Bartleby. Question: What do you mean by DHCP
A: The Dynamic Host Configuration Protocol (DHCP) stands for Dynamic Host Configuration Protocol. DHCP ...
Q: B. Write a program that prompts for students' final grades in a given class (the grades are integer ...
A: In the code, five variables and one array is declared by the name no(number of students...
Q: se Exercises Amy walked into h blond man had taken well over - the district attorney would als- ich ...
A: Amy walked into her office cubicle and sat down. The entire episode with the blond man had taken wel...
Q: matics nursing speci
A: Below the an informatics nursing specialist's role
Q: PROVIDE JS SOURCE CODE Design a web page with a text box (username) where the user can enter a name ...
A:
Q: Write a program to generate the numbers following: a) (-1, 3, -5, 7, -9, 13, -15, 17, -19, 23) on Te...
A:
Q: What's the difference between Stored Procedures and Scripts? What is the purpose of each? How does e...
A: INTRODUCTION: It is possible for applications using a relational database management system to make ...
Q: 1- Draw an ERD about a restaurant on Oracle SQL developer data modeler, it should contain at least 8...
A: Answer: I have given answered in the handwritten format in brief explanation.
Q: Is the external bus in von Neumann architecture exclusively for data memory?
A: Program and instruction data are stored in the same memory in the von Neumann architecture. Input, o...
Q: Considering a linked list A that has the following elements: 1, 9, 4, 7, 2, 15, 23, 26, 11, 8. Write...
A: Code - Output -
Q: ed and instructed.
A: given - Describe how set architecture is protected and instructed.
Q: Do parallel/distributed databases have a distinct advantage over centralized ones?
A:
Q: What type of possible error messages you can get when you try to login with the ssh-i option?
A: Possible error messages when trying to login with ash -l option: 1. User is not defined For this err...
Q: Let R = {(2, 2), (2, 4), (2, 3), (2, 6), (3, 3), (3,6), (6, 6)} where P={ (a,b) | (a,b) ER if a is a...
A: Given : R={(2,2),(2,4),(2,3),(2,6),(3,3),(3,6),(6,6)}
Q: Do you believe Sony's response to the attack was sufficient? Why do you think that is?
A: Actually, given question regarding Sony's response.
Q: Write a Java program to find the number of words in the user entered String. for example:- i/p : "Aw...
A: Given : Input : String from user Output : Number of words in the string Programming language : Java...
Q: How can a security risk assessment assist the organization?
A: Introduction: Risk assessments assist employees throughout the company in better understanding the t...
Q: Convert ab Ue into an NFA using mechanical steps. Don't remove redudant states!
A: The question is to convert regular expression to NFA.
Q: How can I locate a WPA2-enterprise wifi network's WiFi security key?
A: Defined a WPA2-enterprise wifi network's WiFi security key
Q: What is the definition of NOSQL? What is the relationship between NOSQL and NOSQL database managemen...
A: NoSQL, also referred to as "not just SQL" or "non-SQL," is a database design paradigm that permits t...
Q: Explain the function of an operating system (OS) and the interactions that occur between an OS, appl...
A: Function of OS : The main purpose of operating system is to provide users with a consistent metho...
Q: 6. In NumPy, write a program to show the syntax to print the data type of an array. Take the sample ...
A: 6. Algorithm: Start import numpy module as np Set arr = np.array([1,2,3,4,5]) Print arr.dtype to ge...
Q: An organization has purchased a class B address 150.5.0.0 and would like to create a network of 100 ...
A: Summary: - Hence, we have discussed all the points.
Q: Is it possible to analyze simple service systems
A: ExplanationYes it is possible to analyze simple service systemsThe following are the most common sy...
Q: A high level of compute redundancy is one of the benefits of a Hadoop installation. Why is this so c...
A: Solution
Q: Is there a difference between a system subsystem and a logical division?
A: Answer: Yes, In System subsystem can be defined as is a predefined environment which generally coord...
Q: There are blank 3 digit counting numbers that are made using only the odd digits 1,3,5,7,9 ?
A: Here in this question we have we have asked to make 3 digit numbers from 1,3,5,7,9. Note- here nothi...
Q: What are the two basic approaches to addressing energy concerns that the author examines as broad ca...
A:
Q: Grouping information to enhance memory efficiency is described as ____.
A: Chunking is defined as the process of taking individual pieces of information and grouping them into...
Q: Label the Recursion Requirements. Show the Activation Stack for n = 4. int fact (int n) int result; ...
A: Here in this question we have given a code segment of factorial program.and we have asked to find th...
Q: What is the best way to keep track of RFIS?
A: Introduction: Request for information is a standard business practice that aims to gather written in...
Q: Starting with the first Fibonacci number, Fib(1) = 2, and the second Fibonacci number, Fib(2) = 2, w...
A: Here in this question we have given that in a fibonacci sequence Fib(1)=2 Fib(2)= 2 and we have aske...
Q: Suppose we have two arrays, a and b, containing numbers of size n and m, respectively. a and b seque...
A: Suppose we have two arrays, a and b, containing numbers of size n and m, respectively. a and b seque...
Q: roperties of big data (volume, velocity, and diversity) apply to the data collected by Mercy and oth...
A: As per guidelines, we can only solve one question at a time. hence resubmit the question for further...
Q: Answer this question ASAP Develop an algorithm and flow chart for two students detail managemen
A: Develop an algorithm and flow chart for two students detail management
Q: Write a Python program to show the use of the isinstance() function to check whether the value 0.5 i...
A: Code :: Editable code :: a = isinstance(0.5, float) print(a)
Q: Write a Python program to show the use of the isinstance() function to check whether the value 0.5 i...
A: If the supplied object is of the specified type, the isinstance() function returns True, otherwise F...
Q: Is it possible to get further information about the proposed specifications of the 5G network (for e...
A: Introduction: 5G would transform the mobile network by enabling it to connect people and computers, ...
Q: What are the differences between IT and Digital strategy?.
A: Solution
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- A business that uses functions to calculate the weekly payment amounts of employees in a workplace.you are asked to write a program.The weekly payment amount of an employee depends on the following variables:- Number of hours worked - (minimum: 0, maximum: 60)- Hourly wage - (minimum: 0.00 TL, maximum: 30.00 TL)- Number of exemptions - (minimum: 0, maximum: 5)Using these 3 values,- Gross payment amount- General income taxLocal income tax- Social security amount- Net payment amountwill be calculated. →The maximum number of hours an employee can work before earning overtime pay is 40 hour. If the number of hours worked is less than or equal to 40, the gross payment amount will be equals the product of the wage. If the number of hours worked is more than 40, the gross payment amount is 40 times the hourly wage. plus 1.5 times the hourly rate for every hour over 40 →The general withholding tax is 55.77 TL for the weekly payment period. The employee is subject to general taxation the gross…In C++ A Paint Company has asked you to write an application that calculates the quantity and price of Paint required to a paint for rectangular rooms in a building. To calculate the quantity of paint required, you have to first calculate area of room, assuming one gallon is enough for 120 square feet.Then for price you multiply the quantity of paint by the price per gallon. For example, the area of room that is 34 square feet. To cover that room with paint that costs 1000 per gallon would cost (1/120*34=2.83 gallon, 2.83*1000=2833rs).(you can take help from internet for exact formulas)First, you should create a class named RoomDimension that has two attributes: one for the length of the room and one for the width. The RoomDimension class should have a member function that returns the area of the room. Once you have written the class, use them in an application that asks the user to first enter total number of rooms, create a dynamic array, then ask user to enter the dimensions of a…Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient the following data should be entered: • The number of days spent in the hospital• The daily rate• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient the following data should be entered:• Charges for hospital services (lab tests, etc.)• Hospital medication charges.Use a single, separate function to validate that no input is less than zero. If it is, it should be re-entered before being returned.Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.
- Using C++ Write a program that plays a dice game called "21" It is a variation on BlackJack where one player plays against the computer trying to get as close to 21 as possible without going over. Here are the rules of the game: You will play with dice that have numbers from 1 to 11. To win, the player or the computer has to get to 21, or as close as possible without going over. If the player or computer goes over 21, they instantly lose. If there is a tie, the computer wins. Starting the game: The player is asked to give the computer a name. For now, we'll simply call the computer opponent, "computer." The game starts with rolling four dice. The first two dice are for the player. These two dice are added up and the total outputted to the screen. The other two dice are for the computer. Likewise, their total is outputted to the screen. Player Loop: If a total of 21 has been reached by either the player or the computer, the game instantly stops and the winner is…This is python3 code pleaseDevelop a catalog for a company. Assume that this company sells three different Items. The seller can sell individual items or a combination of any two items. A gift pack is a special combination that contains all three items. Here are some special considerations: 1- If a customer purchases individual items, he does not receive any discount.2- If a customer purchases a combo pack with two unique items, he gets a 10% discount. 3-If the customer purchases a gift pack, he gets a 25% discount. Write a function for the above scenario. Perform the calculations in code wherever applicable. The function should be your own creation, not copied from any other source. The final output should look like the image attached.Include the following in your submission: The code for the function that you created. The output of the code. A description of what feature(s) your function illustrates. The code and its output must be explained technically. The explanation…Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: • The number of days spent in the hospital • The daily rate Hospital medication charges • Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an outpatient: • Charges for hospital services (lab tests, etc.) • Hospital medication charges The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient information. Both functions should return the total charges and display it for the user. After the total charges have been calculated and displayed, write the result to a file, PatientReport.txt. You can use the techniques you learned in Chapter…
- 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.)Using C++ Dice game with varying dice (d4-d20) The game will consist of two or more players. Each player will attempt to reach a set number (say 100) By rolling dice and adding up the results of the dice roll. if the player rolls a certain number (in this case a 6) then the player gets two more tries, if they roll a 6 two more times, they lose their turn and gain no points that round. The goal to get to 100 first. During a round, each player takes a turn. At the beginning of the game, each player rolls a dice, with the higher roll going first each round. A player’s total score is the sum of their turn scores, the users will have the ability to choose either to stop or to continue after first roll, if a player decides to stop, then their turn ends and their score for that turn is their maximum roll during that turn, if the player decides to continue, they roll the dice again. At the end of the game the program should display the winner your program should have at least four of…A company of 20 employees wants to find the employee who made the highest commission so he/she can be paid a 10% bonus of the commission he/she earned for that month. The commission an employee makes is calculated by multiplying the sales amount by the commission rate. The commission rates are shown below: Sales Amount Commission Less Than 40000 No commission 40000 to 80000 inclusive 5% Greater than 80000 10% Write a program to: Prompt the user for each employee’s id (an integer value) and the sales amount For each employee, display the commission earned Display the total commission earned by all the employees Display the average commission earned by an employee Display the employee id, the commission and the bonus paid to the employee with the highest commission Must be written in c++, no arrays to be used, only use iostream library
- can you please write it in java.util.scanner form Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: • If a customer purchases 0 books, he or she earns 0 points. • If a customer purchases 1 book, he or she earns 5 points. • If a customer purchases 2 books, he or she earns 15 points. • If a customer purchases 3 books, he or she earns 30 points. • If a customer purchases 4 or more books, he or she earns 60 points. Write a program that asks the user to enter the number of books that he or she has purchased this month and then displays the number of points awarded.The body mass index, BMI, is a measure used to determine if a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person.The formula for calculating BMI is:BMI = (weightInPounds * 703) divided by (heightInInches squared)In this problem, you will develop a Java program as a BMI calculator, that reads the user’s weight in pounds and height in inches, then calculates and displays the user’s body mass index BMI. Also, display the following information {from the US Department of Health} so the user can evaluate his/her BMI:BMI values:Underweight: less than 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterA nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consume in a day. Then, she calculates the number of calories that result from the fat using the following formula: Calories from fat = Fat grams × 9Next, she calculates the number of calories that result from the carbohydrates using the following formula: Calories from carbs = Carbs grams × 4Create an application that will make these calculations. In the application, you should have the following methods:• FatCalories–This method should accept a number of fat grams as an argument and return the number of calories from that amount of fat.• CarbCalories–This method should accept a number of carbohydrate grams as an argument and return the number of calories from that amount of carbohydrates.