3. Lea's online shop is having a hard time computing for her weekly, monthly and annual profit. Create a program that will compute for Lea's total profit wherein she could choose if weekly, monthly or annually. On the other hand, she has 2 workers to be paid per day amounting to 400 pesos each. Conditions: Total Profit = Total Sales – Total Investments A. If weekly, her total investments should include the salary of her workers for 7 days. B. If monthly, her total investments should include the salary of her workers for 30 days. C. If annually, her total investments should include the salary of her workers for 365 days.
Q: Write a program that computes the tax and tip on a restauran t bill for a patron with a$44.50 meal…
A: #include <stdio.h> int main(){ float meal=44.50,tax,tip,total; tax=(meal/100)*6.75;…
Q: write a program in C++ that Mr. Ali has invested an amount of Rs101, 876 in a Bank scheme. Bank…
A: Introduction of the Program: The C++ program calculates the total amount after 7 years using the…
Q: Write a c++ program where mikayla jylana deposit her money in time deposit at a bank of Php 25000.…
A: #include<iostream> using namespace std; int main(){ float…
Q: Write a program to increase the salary depending on the number of hours of work per day as follows:…
A: Given: Write a program to increase the salary depending on the number of hours of work per day as…
Q: 2. Write a program for the Air Force to label an aircraft as military or civilian. The program is to…
A: Here is the approach : Create the two integers to take input for the plane speed and the plane…
Q: Q3\ if 0001 = Load AC from memory, 0010 Store AC to memory, 0101= Add to AC from memory Where we…
A:
Q: Suppose that one of the biggest car sales companies promised you an offer. Therefore, they have…
A: #include <iostream>#include <string>#include <fstream>using namespace std; int…
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: You are required to produce a C++ program which solves the following: 1- A worker is paid according…
A: Given that You are required to produce a C++ program which solves the following:1- A worker is paid…
Q: lease write a code which computes the solution of the optimization problem f(x_s)=min f(x) using the…
A: Note: Answering the question in python as no language is mentioned. Input : Function to minimize…
Q: Question 2: Ali gives pocket money to his son in following fashion. Whatever pocket money is given…
A: Include the required libraries in the program. Declare the main function. Declare the variables of…
Q: 1. Write a c++ programto calculate the parking fare for customerswho park their carsin parking lot…
A: Explanation: type_of_vehicle, hours and minutes are the variables used to store data by user. Then…
Q: write a program in c++ Assume eight employees working at Ziomind Sdn Bhd (Ismail, Atikah, Ravi,…
A: C++ code: #include <iostream> #include<iomanip> using namespace std; string names[8];…
Q: this is a problem that I have how would I go about solving it?Im using python so please put the…
A: Algorithm: Initializes the seat prices for class A, B and CDefine main function.Display message…
Q: write the program in C++ Assume eight employees working at Ziomind Sdn Bhd (Ismail, Atikah, Ravi,…
A: #include <iostream> using namespace std; //Functions declaration void read_data(); void…
Q: c++ program to accept the monthly sales of each salesperson and display whether the person deserve a…
A: Program: // C+ Version 14#include <iostream>using namespace std;// main functionint main(){…
Q: c++ program or code of Juan works on a field and for his work he receives 1/3 of the crop. If his…
A: #include<iostream>using namespace std; int main(){ float share_of_juan = 245; float part…
Q: A travel company has three types of buses (A, B and C), each one has a price based on the kilometer…
A: - We need to code for the bus fare problem. - We have to use C language.
Q: . Design the program that will calculate for a parking charge. Th rogram will ask from the user to…
A: The answer is..
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: program so that the user enters the rate of tuition increase for the first year. the rate then…
A: C++ used to answer this question
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A: The question did not say which programming language is used. Hence C++ has been used .A C++ program…
Q: You found an exciting summer job for five weeks. It pays a per hour rate (which will be input to the…
A: Given: You found an exciting summer job for five weeks. It pays a per hour rate (which will be input…
Q: 2). In a garden party there seems to beautiful decoration using daffodil bulbs and tulip bulbs. Each…
A: Program Explanation: Include the header file <stdio.h>. Declare the “Main” Declare the…
Q: p the status simple in order to ensure that you do not have to handle a wide variety of inputs. For…
A: It is orientation day at the college Students need to go to a specific mom based on the status their…
Q: Draw a flow chart for the following problem: a. Ali sells bunches of flowers at the local shopping…
A: The following things need to be kept in mind while drawing flow chart:- Enter the registration…
Q: 2). In a garden party there seems to beautiful decoration using daffodil bulbs and tulip bulbs. Each…
A: Programming instructions: Include necessary header files. Declare and initialize the required…
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A:
Q: t is orientation day at the college students need to go to a specific room based on their status.…
A: The mechanism of developing and implementing an executable computer program to achieve a particular…
Q: Finally, the program should print a summary report with the following details: o Number of cities. o…
A: given
Q: A person X wants to distribute the property share to his children and the wife. Write a C+ program…
A: We need to take input from a user of the below things - total property worth in PKR number of sons…
Q: Using C++ Program, please help me code this problem. The utilities commission has decided that the…
A: Start : 1)First read the units consumed by customer in a month from user 2)Then calculate the total…
Q: 1. Write a simple program to determine the credit card types according to annual income and user…
A: #include <iostream> using namespace std; int main(){ int inc,interest;…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats)…
A: def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon): gallons_used =…
Q: You are required to produce a C++ program which solves the following: 1-A worker is paid according…
A: Code #include <iostream>using namespace std;int main(){ string name; //for input user…
Q: You need to write a program that analyses the savings of a child who wants to buy a bike. Your…
A: The code is given below.
Q: You have started working at a water plant and have been asked to develop a program which, can…
A: C++ program to calculate the water consumption bill for the user. Prompt the user to enter the…
Q: C++ Programming Exercise: Ther are 50 apartment units. When the rent is $600 per month, all the…
A: #include <iostream>using namespace std;#include<fstream>int main (){double rent,…
Q: Given four positive integers a, b, c, and d, compute the sum of those among them that are odd.…
A: A Java program that computes the sum of those among the given integers that are odd without using…
Q: A contractor orders, say, 30 cubic yards of premixed concrete toconstruct a patio that is to be,…
A: Code : #include <iostream> #include <cmath> using namespace std; int main() {…
Q: decrease each of the next month’s bills by 10%. The city also levies a 3%utility tax, which is to…
A: Given: electricity cost per kilo watt is : 25.50Â utility tax is 3 % cost per kilo wat = 25.50 Â…
Q: SHI Hospital provides top-notch medical care with comfortable rooms, The following are the types of…
A: Algorithm: Start Read patient name, room name, no.of days spent n, whether used critical care units…
Q: You are required to produce a C++ program which solves the following: 1- A worker is paid according…
A: PROGRAM CODE: #include <iostream> using namespace std; float calculateTD(float income) {…
Q: 8. Write a program that calculates and displays a person's body mass index (BMI). The BMI is often…
A: Input weight, height Calculate BMI Use if conditional statements to check the person condition based…
Q: A departmental store request to you to automate their cash counter. According to his requirements,…
A: Read the amount that need to paid and then the amount that is given to the cashier. Then subtract…
Q: A manufacturer wishes to determine the cost of producing an open-top cylindrical container. The…
A: C++ C++ is a cross-platform language that can be used to create high-performance applications. C++…
Q: A person X wants to distribute the property share to his children and the wife. Write a C++ program…
A: #include <iostream>using namespace std; int main() { float…
Q: This is the formula for the standard normal deviate, z, used in statistical applications: z = (X-…
A: a. The standard normal deviation needs to be calculated. Hence, there will be only one output i.e.,…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Using C++ language create the program for the following image below
Step by step
Solved in 4 steps with 3 images
- 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.)Fergusonball players are given a star rating based on the number of points that they score and the number of fouls that they commit. Specifically, they are awarded 5 stars for each point scored, and 3 stars are taken away for each foul committed. For every player, the number of points that they score is greater than the number of fouls that they commit. Your job is to determine how many players on a team have a star rating greater than 40. You also need to determine if the team is considered a gold team which means that all the players have a star rating greater than 40. Input Specification The first line of input consists of a positive integer N representing the total number of players on the team. This is followed by a pair of consecutive lines for each player. The first line in a pair is the number of points that the player scored. The second line in a pair is the number of fouls that the player committed. Both the number of points and the number of fouls, are non-negative integers.…In CORAL LANGUAGE please and thank you!! A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are: 1) The year must be divisible by 4 2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400 Some example leap years are 1600, 1712, and 2016. Write a program that takes in a year and determines whether that year is a leap year. Ex: If the input is: 1712 the output is: 1712 is a leap year. Ex: If the input is: 1913 the output is: 1913 is not a leap year.
- You are tasked to create a program that will compute for the salary of an employee for a week. The program should be based on the following requirements:1. An employee works for a regular of 40 hours a week. Beyond that is considered an over time. For example, an employee worked for 48 hours in that week, it means he has an 8-hour over time and he is entitled to an overtime pay.2. The overtime rate is 25% of the rate per hour of an employee and the overtime pay is computed as number of overtime hours multiplied by the overtime rate per hour.3. The gross pay of an employee is its salary without deductions. It is calculated by multiplying the rate per hour and the regular number of hours worked added with overtime pay. 4. Each employee is entitled to several benefits such as SSS, Pagibig and Philhealth. These benefits are deducted to the gross pay of an employee.5. The SSS contribution is computed as follows:Gross pay SSS<=5, 000 Php105.005, 001 – 10, 000 5% of the gross pay10,…You are tasked to create a program that will compute for the salary of an employee for a week. The program should be based on the following requirements: 1. An employee works for a regular of 40 hours a week. Beyond that is considered an over time. For example, an employee worked for 48 hours in that week, it means he has an 8-hour over time and he is entitled to an overtime pay. 2. The overtime rate is 25% of the rate per hour of an employee and the overtime pay is computed as number of overtime hours multiplied by the overtime rate per hour. 3. The gross pay of an employee is its salary without deductions. It is calculated by multiplying the rate per hour and the regular number of hours worked added with overtime pay. 4. Each employee is entitled to several benefits such as SSS, Pagibig and Philhealth. These benefits are deducted to the gross pay of an employee. 5. The SSS contribution is computed as follows: Gross pay 15, 000 6. Pagibig contribution is fixed to P100.00 and…Suppose you are trying to make a schedule for use of the auditorium for different clubs in a school. The auditorium can be used in the afternoons from Sunday to Thursday. There are five clubs: Music, Drama, Dance, Photography, Computer. There are a few rules that must be followed: a)The auditorium can be used by only one club on a day. b)Computer club wants to use on Monday or Thursday. c)Drama club wants on Wednesday or Thursday. d)Music club is fine with any day. Dance club wants on Monday or Wednesday. e)Photography club wants on Sunday, Tuesday or Wednesday. Formulate this problem as a CSP. Draw the constraint graph. Show the steps followed by backtracking search algorithm and derive a solution.
- A basic safe type of investment is an annuity: one makes monthly deposits of size P for n months at a fixed annual interest rate r, and at maturity collects the amount 12P n r ((₁ + 2)² − ¹) 12 r (This is not the definition of annuity that you may be familiar with, but the calculation is part of any accumulation of funds over time.) Say you want to create an annuity for a term of 300 months and final value of 1,000,000 dollars. Using nlsolve, make a table of the interest rate you will need to get for each of the different contribution values P 500 + 50k, k = 0, ..., 10. - Hint: if you write a function for the value of annuity, or the difference between this value and one million dollars with several arguments (P, r, n), you can then create a new function of just the one variabler for each value of P in a loop. The table and pretty tables approach used in homework 2 will be helpful here.A performance venue hosts many concerts a year. Performers perform several times a year for the concerts. Each concert has one or more performers and has a name and a specified seating arrangement. A concert is held in one (and only one) of several concert halls, each of which has a room number and the number of seats. Each concert generates revenues from the sales of tickets. Assume that the price of the ticket is the same for the same concert, but different prices for different concerts.Identify several attributes and a key field for each entity. Represent this situation of concerts and performers with an E-R diagramPython code for this scenario: There is a line of tourist trying to book a room for their vacation. The rates for each room is available below. The guest are allowed to book any room for any duration. Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Input: Number of guests: Name of guests: Letter of their room choice and the number of room: Duration of stay: Customer payment: Process: - The accommodation should be inputted as a string. If the value is not applicable, just ignore that item. - The duration of their stay will be arranged in ascending order to know who will check out soon Output: Guest names in ascending order based on the duration of their stay. Calculate your total sales and the total change. Example: Book now! Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Number of guests: 3 Name of guests: Moon Rose Sky Letter of their room choice and the number of room: A3 B2 C1 Duration of…
- Python Programming Problem: The first line consist a number X i.e., the number of test cases. The first line consists three space-separated integers N, Q1, and Q1. Then Q1 lines follow, each containing a description of a road proposed0. Each of these lines contains three space-separated integers p, q, and r, where p and q denote the end points of the road and r denotes the associated cost. Then Q1 lines follow, each containing a description of a road proposed by Brian's company in the same format. Output a single line for each test case. If it is impossible to choose a subset of the roads in such a way that for each pair of cities, there is exactly one path of roads connecting them, output a single line containing "No way" for that test case. Otherwise, output a single line containing two space-separated integers: the maximum profit Brian can gain and the minimum total cost of the chosen roads that yields the maximum profit. Input: 1 3 1 1 0 1 1 0 1 3 Output: No wayA corporation named XYZ needs a program to calculate how much to pay their part-time and full-time employees. For full-time employees, the employees get paid time and a half for any hours over 40 that they work in a single week. For example, if an employee works 45 hours, they get 5 hours of overtime, at 1.5 times their base pay. The base should be at least RS. 120 an hour. This XYZ Corporation requires that an employee not work more than 60 hours in a week. For part-time employees, they get paid time and a half for any hours over 30 that they work in a single week. For example, if an employee works 33 hours, they get 3 hours of overtime, at 1.5 times their base pay. Their base pay should not be less than RS. 110 an hour. This XYZ Corporation requires that an employee not work more than 35 hours in a week. To sum up: An employee gets paid (hours worked) × (base pay) for each hour up to 30 or 40 hours depending upon employee type. For every hour over 30 or 40 depending upon employee…A hospital dietitian prepares breakfast menus every morning for the hospital patients. Part of the dietitian's responsibility is to make sure that minimum daily requirements for vitamins A and B are met. At the same time, the cost of the menus must be kept as low as possible. The main breakfast staples providing vitamins A and B are eggs, bacon, and cereal. The vitamin requirements and vitamin contributions for each staple follow: Vitamin Contributions Minimum Daily Requirements Vitamin mg/Egg mg/Bacon Strip mg/Cereal Cup А 2 4 1 16 В 3 2 1 12 An egg costs $0.04, a bacon strip costs $0.03, and a cup of cereal costs $0.02. The dietitian wants to know how much of each staple to serve per order to meet the minimum daily vitamin require- ments while minimizing total cost. a. Formulate a linear programming model for this problem. b. Solve the model by using the computer.