Rohan bought a gallon of milk with an original price of $4.25; today he gets a 15% discount before a 5% tax; display the final price of the milk.
Q: What is the value of the following condition? If the number is 5, 6, 7, or 8, then: Choose…
A: Answer is b)
Q: Enter the ticket price of the item or zero t o quit 100 Is this item reduced y/n? y Is this item…
A: The main objective of the python program, main.py is to prompt the user to enter the value of item…
Q: This lab is to to add another option for the user to print warnings of any inventory running low.
A: Program: // C++ version 14#include <iostream>using namespace std;// function to prompt for…
Q: following solidity code segment aim to select a winner at random from the a set of players (assume…
A: It is defined as a contract-oriented, high-level programming language for implementing smart…
Q: What will be the final value of EAX in this example? mov eax, 0 mov ecx, 10 L1:…
A:
Q: Which of the following statements is false? Group of answer choices R+⊆ Q Q+⊆ R Z+⊆ Q Z+⊆Q+
A: R+ is set of positive real numbers: R+ = { 1/2, 1,3/2, 3, 5.66,6,....} Q is set of rational…
Q: You are a contestant on "Who Wants to be a Millionaire?" You already have answered the $250,000…
A:
Q: 1. Find the area of a rectangle 2. Find the area of a square 3. Find the area of a Circle If user…
A: print("1. Find the area of a rectangle");print("2. Find the area of a square");print("3. Find the…
Q: If you have been given three arguments - the objective of the stolen item, the name of the pet and…
A: 1. Create a Method with 3 arguments2. Initialize the variable 3. Use the below logic const arr=…
Q: The HR Department wants to display all the employees who are not living in Salalah nor Muscat. Which…
A: The NOT operator is used to displays a record if the condition(s) is NOT TRUE. It is used with WHERE…
Q: CHALLENGE ACTIVITY 1.10.1: Sphere volume. Given sphereRadius and piVal, compute the volume of a…
A: According to the Bartleby guideline, we are supposed to answer only one question at a time. Kindly…
Q: The output will be neatly displayed like the following sample: Item Qty Unit Price Total Price…
A: Java used to answer this question
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: Solution - Algorithm- START Ask user to input 4 quizzes marks Calculate total of all 4 quizzes…
Q: What is the correct code to calculate and display the remaining amount after deducting 2.5% discount…
A: Note: As per policy we are entitled to answer 1 question at a time. In the above question option, a…
Q: 1- Enter a player information 2- Play 3- Display the name of the top winner(s) 4- Who are the last…
A: The project topic gives you the basic idea that two players are playing the game of Tic Tac Toe. But…
Q: y can be rent numbe kample whe )), the total part rst+ prt в )x Ма), the
A:
Q: There are unlimited numbers of 1c, 5c, 25c, 50c Pick 48 coins to have 1 dollar Identify 2…
A: Should there be a possibility for alteration: The coin changeover challenge is analogous to that…
Q: Using a javascript Find out the number of years required for an investment to grow to a desired…
A: PROGRAM EXPLANATION: Start. Create an Html page. Inside the Html page define the script tag to…
Q: if one kilogram of rice ci#t Php35.00,find a rule that will determine the amount to be paid fir a…
A: Answer: I have given answer in the brief explanation
Q: You need to take a trip by car to another town that you have never visited before. Therefore, you…
A: (a) Network:
Q: Grass sod costs 35.00 per square meter and fencing costs 100.00 a linear foot. Display the total…
A: Note - This program is done in C++. Program Approach - Use the necessary header files. Define the…
Q: Sally is shopping at her favorite department store, which is having a sale on sweaters. The colored…
A: This problem requires making the decision to help sally calculate the discount on the sweater's…
Q: The local pet store has 35 different bowls with fish in them arranged in a circle in the “fish…
A: Complete answer is given below .
Q: goal test, can be explicit or implicit , which of the following is implicit O x = "at Bucharest"…
A: goal test , can be explicit , e.g. x="at Bucharest " implicit , eg Checkmate(x) A Complete ,…
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: Analyze each statement whether it is true of false. Choose the appropriate letter from the options…
A: The given statements were analyzed and the answers are provided in step 2.
Q: you deposit compounded quarterly, how long until there is $4500 in the account? If $2500 into an…
A: A=P(1+r/n)nt As the CI is being compounded quarterly, n=4
Q: Evaluate the absolute value of the following limit 6+h – h² lim h-3 V5h – 6 - Vh + 6
A: Solved the given question
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: Rewrite the following code segment using conditional operators (?/:) double discount_percent; if…
A: The conditional (ternary) operator is the only JavaScript operator that takes three operands: a…
Q: HOW TO KNOW IF MY INPUT/ STUDENT ID IS VERIFIED AND NOT VERIFIED, IF NOT, ASK THE USER AGAIN TO…
A: Modified code: student_213 = {} # dictionary of student information print…
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: Draw CH3CH2CO2CH3. Need answer fast i'll rate up
A: Here in this question we have given a compound and we have to draw it's diagram.. So in order to…
Q: A customer has to pay for five items. He has only 20.0omr with him. The price of the products are:…
A: Python is used to answer this question.
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: 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: what value will z have if we execute the following statement ? Please, explain your answer. double z…
A: Answer: The value of z will be 0. Explanation: Here both 10 and 40 are integers. This is because…
Q: gives a 3.5% bonus to salespeople selling more than $2,000 All other salespeople should receive a 3%…
A: We need to write a C++ code to calculate the bonus for the salespeople. We have two conditions- (1)…
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: Fortune Enterprises has two categories of staff; fulltime staff and parttime staff. Regardless of…
A: I have implemented the given requirements in C language as per specification. Comments are mentioned…
Q: Tax_rate=10% Sample Run 1: Enter the car model: BMW Enter your name: Sam Enter the type of the…
A: you have not specified the programming language so according our policy we have provided you answer…
Q: You have been asked to store the IDs and scores of competitors in three rounds of a game and find…
A: Let's understand step by step : 1. First of all declare 4 integer type arrays : id[] : to store…
Q: User Satisfaction team wants to send monthly summaries for each user. They need the following…
A: Hey! You forgot to provide the table names. That really does not matter here. Let us cal the first…
Q: Given the total required amount and the same members representing the amount of change in it in your…
A: Calculate the total that we have by adding up individual denominations sum Then use an if block to…
Q: Enter your formula in G5 to find out the PRICE under these three conditions: ITEM is "T", SIZE is…
A: Answer : In order to find the PRICE value of conditions ITEM "T", SIZE "L", and COLOR "R" we need…
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: What is the equivalent statement to the following statement? score NOT BETWEEN 400 AND 700
A: We need to solve:
Step by step
Solved in 2 steps with 1 images
- You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at a local restaurant. You are not sure if any of them have dietary restrictions, but your restaurant choices are as follows: Joe’s Gourmet Burgers—Vegetarian: No, Vegan: No, Gluten-Free: No Main Street Pizza Company—Vegetarian: Yes, Vegan: No, Gluten-Free: Yes Corner Café—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes Write a program that asks whether any members of your party are vegetarian, vegan, or gluten-free, to which then displays only the restaurants to which you may take the group.Please note that on the last line of the code, we need to print out the 'and" with the smallest and the largest number for min and max functions in order to maximize our credit with the zyBooks lab assignment for 3.9. Code Hints: smallestnum = min(usernumbers) #The smallest number is printed out - for example 5, 10, 15 - 5 would be printed out largestnum = max(usernumbers) #The largest number is printed out - for example 5, 10, 15 - 15 would be printed out Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the list values and the smallest and largest integers in the list using min and max built-in functions . This code runs in zyBooks..... Ex: If the input is: 10 5 3 21 2 -6 the output is: [10, 5, 3, 21, 2] 2 and 21 user_numbers = [] user_input = int(input())while user_input > 0: user_numbers.append(user_input) user_input = int(input())print(user_numbers) ''' Complete code here.…Please note that on the last line of the code, we need to print out the 'and" with the smallest and the largest number for min and max functions in order to maximize our credit with the zyBooks lab assignment for 3.9. Code Hints: smallestnum = min(usernumbers) #The smallest number is printed out - for example 5, 10, 15 - 5 would be printed out largestnum = max(usernumbers) #The largest number is printed out - for example 5, 10, 15 - 15 would be printed out Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the list values and the smallest and largest integers in the list using min and max built-in functions . Ex: If the input is: 10 5 3 21 2 -6 the output is: [10, 5, 3, 21, 2] 2 and 21 user_numbers = [] user_input = int(input())while user_input > 0: user_numbers.append(user_input) user_input = int(input())print(user_numbers) ''' Complete code here. '''smallest_num=min(user_numbers)largest_num =…
- I need the program to print the line "Meal options:" only when there is enough money. def get_possible_meals(budget, num_persons): tacos_cost = 4 empanandas_cost = 3 max_tacos = budget // tacos_cost max_empanadas = budget // empanandas_cost feasible = False print("\nMeal options:") for num_tacos in range (max_empanadas + 1): num_empanadas = (budget - num_tacos * tacos_cost) // empanandas_cost if num_empanadas > 0andnot (num_empanadas + num_tacos) % num_persons: feasible = True total_cost = num_tacos * tacos_cost + num_empanadas * empanandas_cost change = budget - total_cost print(f'${total_cost} buys {num_empanadas} empanadas and {num_tacos} tacos with ${change} change. {(num_empanadas + num_tacos) // num_persons} items per person.') ifnot feasible: print(f'You cannot buy a meal with these options.') def main(): budget = int(input('Enter budget for meal: $')) num_people = int(input('How many people are eating: ')) get_possible_meals(budget, num_people) if __name__ == '__main__':…complete the following cose to calculate the average salary using the while loop in the razor page? @{ [ ] salary = {555.2,678,700,545}You are given a formula where pressure (P) is related to temperature (T), P=15*T with pressure in units of J/m3 and temperature in Kelvin. Use Excel to first list a range of temperatures between 0-50 Celsius in 5 degree increments. (input into a worksheet T(C) in B1, 0 in B2, 5 in B3, 10 in B4, etc. until 50 in B12). Then convert those temperatures to Kelvin in the next column (C1 should be T(K), C2 to C12 should be the temperature range in Kelvin). Temperature (in Kelvin) = Temperature (in Celsius) + 273.15. The next column (D) should then be labeled in P( J/m3 ) in D1, followed by the pressure value for each relative temperature (the pressure value in D5 should be the pressure at the temperature of C5). Based on the formula of P = 15*T with pressure in units of J/m3 and temperature in Kelvin, what is the value of pressure found in D7?
- Use python please You are the manager of a £100 million portfolio, and you have 6 investment options: - First Mortgages: return 9% and risk score 3- Second Mortgages: return 12% and risk score 6- Personal Loans: return 15% and risk score 8- Commercial Loans: return 8% and risk score 2- Government Securities: return 6% and risk score 1- Saving Account: return 3% and risk score 0 The current regulation requires that the amount allocated in second mortgages and personal loans (combined) should not exceed the amount allocated in first mortages. Given this information: a) Ignoring the risk involved in the different investment options, what is the profit maximizing allocation of resources? What are the expected profits? b) Now, you have to consider the risk associated with the investments. The average risk of your portfolio cannot exceed 5. What is the profit maximizing allocation of resources? What are the expected profits? The average risk is computed as follows:Av=rixi/xi where: xi is…Use python please You are the manager of a £100 million portfolio, and you have 6 investment options: - First Mortgages: return 9% and risk score 3- Second Mortgages: return 12% and risk score 6- Personal Loans: return 15% and risk score 8- Commercial Loans: return 8% and risk score 2- Government Securities: return 6% and risk score 1- Saving Account: return 3% and risk score 0 The current regulation requires that the amount allocated in second mortgages and personal loans (combined) should not exceed the amount allocated in first mortages. Given this information: a) Ignoring the risk involved in the different investment options, what is the profit maximizing allocation of resources? What are the expected profits? b) Now, you have to consider the risk associated with the investments. The average risk of your portfolio cannot exceed 5. What is the profit maximizing allocation of resources? What are the expected profits?You have been asked to store the IDs and scores of competitors in three rounds of a game and find out total score of each and print the ID of winner who is having maximum score. Following is the data: Using eclipse ID Score 1 Score 2 Score 3 123 23 12 24 234 34 10 32 345 12 34 21 456 10 23 21 567 10 19 23
- Implement the ff. decision table using a nested if statement. Assumethat the grade point average is within the range 0.0 through 4.0 GRADE POINT AVERAGE TRANSCRIPT MESSAGE 0.0 – 0.99 Failed semester – registration suspended1.0 – 1.99 On probation for next semester2.0 – 2.99 ( no message )3.0 – 3.49 Dean’s list for semester3.5 – 4.00 Highest honors for semesterWrite the inverse of the statement: If I get paid today, then I will go shoppingYou have been asked to store the IDs and scores of competitors in three rounds of a game and find out total score of each and print the ID of winner who is having maximum score. Following is the data: ID Score 1 Score 2 Score 3 123 23 12 24 234 34 10 32 345 12 34 21 456 10 23 21 567 10 19 23