Ahmed wants to Furnishes his office. He has 160.550 OMR. He wants the following products: Desk with 52.30 OMR Chair with 22.200 OMR File Cabinet with 45.90 OMR Paper Shredder with 20.25 OMR Printer with 18.98 OMR Write an algorithm and draw a flowchart to check whether he can buy all the above items. Display the total, and the remaining amount in OMR that Ahmed will have if any.
Q: HAVE YOU EVER HEARD OF 'CROSSING THE BRIDGE NOODLE'? LET ME TELL YOU - IT WAS A VERY DIFFERENT KIND…
A: Algorithm: There are multiple test cases. Each case starts with an integer N , the number of Po's…
Q: Given i and j, two variables of type double. Which of the following statements declares a double…
A: Correct Answer: (a) if(i>0 && j>0) double…
Q: The price of 2 liters of milk was R14.99 in 2014. Using a rate of inflation of 6.3% per year,…
A: Option d is incorrect since the price is initialized to a constant. This means that the algorithm…
Q: If they choose to show the report, for each sales person display the following: • amount sold • name…
A: ANSWER:
Q: Suppose, you have $10 to buy food for a day. You have several options, but you need to maximize…
A:
Q: Suppose that x and y are strings. Which of one the following expressions would be equivalent to…
A: ANSWER: None Of These Options.
Q: Welcome to a game of Big, Bigger, and Biggest! The game where we give you three big numbers and…
A: Below program shows the greatest number between 3 numbers. Here we used if-else-if statement. C++…
Q: A rectangular piece of cardboard, 40 inches 40 in. long by 22 inches wide, is used for making a…
A: Solution:: a) Polynomial expression for the Volume v in terms of x…
Q: Selling snake oil is a lucrative business. In a radical move, Company S now sells snake oil at 18…
A: Use an if conditional statement to check the volume and update respective discounts and shipping…
Q: In a candy store, there are N different types of candies available and the prices of all the N…
A: Code is given below as :
Q: java Which of the following options can pose a risk when using the division operator? Select one…
A: Division operator poses certain risks associated with it when used in code development.
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: Write a program that will accept the following inputs from the user: Company ID,…
A: //Note:since programming language is not given, we are providing answer in…
Q: On the way to the market, you exchange your cow for some magic dark chocolate espresso beans. These…
A: Solution of following question : If we have a number of beans ending in a 5 and double it, we will…
Q: While travelling in a train, you observe some college students pulling the alarm chain simply to get…
A: In this case, a nested if-else statement will be used. Approach: 1. Take the first input i.e total…
Q: City of Byte land can be described as a 2D grid of cells. Each cell máy or may not contain a demon.…
A: for i in range(int(input())):#inputting number of test cases l=[]#defining the list…
Q: QI\A) A paint company is trying to recycle unpopular paint colours by mixing them together to create…
A: MATLAB CODE IN BELOW IMAGES
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: Did you know that a beautiful gold triangle was introduced to India in the early 13th century? Well,…
A: Input-Output Details: First line contains an integer T ( number of test cases, around 20 ). Each…
Q: Create a spreadsheet with the "if" function that solves the following: If F(t) = 40.0 then the text…
A: The given problem is to be solved in Excel formula format where the constant value and function…
Q: Given a string, return how many Wi-Fi hotspots I'm able to connect to. The phone is represented as a…
A: Algorithm - Take input from user Use that input into the method argument. use the below logic…
Q: The vase shown below can be described as a cylinder with a varying radius. Using a y-coordinate…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: 10. Translate the following pseudo code about how to structure your code). While guessX does not…
A: Answer: Given pseudo code and we need to write java program from the given pseudo code
Q: Make a Craps game with the following guidelines: import random money = 100 Ask user if they want…
A: Please Indent the code as shown in the screenshot :
Q: The value of R after executing the following program, where M-15, L-8 is: Private Sub Commandi_Click…
A: given the program and values- M=15, L=8
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: If you are given a date, return how many days the date is missing in 2021 (end date not included).…
A: Providing the solution to the above problem in javascriptCodefunction daysUntil2021(date) { const…
Q: Characterize these variables:o m = 0o b = 0o L = 0.001 (this is the learning rate; it assists the…
A: We will be using python program to solve this question.
Q: ASAP Solution needed / Solution You're given a string of words. You need to find the word "Nemo",…
A: SOLUTION:
Q: You flip six fair coins. Let A be the event that exactly three of the six coins land on Heads. If…
A: Total Possibility of flipping six fair coins = 26= 64 What we need(Desired Event Required) = 3 coins…
Q: The following code segment moves the robot around the grid. Assume that n is a positive integer.…
A: The Answer is
Q: Taxes: Let's figure out our 2020 taxes right 2020 (source: https://taxfoundatan org/202 a code that…
A: First, we need to read and Material status and then use the given table to calculate the tax due.
Q: Did you know that a beautiful gold triangle was introduced to India in the early 13th century? Well,…
A: Input-Output Details: First line contains an integer T ( number of test cases, around 20 ). Each…
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: Eneros Inc. is buying a new machine for $450,000. The life of the machine is 10 years, and a bank is…
A: Loan taken amount 450,000.00 period for which loan is taken 10 years…
Q: suppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display…
A: Summary: In this question, we have been given the yearly payment of a person and his payment doubles…
Q: (This is how the output should come and please answer it as soon as possible) Output:…
A: The python code is
Q: We want to buy the car depending on its cost for 10 years. Here is the algorithm for deciding which…
A: Timespan = 10 yearsPrice of gas = 4000 per litre of gas = priceUsage = 15000 km per year = annual…
Q: You have become the master of making peach cobbler. The recipe you follow is simple: 22 ounces of…
A: import java.util.Scanner; public class MasterChef { public static void main(String[] args) {…
Q: (10 points) Suppose you have just finished approximating f(x) = x5 for 0 ≤ x ≤a and ended up with…
A:
Q: Suppose an ATM has two sections of 1000 and 500 rupees note. There are 20 notes of 500 and 10 notes…
A: total_1000notes=10 total_500notes=20x=Truewhile (x==True): amount=int(input()) if…
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: Assume that the total number of students in the university is 2000. Also, assume that the number of…
A: To determine the number of students not taking calculus and not taking physics n(A' ∩ B')). Given,…
Q: One of the following is not true O a. When a parent forks a child, parent might give the child part…
A: The answer is given below.
Q: The following are formulas for calculating the training heart rate (THR): THR=(MHR-RHR) × INTEN +…
A: age=input('Enter Age : ');gender=input('Enter Gender (M/F) : ');if gender== 'M' g="male";…
Q: You roll five six-sided dice. Write a script in R to calculate the probability of getting between 15…
A: While doing programming in any programming language, you need to use various variables to store…
Step by step
Solved in 2 steps with 1 images
- (This is how the output should come and please answer it as soon as possible) Output: 1.==================================== Hogwart's Dragons is a Quidditch team. Number of players in Hogwart's Dragons is 2 The Players are: Seeker: Player name: Harry Potter, House: Gryffindor Chaser: Player name: Katie Bell, House: Gryffindor 2.==================================== We do not have enough players to form a squad. 3.==================================== 4.==================================== Hogwart's Dragons is a Quidditch team. Number of players in Hogwart's Dragons is 4 The Players are: Seeker: Player name: Harry Potter, House: Gryffindor Chaser: Player name: Katie Bell, House: Gryffindor Beater: Player name: Vincent Crabbe, House: Slytherin Keeper: Player name: Miles Bletchley, House: Slytherin 5.==================================== We do not have enough players to form a squad. 6.==================================== We have enough players to form a squad. But we cannot form a perfect…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 =…
- Sally is shopping at her favorite department store, which is having a sale on sweaters. The colored dot on the sweater’s price tag indicates whether the sweater is 10% off (red dot), 25% off (yellow dot), or 50% off (blue dot). Only the original price appears on the price tag. Your task is to direct Sally on how to calculate a sweater’s sale price. Does the solution to this problem require a decision? If so, what decision needs to be made?public setUpTrip(double, double): void Car's state is set to hold the speed of travel and distance to travel at that speed Precondition: none Postcondition: Car's state holds information on distance to travel and speed to travel Parameters: Average Speed to be driven, Distance to drive Develop and use an algorithm that calculates the amount of fuel used and the actual distance driven in the drive() method. The algorithm must use a formula that gives proportionately poorer mileage when the Car is driven faster or slower than its optimal speed. When a new Car object is instantiated, it is initialized with an optimal speed variable. Your fuel usage algorithm should set limits on how poor of MPG your car will get. You may add other methods and fields as needed. When a new Car object is created, the car’s odometer is set to a random number between 0.0 and 5.99, the car’s trip odometer is set to 0.0, its best fuel economy (MPG) is set to a random number between 15.0 and 54.99, its…please help me to solve this filling blank question? paython 10. x=2.4, a=7.5,y=8. The expression x+a%3*(int)(x+y)%2//4 is _______________.
- 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.Mutiple Answers Which of the following matches regexp /(very )+(fat )?(tall|ugly) man/a) very fat manb) fat tall manc) very very fat ugly mand) very very very tall man Please Answer With Detailed Explanation!Here is the code i have written so far, please finish it #include <stdio.h>#include <cstack.c> int i=-1;int nextstate=0;cstack top; init_cstack(&top);while(1) switch{ case 0: i++; if (is_open(my_input[i])) nextstate= 1; else if (is_close(my_input[i])) nextstate= 2; else if (my_input[i] == '\0') nextstate= 3; else nextstate= 4; break; case 1: if(!is_cfull()){ cpush(&top, my_input[i]); nextstate= 0; } else{ printf("Error! Stack is full\n"); exit(0); } break; case 2: if (!is_cempty(top)){ if(is_brother(cpop(&top), my_input[i])){ nextstate= 0; } else{ printf("Error! Delimiter do not match\n"); return FALSE; } } else{ printf("No open delimiter to compare to\n"); return FALSE; } break; case 3: if…
- The number of permutations of a set of n items taken r at a time is given by the following formulan!/r!(n−r)!: where n! is the factorial of n, r! is the factorial of r, and (n-r)! is the factorial of the result of n-r. The factorial of a number n can be solved using the following formula: n !=e−n nn √ 2 πn. If there are 18 people in your class and you want to divide the class into programming teams of 3 members, you can compute the number of different teams that can be arranged using this formula (n!/r!(n−r)!). When writing a C++ program that determines the number of potential team arrangements. You will need to use the double type for this computation.For what values of x is the following if statement true? int y = 10; int x; if (( x / y == 1) && ( x % 2 == 1 )){ doSomething(); }Find the Other Two Side Lengths in Java Given the shortest side of a 30° by 60° by 90° triangle, find out the other two sides. Return the longest side and medium-length side in that order. Examples otherSides(1) ➞ [2.0, 1.73] otherSides(12) ➞ [24.0, 20.0] otherSides(2) ➞ [4.0, 3.46] otherSides(3) ➞ [6.0, 5.2] Notes 30° by 60° by 90° triangles always follow this rule: let's say the shortest side length is x units, the hypotenuse would be 2x units and the other side would be x * square root of 3. The results in the Tests are rounded up to 2 decimal places. Return the result as an array.