Q7:The electricity accounts of residents in a very small town are calculated as follows: > if 500 units or less are used the cost is 2 cents per unit; > if more than 500, but not more than 1000 units are used, the cost is $10 for the first 500 units, and then 5 cents for every unit in excess of 500; > if more than 1000 units are used, the cost is $35 for the first 1000 units plus 10 cents for every unit in excess of 1000; > in addition, a basic service fee of $5 is charged, no matter how much electricity is used. Q8:Write a program which enters the following five consumptions into a vector, and uses a for loop to calculate and display the total charge for each one: 200, 500, 700, 1000, 1500. (Answers: $9, $15, $25, $40, $90)
Q: Lael is always on the lookout for students who might be interested in running for office in student…
A: EXPLANATION: The Nested if statement is used to check multiple conditions at a single instance.…
Q: Teacher has prepared the result of a class containing n number of students. He wants to give the…
A: #include <iostream> using namespace std; void three_toppers(float marks[], int n){ float…
Q: def get_change(cash_received: float, to_pay: float) -> float: ' ' ' Calculates total change to…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Write an expression that prints "Eligible" if userAge is between 18 and 25 inclusive. Ex: 17 prints…
A: Explanation- if(userAge>=18 || userAge<= 25) { System.out.println("Eligible"); }…
Q: rite an if/else statement that compares the value of two variables, lastYrTaxes and estimatedTaxes,…
A: if (lastYrTaxes < estimatedTaxes) { oweMoney = true; } else { oweMoney = false; }
Q: Case 5 Rice Type Dinorado Sinandomeng NFA Brown Ask the user how many kilos of rice he/she would buy…
A: It is a console based program where the input is taken from the user and output is printed on…
Q: The table below shows the profit each subway line between two stations: Stations a b d a 30 20 50 b…
A: eg_1 = find_station_within_distance(subway_map, origin = 'a', dist = 0) eg_2 =…
Q: Q.No.1.Write collection of production rules in OPS-5 fomat which should input monthly income from…
A: The below program in C++language :- #include <stdio.h> #include <conio.h> #include…
Q: Using the switch, case, · · · , otherwise control structure, write a MATLAB program for calculating…
A: Given: Using the switch, case, · · · , otherwise control structure, write a MATLAB program for…
Q: Write a flow chart for the case below: The unit for electricity usage is kWh. For domestic usage,…
A: The flow chart is given below for the above-given question:
Q: To be eligible for a particular ride at an amusement park, a person must be at least 12 years old…
A: Explanation: The condition "age must be at least 12 years old" can be expressed by the statement…
Q: You have just started a sales job in adepartment store. Your pay consists of a base salary and a…
A: Take a variable for the commission. Take a variable for the number of sales. Use the if-else…
Q: Your program only work for one emplyee. For second emplyee I can not enter name of employee. I need…
A: There was additional empty spaces after assigning next as y and this is consumed by employee name…
Q: 5)Booksellers has a book club that awards points to its customers based on the number of books…
A: CPP program to find the points awarded on purchasing the book in a month. Declare a variable named…
Q: Bob employs a Landscaping company that wants to use your services to help create an invoice…
A: We need to take input the number of hours worked by an employee. Then we know that they charge $30…
Q: Bob employs a painting company that wants to use your services to help create an invoice generating…
A: An algorithm is created during the early stage of a program design. It helps in understanding how a…
Q: sing C# 1. The user shall be able to enter the following values: a. Gross monthly income (before…
A: the code is an given below :
Q: (Quality Points for Student’s Grades) Write a function toQualityPoints that inputs a student’s…
A: (Quality Points for Student’s Grades) Write a function toQualityPoints that inputs a student’s…
Q: This function, named fruit_cost, takes two arguments, named qty and price; Display product of price…
A: We have one python function fruit_cost which displays the value of its arguments: qty and price…
Q: The following code finds if age is between 18 and 40 (both inclusive) or not. What will be the…
A: According to the Question below the Solution:
Q: You need to choose a password for computer account. The rule is that the password must consist of…
A: Solution:
Q: QUESTION 8 Write an if/else statement that compares the value of two variables, lastYrTaxes and…
A: Given:
Q: What is the last value of x, y and z? int x = 3, y =5, z = 0; %3D if (x > 0) Z - X; if (z > 0) x =…
A: I have provided both answer with it's output in step 2
Q: if department < 3 then raise = SMALL_RAISE else if department <5 then raise = MEDIUM_RAISE else…
A: Pseudocode is an informal way of programming a description of the steps used to solve a particular…
Q: function [J, grad] = costFunction (theta, X, y) m = length (y); % number of training examples * You…
A: Here is the sigmoid function: function g = sigmoid(z) g = 1/(1+exp(-z)); end
Q: Create the following variables: Gender (e.g. male or female) Age (e.g. 0, 1, 2, etc.) Handedness…
A: Note: Answering the first three subparts and in python as no language is mentioned. Task : Create…
Q: if department < 5 then raise = SMALL_RAISE else if department <14 then raise = MEDIUM_RAISE…
A: In the code else if ladder is used The department 8 checks in first condition 8 not less than 5 so…
Q: 9. Option A: Option B: Option C: Option D: In mid point ellipse method, is (Xi, Y) is plotted in…
A: here we write formula for next point of ellipse function:…
Q: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
A: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
Q: 1. Calculate the Overtime Pay for 5 Service men Enter the Service man Name, Enter the Type of…
A: The answer is given below:-
Q: $51.00 |→ solution ./salesTax Enter the price: 54.30 $54.30 + $4.20 $58.50 solution So you'll print…
A: - We have to write a code for calculating the total price after adding tax.
Q: The result is negative when the dividend and divisor have not same sign. * O False True
A: Binary Coded Decimal, or BCD, is a telephone system or code that uses binary numbers or digits to…
Q: Write a simple interest function that calculates simple interest with VBA. (can be try at excel.)
A: required: function to calculate simple interest
Q: What is the opposite of greater than?
A: The opposite of grater than is less than.
Q: type is as follows: Туре Price RM 15 for 1 kilogram RM 6 for 1 kilogram RM 10 for 1 kilogram Clothes…
A: I'm writing C ++ Code for this question:
Q: QUESTION 8 Write an if/else statement that compares the value of two variables, lastYrTaxes and…
A: The question is on: writing the code in java with respect to the given question.
Q: Enter desired auto service: oil change You entered: Oil change (2) Output the price of the requested…
A: The answer is
Q: 13. Book Club Points Serendipity Booksellers has a book dub that awards points to its customers…
A: Dear Student, As no programming language have been mentioned , I am programming it in c++.
Q: The number of chocolates that John is losing per day is x. Whereas, the number of chocolates that…
A: total number of chocolates = y*(a/x) + b Explanation: initially, john has 100(a) chocolates and he…
Q: a. Draw a flow chart for the following problem: Ali sells bunches of flowers at the local shopping…
A: Actually, flowchart represents work flow of process.
Q: King room: $100/night| Suite room: $150/night The size of the hotel chains in different locations…
A: FLOWCHART:
Q: b. if (score > 25): level 4 score result 19 elif (score >= 15): level 3 25 11 elif (score > 10):…
A: Please find the answer below :
Q: In Column I - We are going to give a bonus based on the profit margin. Create an IF STATEMENT where…
A: The Excel formula is given below assuming a mock data along with screenshots
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Below is the flowchart:
Q: In C++ A carpet company has determined that every 50 square feet of floor coverage will require 6…
A: #include<iostream>using namespace std; bool inputValidate(double);void getInfo(double&,…
Q: Serendipity Booksellers has a book club that awards points to its customers based on the number of…
A: Actually, java is an object oriented programming language. It is an platform independent.
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Answer: We have draw the flowchart of given question and given user input as name ,price ,size,…
Q: SOLVE IN C# Canada Government has announced 250 immigration visa lottery for third world countries.…
A: Lets analyze what information is provided to us and what is expected out of it. Programming language…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The following is a table of applicants to be considered for admission into 07BSAM: POINTS MATH SYMBOL 123 450 NAMES STUDENT NUMBER ENG SYMBOL To qualify for admission, an applicant should have at least 25 points, minimum of B symbol in Mathematics and a minimum of E symbol in English. If an applicant has a C symbol in Mathematics, then the applicant must pass an entrance test to be considered for admission. Hints: There are three modes of study: The Full-time mode, the Part-time mode and the Distance mode. Applicants can choose which mode they want provided there is space in that mode. Each of the Full- time and the Part-time modes cannot accommodate more 30 admitted students. After these two modes are full, every other qualified applicant is admitted in the Distance mode. The admission exercise is first come first served. Write a pseudocode that identifies the applicants that qualify for admission and outputs their names, student numbers and modes of study. Use a FOR-LOOP /…Each salesperson at IdzaaraAisya Inc. receives a commission based on the amount of his or her sales. The commission rates and additional payment amounts are shown below. Sales ($) Commission 1–5,999.99 10% of sales 6,000–29,999.99 $600 plus 13% of the sales over 6,000 30,000 and over $3,720 plus 14% of the sales over 30,000 Additional $500 if the salesperson has worked at the company for over 10 years and the sales amount is at least $10,000. $700 if the salesperson travels. Draw a flow chart. Calculate the commission, any additional amount, and the total due only when the sales amount is greater than 0; otherwise, display $0.00 as the commission, additional amount, and total dueSample Run 1 Enter the material: metal- Enter the number.of units::700- Cost per metal: 5.00- Shipping cost: 50.00- Total cost::3550.00- Sample Run 2 Enter the material: bricke Enter the number.of units::10- Cost per metal: 1.00- Shipping cost: 20.00- Total cost::30.00- Sample Run 3 Enter the material: paint- Enter the number.of units::100- Error- Sample Run 4 Enter the material: wood- Enter the number.of units:-23- Error- Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. O Interactive Session ? O Visible newlines O Visible whitespace O Display stdin O Display stdout wood 278 Cost per wood: 8.00 Shipping cost: 25.00 Total cost: 2249.00
- A real estate agency pays a sales representative monthly minimum income of 1000, 54 TL, additional allowance according to his/her title, plus 200 TL for each property sold by the sales representative in that month and a certain amount of the sales amount. Additional allowance amounts by title and bonus rates are given in the tables below: Title Additional Allowance (TL) Trainee (1) Beginner (2) 250 350 Expert (3) 500 Senior (4) 750 Sales Amount (TL) Bonus Rate (%) 0- 499.999,99 0.25 500.000- 999.999,99 0.5 1.000.000- 1.999.999,99 0.75 2.000.000-... 1 By adhering the rules stated above, find the total salary amount of a sales representative for a particular month, by obtaining the title of a sales representative from the user (1 for the trainee, 2 for the novice, 3 for the specialist, 4 for the senior), the number of real estate sold this month and the total sales amount made by the sales representative. Write a MATLAB code that prints the total salary on the screen using the…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.A student may apply for an arts college or an engineering college after his school. Admission to arts college or engineering college, is based on the marks obtained in the six subjects: English, Second language, Maths, Physics, Chemistry and Computer Science. Both the applications have the following details: application number, name, age, marks in all six subjects and cut-off for the eligibility. For Arts college, cut-off is the average of marks in all the subjects and whereas for engineering colleges cut-off is the average of marks in maths, physics, chemistry plus the marks scored in the entrance exam. Given all the required details, Design an OOP model to compute the cut-off marks and implement it using Java.
- P1 - Loan Payment Schedule Main Street Bank is offering an annual interest rate discount based on the client’s credit score. The discount for each credit score level is provided in the table below. The lowest credit score is 300 while the highest credit score is 850. For example, the new interest rate for a client with a credit score of 755 and a current interest rate of 4.25% would be 4.25 – 0.75 = 3.50% interest rate Credit Score Rating Interest Rate Discount 300 - 579 Very Poor 0.00 580 – 669 Fair 0.25 670 - 739 Good 0.50 740 - 799 Very Good 0.75 800 - 850 Exceptional 1.00 Use modular programming concepts Create a program that includes a WHILE loop to generate a payment schedule for loans that are paid in equal monthly payments Input the loan number and retrieve required loan account from MS_LOANS table Output is shown below Monthly interest is calculated by dividing the yearly interest rate by 12 to get a monthly interest…A real estate agency pays a sales representative monthly minimum income of 1000, 54 TL, additional allowance according to his/her title, plus 200 TL for each property sold by the sales representative in that month and a certain amount of the sales amount. Additional allowance amounts by title and bonus rates are given in the tables below: Title Additional Allowance (TL) Trainee (1) 250 Beginner (2) 350 Expert (3) Senior (4) 500 750 Sales Amount (TL) Bonus Rate (%) 0- 499.999,99 0.25 500.000- 999.999,99 0.5 1.000.000- 1.999.999,99 0.75 2.000.000-.. 1 By adhering the rules stated above, find the total salary amount of a sales representative for a particular month, by obtaining the title of a sales representative from the user (1 for the trainee, 2 for the novice, 3 for the specialist, 4 for the senior), the number of real estate sold this month and the total sales amount made by the sales representative. Write a C code that prints the total salary on the screen using the switch-case…in a shop ,there are 10 employee and 20 kinds of goods,goods id between 1-20 EMPLOYEE id first name last name gender 10001, 'Tom', 'Brown', 'F'10002, 'Elizabeth', 'Tremblay', 'F'10003, 'Gladys', 'Julie', 'F10004, 'John', 'Taylor', 'M10005, 'Amelia', 'Smith'10006, 'Logan', 'Katherine'10007, 'Leo', 'Brown'10007, 'Lem', 'Thompson'10009, 'Tom' 'Smith'10010, 'Emma', 'Campbell' ------------ and I want to add a name library in it ,like this how could i create a HTML file ,with will randomly create customers with these employee . there is a start button on the page . press "start "bottom ,and it will It will randomly match 10 items, customers, and goods, display goods id ,customername and gender ,employer name , id and gender . how to do such a page ?
- Problem: Read your name, distance to college, cgpa and allowance. Find new allowance based on the following conditions: If your cgpa is more than 3.5 and distance is more than or equal to 50 You get double the allowance. If your cgpa is more than 3.0 and distance is more than or equal to 50 You get 1.5 times of allowance Otherwise No change is allowance. Print your name, cgpa, distance to college and new allowance.Please help with the following question£$ solution please.