1. Case 2. Assume i = 5 and How Much = 0 IF i < 5 THEN How Much = How Much +1 ELSEIF i = 5 THEN How Much = How Much - 5 ELSE How Much = How Much +3 END IF DISPLAY How Much Answer
Q: 7. Ifx= AB01, y = C1DAD evaluate: 1. x AND y 2. х оr у 3. х хоr у
A: x= AB01 y=C1DAD Let us write them in binary AB01= 00001010101100000001 C1DAD=…
Q: 1000 people (350 less than or equal to 20 years old, and 650 greater than 20 years old) were asked,…
A:
Q: Consider the following &-NFA M=({q1, q2, q3}), {a, b}, ō,q1, {q2}), where õ is: ō (q1, ɛ) = {q2} Ō…
A: Introductions : Given ,A epsilon-NFAWe have to find the entries for (q1,a) and (q3,b) in the…
Q: The INVERSE of the statement: If a >2 , then a2>4.
A: Here in this question we have given a statement and we have asked to find the inverse of the…
Q: 3. Provide an example of how to achieve encapsulation in Java. 4. Is it possible to declare abstract…
A: 3) Encapsulation is the process of keeping the data and code together inorder to provide security.…
Q: A software company sells a package that retails for $100. Quantity discounts are given according to…
A: ANSWER:-
Q: 1. Case 3. Assume i = 6 and How Much = 0 IF i < 5 THEN How Much = How Much +1 ELSEIF i = 5 THEN How…
A: The given question presents a scenario where i = 6 and HowMuch = 0. The subsequent code snippet…
Q: Note that, you are required to write only on segment given below. .DATA A DD 8F6E4937H DD ? DD ? D…
A:
Q: Assume x = 4, which of the following is true? O (x == 4) x != 5 %3! O Ox == 5 O x != 4
A: Given:-
Q: Write a program that asks the user to enter the material they wish to purchase (wood, brick, or…
A: def wood(n): costSingle = 0 shippingCharge = 0 if(n>=1 and n<100): costSingle…
Q: 1. Case 1. Assume i = 1 and How Much = 0 IF i < 5 THEN How Much = How Much + 1 ELSEIF i = 5 THEN How…
A: Here's the logic of the code:IF i < 5 THEN: This condition checks if the value of i is less than…
Q: GreenLawn a local lawn care company has different pricing policies for its customers. GreenLawn…
A: GreenLawn, a local lawn care company, has different pricing policies for its customers. The company…
Q: In column J, you want to display Early Admission, Early Rejection, Admit, or Reject, respectively,…
A: Actually, given question regarding Excel.
Q: Based on the description given below, draw a complete flowchart for a program develop for Cyberia…
A: Solution:-- 1)The given question has required for the solution to be provided as the flow chart…
Q: How do I use a nested if statement to calculate an employee’s productivity bonus and print the…
A: Declare the necessary variables: employeeFirstName, employeeLastName, numTransactions, numShifts,…
Q: 1. Count the number of Products where Price is less than 500. 3. 2. If the Total Amount is above…
A: Note: As per our guidelines, we are supposed to answer only one question. Kindly repost other…
Q: From worksheet Laptop, in cell I5, find the category if : 600 < Price <=1030 then Category is…
A: Answer is below:
Q: if (A >= 0 & A = 5) == true Yes
A: The answer is
Q: There are three tickets for a concert. The VIP tickets cost $120, premium tickets cost $80, and…
A: The grades are written along with the question.
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: NW Q3) IP addressing operates at the network layer (Layer 3) of OSI, IP addresses must be able to…
A: The Answer is in Below Step
Q: rovided below is an if statement. Which of the following select case statements can be used to…
A: The select case statements can be used to replace the if statement is represented in Step 2.
Q: Q2/ Compute the uncertainty values for the following rules:
A: To compute: If you have flu and vulnerable age then see doctor. If you have strep throat then see…
Q: Q7:The electricity accounts of residents in a very small town are calculated as follows: > if 500…
A: % Script that calculates the electricity bill % Input vectoripVec = [200, 500, 700, 1000, 1500]; %…
Q: =an I/O bound process.
A: In the above question , a histogram of cpu burst time is mentioned
Q: The condition to press the buttons in front of two competitors after reading the question in a quiz.…
A: Arduino IDE software can be used to make this competition. Arduino is an open-source electronics…
Q: Register assignments: a= $10, b=$1 Show two 1-way ifs. if (a < b + 3) b = b + a
A: Here are two examples of 1-way if statements that use the given condition and assignment:
Q: Answer the following question by True or False: 1 > 2 OR 1 == 2 - Answer the following question by…
A: Introduction : If either or both operands are true, the logical OR operator (||) produces the…
Q: a = 10; b = ++a; a = 11; b = 11; a = 10; b = 11; a = 10; b = 10; a = 11; b = 10;…
A: Increment Operator: These are used to increase the value by one. This type of operator is…
Q: Select the if statement that assigns .2 to commissionRate if the monthlySales is greater than 10000.…
A: Answer: if monthlySales > 10000: commissionrate = .2
Q: If p 0, determine whether the statement is true always, sometimes, or never. Describe how you know.…
A: Given that, p<0, that means 'p' is a negative number. q>0, that means 'q' is a positive…
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
![1. Case 2. Assume i = 5 and How Much = 0
IF i < 5 THEN
How Much = How Much + 1
ELSEIF i = 5 THEN
How Much = How Much - 5
ELSE
How Much = How Much + 3
END IF
DISPLAY How Much
Answer](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff5468827-6e1c-400d-bb68-9da85e35a3db%2Fa77fa157-c136-492f-9c22-c3cb65e6fac5%2Fnavi7hd_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- 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.You own a fruit shop. You buy fruit from suppliers by weight (cost per kg), and then you sell it either loose or pre-packaged for a fixed price. For example, a typical sale could be: 1. Apples Pink Lady 1.360kg x $3.50/kg = $4.76 2. Pears Golden 3.400kg x $1.75/kg = $5.95 3. Apples Green Smith 2.180kg x $2.50/kg = $5.45 4. Breakfast package 2x $5/pk = $10 5. Mandarins package 1x $3/pk = $3 -- Total $29.16 Where "Breakfast package" might consist of: a. Bananas Cavandish 500g b. Apples Green Smith 500g c. Mandarin Imperial 500g And "Mandarins package" is: a. Mandarins Imperial 600g b. Mandarins Queens 400g Question ----------- How can I create a relational database schema to record stock and sales? MYSQLA Super Happy Fun Ball is dropped from a height of 9 feet and rebounds of the distance from which it fell. How many times will it bounce before its rebound is less than 1 foot? It will bounce times before its rebound is less than 1 foot. How far will the ball travel before it comes to rest on the ground? It will travel feet before it comes to rest on the ground. US esc DII #3 2$ 4. 9. W e t u %1 a d f h k
- ABC is a retail store selling products for day-to-day use. Consider that a customer is buying any three types of products from ABC store, where each product has a fixed price on it. After choosing the products, the customer has to go to the cashier and can ask any of the following services: Please note that you have to choose the three products of your choice with some appropriate prices available in the retail store. 1. Make a new purchase: The cashier enters the number of items for each type of product then the program calculates the total price, apply a VAT of 5% and displays the payment amount to the customer 2. Exchange an item: The cashier enters the code of the product to be exchanged and the code of the new product. The program displays the amount to be reimbursed to the customer or to be added by him taken into consideration the VAT percentage. 3. Check the price of one product: The cashier enters the code of the product and the program displays its price. You are requested…Q. Figure below depicts a part of a factory that makes bubble gumballs. The gumballs travel on a conveyor that has three associated sensors s1, S2, and s3. The sensor s, is connected to a scale that weighs each gumball, and if a gumball is not heavy enough to be acceptable then the sensor sets s1 each gumball. If a gumball is too small to be acceptable, then s2 = 1, and if it is too large, then s3 = 1. If a gumball is of an acceptable weight and size, then the sensors give s1 = s2 = S3 = 0. The conveyor pushes the gumballs over a “trap door" that it used to reject the ones that are not properly formed. A gumball should be rejected if it is too large, or both too small and too light. The trap door is opened by setting the logic function f to the value 1. = 1. Sensors s2 and s3 examine the diameter of S2 gumball A. PAL realization. B. FPGA with VHDL code. f = "reject" Electrical Engineering Department/ University of BasrahFergusonball 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.…
- Correct answer will be upvoted else downvoted. Computer science. street is developed as follows: the main line comprises of 1 tile; then, at that point, a1 lines follow; every one of these lines contains 1 tile more noteworthy than the past line; then, at that point, b1 columns follow; every one of these lines contains 1 tile not exactly the past line; then, at that point, a2 columns follow; every one of these lines contains 1 tile more noteworthy than the past line; then, at that point, b2 lines follow; every one of these columns contains 1 tile not exactly the past line; ... then, at that point, a lines follow; every one of these columns contains 1 tile more prominent than the past line; then, at that point, bn columns follow; every one of these lines contains 1 tile not exactly the past line. You start from the main tile in the primary line and need to arrive at the last line (any tile of it). From your present tile, you can move to any tile in the…Whenever you mail a letter, you must decide how much postage to put on the envelope. You like to use this rule of thumb – use a stamp for every five sheets of paper or fraction thereof. For example, if you have 11 sheets of paper, then you use three stamps. Since you’re parsimonious, if an envelope requires more than three stamps, then you simply don’t mail the envelope. Show how the number of stamps per envelope would be calculated. Provide a solution in the form of pseudocode. Your pseudocode must read in appropriate data and print how many stamps to use.In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the numberof points to risk and a second prompt asks the player to choose either high or low. The player rollstwo dice and the outcome is compared to the player’s choice of high or low. If the dice total is between2 and 6 inclusive, then it is considered “low”. A total between 8 and 12 inclusive is “high”. A total of7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, thepoints at risk are doubled and added to the total points. For a wrong call, the player loses the points atrisk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. TheDRPlayer object should have two Die member variables that represent the dice. The Die class shoulduse a random number generator to determine the outcome in a roll() method. Application outputshould look similar to:
- In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the numberof points to risk and a second prompt asks the player to choose either high or low. The player rollstwo dice and the outcome is compared to the player’s choice of high or low. If the dice total is between2 and 6 inclusive, then it is considered “low”. A total between 8 and 12 inclusive is “high”. A total of7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, thepoints at risk are doubled and added to the total points. For a wrong call, the player loses the points atrisk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. TheDRPlayer object should have two Die member variables that represent the dice. The Die class shoulduse a random number generator to determine the outcome in a roll() method. Application outputshould look similar to:Mary Jane would like to invest her money amounting 100,000 at the bank. Before investing her money, she would like to determine which type of account that she will chose. The amount of interest that her money earns depends on which type of account the money is in. The bank has 6 different types of accounts and they earn interest as follows: Account type Interest earned personal financial 1.5% personal homeowner 2.0% personal gold 2.5% small business 3.0% big business 3.5% gold business 4.0% Mary Jane as a programmer would like to make a program that computes automatically the interest earned of her money in each type of account. REQUIREMENTS: 1. Write the corresponding algorithm a. Narrative b. Pseudocode 2. Construct the program and record your screen display result Questions 1. What are the data needed for the solution of the program to produce the desired…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?
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)