Select the if statement that assigns .2 to commissionRate if the monthlySales is greater than 10000. if monthlySales > 10000: .2 = commissionRate if monthlySales > 10000: commissionRate = .2 if monthlySales > 10000 commissionRate = .2 if monthlySales > 10000: commissionRate == .2
Q: Write the code to find the month with the best total sales for the company. You may assume that the…
A: double bestTotSales = monthSales[0]; int index = 0; for(int i = 0; i < 12; i++) {…
Q: Book Club PointsSerendipity Booksellers has a book club that awards points to its customers based…
A: Given: Book Club PointsSerendipity Booksellers has a book club that awards points to its customers…
Q: Write the shortest condition in the if-statement below that will make the unshaded values of row two…
A: Please find the results in the below step. The solution contains the condition for selecting the…
Q: Book Club Points Serendipity Booksellers has a book club that awards points to its customers based…
A: Program to find the points awarded on purchasing the book in a month. When the customer purchases 0…
Q: Customers receive a free appetizer with any dinner purchase of $40 or higher, otherwise the…
A: Given, Customers receive a free appetizer with any dinner purchase of $40 or higher, otherwise, the…
Q: Assignment3C: Club Sign-ups! We have a lot of clubs and activities here at KSU, and trying to decide…
A: #include <iostream>using namespace std;int main(){ string type; float dues;…
Q: In an If statement, when the „condition is true Only the End If statement is executed Only the Else…
A: According to the information given:- We have to find the correct option to satisfy the statement.
Q: Premium Car Rental company charges RM 2.50/km if the total mileage does not exceed 100. If the total…
A: Flowchart is attached in the screenshot. note that mileage is user inputted data. Condition for…
Q: 7. 2 3 4 5 7 9. 10 11 12 13 14 15 16 17 18 19 20 8. 2 3 4 7 8 10 11 12 13 14 15 16 17 18 19 20 3 4 7…
A: Given: Fill in the blanks.
Q: It is prefer to round off a business letter with "-ing forms"
A: Always try to round off a letter with “-ing forms”. These stress that you have an on-going…
Q: Question-2 1-) Ask user's name and keep it in name variable. 2-) Get a midterm grade from…
A: Algorithm for given program: Use a variable called name to store the name. Use variable midterm for…
Q: Create a condition for an if statement that will evaluate as true only if variable x is not within…
A: Consider the below given Program code: //including necessary header files #include…
Q: Question 7 Convert the following if/else if statement into a switch statement if (choice == 1) =3D {…
A: Given:
Q: Vrite an it/else statement that compares the value of two varilables, lastYriaxes and estimated…
A: ANSWER:-
Q: 1) Check if even 2) Check if odd 3) Check if Negative 4) Check if positive For each option ask the…
A: C++ used to answer this question
Q: 4. ATM (Automatic Teller Machine) Create a simple ATM program that allows the user to check his or…
A: - We need to create an ATM machine program in python.
Q: Serendipity Booksellers has a book club that awards points to its customers based on the number of…
A: #include <iostream>//including input output stream using namespace std;//using namespace…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A:
Q: Design an Applet function to display the net amount depending on the option selection by the user…
A: I am writing a code supposing that using array is efficient. which will give you a efficiency of…
Q: Salary Options: You are offered two salary options for a fixed number of days. Option 1: $100 per…
A: def option1(n): salaryFromOption1=100*n; #option1 is paying 100 everyday return…
Q: A store is having a (Buy One, Get One Half Off) sale. The store manager wants an application that…
A: Code : Public Class frmMainPrivate Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles…
Q: Serendipity Booksellers has a book club that awards points to its customers based on the number of…
A: Answer : import unittest step-1) write the consumer_rewards method as per the conditions defined…
Q: rite an appropriate conditional statement for each of the following situations. If you make less…
A: Here let the income be denoted by variable a and tax rate by variable tax.
Q: Write an application to chief officer municipal committee about unhygienic conditions in your…
A: Given: Write an application to chief officer municipal committee about unhygienic conditions in…
Q: With the logical operator both conditions must be true for the entire condition to evaluate * .True…
A: OR :- with the logical operator OR any of one condition must be true for the entire condition to…
Q: Serendipity Booksellers has a book club that awards points to its customers based on the number of…
A: As per the given problem, we have to design a pseudocode that displays the number of points earned…
Q: Assign a value to double variable cost depending on the value of integer variable distance as…
A: We will be using condition statement if elseif and else. In this we need to check the check the…
Q: Write an interactive Java payroll application that calculates the net pay for a factory worker. The…
A: Please save your source code file named as Payroll otherwise it shows error.
Q: 5)Booksellers has a book club that awards points to its customers based on the number of books…
A: Sample Response: //C++ program to print the number of points awarded for book purchase#include…
Q: Write an interactive Java payroll application that calculates the net pay for a factory worker. The…
A: import java.util.Scanner; class Test{ public static void main(String args[]){ Scanner sc= new…
Q: Problem Description: You have a group of friends coming to visit for your high school reunion, and…
A: Restaurant Sorting in Python programming
Q: Assignment3C: Club Sign-ups! We have a lot of clubs and activities here at KSU, and trying to decide…
A: The answer of this question is given below:-
Q: ~qVr Yes, it is valid Insufficient information to find the a Not valid
A: Let's see the solution.
Q: 5)Booksellers has a book club that awards points to its customers based on the number of books…
A: 5) Answer:-
Q: The item(s) that should mention in a job application when apply for a job advertised in the
A: The Answer is - All of the above.
Q: Imagine you have just purchased your first home. As your first house project, you have decided on…
A: Solution :- The required pseudo code for the problem is given below: Print "Enter the budget" Read…
Q: Are the following statements correct? Which one is better?
A: Above program image (b) is better because in this program we only use if else statement and we save…
Q: Enter the number that matches your flooring choice Option 1: Option 2: Option 3: scored concrete…
A: As no language is mentioned, I am solving using C. Written code: // Program to create a simple…
Q: Which statement will display The total price is 10.47 (Assume a variable called total stores the…
A: A string value to be printed must be enclosed in double/single quotes. For example, print('Hello')…
Q: Which statement will display The price is 10.47 (Assume a variable called total stores the value…
A: Given, Choices: print(The total price is 10.47) print('The total price is total price')…
Q: Reconstruct the if.else statement shown in Figure 3 using only the relational operator "= 90) cout=…
A: Given: To transform the given Code.
Q: ShopIt is an online merchandise provider that charges their shipping fee based on the number of…
A: LOOP Read numberOfItems Initialize shippingFee to 0 If numberOfItems=0 Exit from loop If…
Q: Convert the following if/elseif statement into a switch statement: if (choice == 1){cout <<…
A: The conversion is given below:
Q: In order for a compound condition using the operator to be true, both sub- conditions must be true.…
A: A compound condition joined by AND operator evaluates two or more conditions before processing…
Q: Advisor should be able to input name of advisee and CGPA. Program should give the output as follows…
A: public class Tester{ public static void main(String[] args) { Scanner sc=new Scanner(System.in);…
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: variable to store the average score of the student’s prelim exam grade.
A: Programming language is not defined so I am giving answer in Java The variable is an integer…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Declaring an integer variable packNum two double variable discountTotal and total. Asking Input from…
Q: The company offers 10-, 15-, and 30-year fixed loans. The interest rates offered to customers are…
A: Objective: This program builds an application for calculating the monthly payment of an entered loan…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Sample 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.00if answer wrong will dislikein 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 ?
- Jake’s Car Rental charges each customer a daily rental fee of $55. However, there is an additional charge for renting a luxury car. The additional charge is $10 if the customer has a Jake’s Luxury coupon; otherwise, the additional charge is $30. What are the primary and secondary decisions?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…Customer c1 = new Customer("user", "pass"); c1.setPassword("changeme"); Customer c1 = new Customer("user","pass"); c1.password("changeme"); Customer c1 = new Customer("user", "pass"); c1.password = c1.setPassword("changeme"); Customer c1 = new Customer("user","pass"); c1.password = "changeme";
- Which of the given statement satisfies this condition: Calculate the remainder after the variable product is divided by divisor and assign the result to product. a. product % divisor == 0;b.product =% divisor:c. None of the aboved. product%= divisor:if department < 5 then raise = SMALL_RAISE else if department <14 then raise = MEDIUM_RAISE else if department < 9 then raise = BIG_RAISE endif endif endif In the following pseudocode, what percentage raise will an employee in Department 8 receive?Ex1. Dorm, Meal Plan, and miscellaneous options Calculator: A university has the following dormitories:• Allen Hall: $1,800 per semester• Pike Hall: $2,200 per semester• Farthing Hall: $2,800 per semester• University Suites: $3,000 per semester The university also offers the following meal plans:• 7 meals per week: $600 per semester• 14 meals per week: $1,100 per semester• Unlimited meals: $1,800 per semesterThe university also offers the following miscellaneous options:• Use laundry room: $80 per semester• Use paid-parking areas: $100 per semester• Use in-city school buses: $60 per semester Below is the to-do list:Create an application with the following controls1. the names of the dormitories (i.e. ComboBox controls)2. the meal plans (i.e., RadioButton controls)3. the option list (i.e., Checkboxes). 4. other required controls (e.g., labels, button)5. plus a stylesheet which will set the label control’s font size to 16 when the app…
- if department < 3 then raise = SMALL_RAISE else if department <5 then raise = MEDIUM_RAISE else raise = BIG_RAISE endif endif endif In the following pseudocode, what percentage raise will an employee in Department 5 receive?Using Tableau create a variable for following situation student classification Graduate undergraduate HONOR (based on classification) for graduate GPA>90 then "GOLD" for undergraduate GPA>80 then "gold ribbon"Which values are marked for deallocation after the sequence? Integerobj1=newInteger(10);Integerobj2=newInteger(20);Integerobj3=obj2;Integerobj4=newInteger(40);obj2=null;obj4=obj1; only 20 only 40 20 and 40 no values are marked for deallocation Which expressions for XXX, YYY, and ZZZ output "Great job" for scores above 90, and "Nice try" otherwise? Choices are in the form XXX / YYY / ZZZ. intscore;score=scnr.nextInt();if(XXX){System.out.println(YYY);}else{System.out.println(ZZZ);} score < 91 / "Great job" / "Nice try" score < 91 / "Nice try" / "Great job" score > 90 / "Nice try" / "Great job" (Not possible for given code) The program should determine the largest integer seen. What should XXX be if the input values are any integers (negative and non-negative)? All variables are integers and have…