Draw a DFA that describes the behavior of vending machine which accepts Indian rupees and quarters and charges 1.25 INR per soda. Once the machine receives at least 1.25 INR, corresponding to it will allow the user to select a soda. The machine will not dispense a soda until at least 1.25 INR has been deposited, and it will not accept more money once it has already received greater than or equal to 1.25 INR
Q: describe such a circumstance.
A: If you walk 20 foot in one sec then 1 foot =0.000305 km then, 5km =16404.2 foot if 20 foot takes 1…
Q: At a small cinema, there are tickets, movies and patrons. The cinema keeps track of the patron's…
A:
Q: A Locker can be opened by A and B when they are both there, as the locker has two keys, one of which…
A: Below is the answer to above question. I hope this will helpful for you....
Q: Q2/ Suppose two identical and perfectly balanced coins are tossed once. • Find the conditional…
A: Here, we are given 2 identical and perfectly balanced coins and they are tossed once. So all…
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A: Solution,
Q: A book salesperson living in New York needs to visit clients in Utah, Jersey, LA, and Milan within a…
A: Given Data : The distance of each city from the other cities. To find : The distance traveled…
Q: Q1: Choose the right answer of the following: 1. To control a traffic system using a loop. The main…
A: The answer is: D: 0461H, 0451H, 080CH
Q: Consider the following Bayesian Network that we induced in class. At places, a variable is referred…
A: Explanation:- We have here:P( HD | D, E) = 0.25 P(BP , D, E, HD ) = 0.7*0.25*0.25*0.85 =…
Q: Consider the tollowing scenario: A high school has 1000 students and 1000 lockers, one locker for…
A: Given, Locker puzzle program
Q: A guy has two girlfriends: one in the East and another in the West. He works near 5 Points Marta…
A: SUMMARY: - hence we discussed all the points.
Q: Write a form algorithm for the following problem with Condition 1 using Round Model, where a round…
A: Given Write a form algorithm for the following problem with Condition 1 using Round Model, where a…
Q: You are to simulate the motion of a really tired student. The student is standing on one side of a…
A: Since you have posted questions with multiple sub-parts, we will solve the first three for you. To…
Q: extends
A: It can be done by the Scenario management of Operation analytics that requires a deep analysis…
Q: In a school, a woman acts as a teacher; in a house, she acts as a mother or daughter; and in a…
A: Object-oriented programming – As the name suggests uses obejcts in programming. Object-oriented…
Q: Given the following data, find the entropy of student status variable, Student count status Grad 50…
A:
Q: The bean machine, also known as a quincunx or the Galton box, is a device for statistics experiments…
A: Java Program: import java.util.Scanner;public class Bean_game { public static void…
Q: What type is inferred for a, ß, and for the variable xs? let xyz (a : a) : B %3D let rec abc a match…
A: Answer: I have given answered in the brief explanation
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A:
Q: Describe how these statements diffffer, in terms of who receives a balloon and under what
A: For statement 01, domain x and domain g is applied to both A(x, g) and B(x) For all students x,…
Q: (B) An ATM allows a customer to withdraw a maximum of Rs. 500 per day. If a customer withdraws more…
A: #include<iostream> using namespace std; int main() { double balance,amount; bool…
Q: An example of a 0,1 integer model is deciding what all to put into my vehicle(rather than with the…
A: Integer programming is a branch of mathematical programming or optimization, which involves creating…
Q: Imagine a couple that agreed to meet this evening, but cannot recall if they will be attending the…
A: This is game theory problem: If they cannot communicate, where should they go then followiing…
Q: For each of the following pairs of events, A and B, determine whether A and B are dependent or not.…
A: The solution to the given question is:
Q: In a normally distributed variable, a value x∗ is considered unusually large if (A) P (x ≤ x∗)…
A: your question is about a value x∗ is considered unusually large if let's see the solution of the…
Q: If the time taken by the worker is input through the keyboard, find the efficiency of the worker.
A: # include <iostream.h> void main() { str[] efficiency ; int hours; cout>>"Enter number…
Q: a) Metro bus travel from Rawalpindi to Islamabad every day. The metro buses pass through Chamman…
A: Here Data given,table of x and P(x)and n=50.But new token function is = 2x-1 X=(2x-1) X [2(4)-1]7…
Q: Pehalty kickS Ih Soccer. Let's consider a situation where a football player has to faceoff the…
A: Solution ::
Q: An electricity distribution company wants to calculate the electricity fee to be paid by the…
A: As no programming language is mentioned it is solved using basic C++
Q: For a new patient, ID 9999, with Temp=H, BP=H, Test1=N, Test2=P, is he/she Healthy (H) or Diseased…
A: The question falls under Data mining. Naive Bayes Classifier: Naive Bayes classifiers are a…
Q: It has been observed by management that some faculty member at the university demonstrates a…
A: Code: import java.util.*; public class Faculty { //below are the functions with…
Q: Consider a system with input x(t) and output y(t) . The relationship between input and output is…
A: given: input x(t) output y(t) y(t) = x(t)x(t − 2) Find: a. Is the system causal or non-causal?…
Q: It has been observed by management that some faculty member at the university demonstratesa…
A: CODE:- #include<iostream>using namespace std;class Teacher_salary{ public:…
Q: Suppose that the number of years that a used car will run before a major breakdown is exponentially…
A: Exponential distribution describes wait time between any two Poisson occurrences. If T is the time…
Q: M= M= Low High 0.5 0.5 E = E= Good Bad Mileage Mileage Engine AC = AC = Working Broken Air…
A: Bayesian network is the essential computer technology for dealing with the probabilistic events and…
Q: Example 7: An internet company provides TV and Internet services in a certain city, 60% of all…
A: your question is about finding the probability of the services that the company provides. let's see…
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A: The answer is given below..
Q: on places $5000 in an account that accrues interest compounded continuously. Assuming no additional…
A: The compound interest is calculated as: A=P(1+r/100)n where A is the final amount P is the principal…
Q: It has been observed by management that some faculty member at the university demonstrates a…
A: Coded using Java.
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A: Answer
Q: An arcade machine accepts $0.50 and $0.75 tokens. Once the machine accepts at least $1.00, it stops…
A: DFA refers to deterministic finite automata. DFA machine reads an input string one symbol at a time.
Q: Two small charged objects attract each other with a force F when separated by a distance d.If the…
A: Here is the explanation.
Q: In a company, worker efficiency is determined on the basis of the time required for a worker to…
A: 1) Below is C Program to find worker efficiency on basis of time required for worker to complete a…
Q: Question 3. A random variable X is distributed according to the following table 1 2 3 4 5 Pr(X = x)…
A: Refer to step 2 for the answer.
Q: In planet Z, there have been two new discoveries of Condition A and Condition B in plants. You have…
A: W: Low Temperature. (W=1 if the temperature is Low, W=0 otherwise) X: Oxygen Level (X=1 if oxygen…
Draw a DFA that describes the behavior of vending machine which accepts Indian rupees and quarters and charges 1.25 INR per soda. Once the machine receives at least 1.25 INR, corresponding to it will allow the user to select a soda. The machine will not dispense a soda until at least 1.25 INR has been deposited, and it will not accept more money once it has already received greater than or equal to 1.25 INR
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- 3. A technician takes X hours to visit the stores in a couple of streets in one shift, and when he finishes his tour, another technician revisits the same stores again, needing other X hours to finish the second shift, and so on. For example, if the first technician started his shift at 1:00pm, he finishes it at 7:00pm and the second technician starts his shift at 7:00pm and finishes it at 1:00am, and so on. The supervisors used to make a quick meeting with all technicians twice a day at 1:00 am and 1:00 pm, so they need to finish their tours exactly 1:00. Identify the mathematical notation for the number of shifts should be made by the technicians in order to achieve this, write the name of this mathematical value, and find it for two tours, one with X=7 and another with X = 11 .Three prisoners have been sentenced to long terms in prison, but due to over crowed conditions, one prisoner must be released. The warden devises a scheme to determine which prisoner is to be released. He tells the prisoners that he will blindfold them and then paint a red dot or blue dot on each forehead. After he paints the dots, he will remove the blindfolds, and a prisoner should raise his hand if he sees at least one red dot on the other two prisoners. The first prisoner to identify the color of the dot on his own forehead will be release. Of course, the prisoners agree to this. (What do they have to lose?) The warden blindfolds the prisoners, as promised, and then paints a red dot on the foreheads of all three prisoners. He removes the blindfolds and, since each prisoner sees a red dot (in fact two red dots), each prisoner raises his hand. Some time passes when one of the prisoners exclaims, "I know what color my dot is! It's red!" This prisoner is then released. Your problem…A person places $5000 in an account that accrues interest compounded continuously. Assuming no additional deposits or withdrawals, how much will be in the account after seven years if the interest rate is a constant 8.5 percent for the first four years and a constant 9.25 percent for the last three years?
- Computer Science Investing in stocks is a way to create assets that are supposed to provide financial security over time. In solving this problem, we assume that an investor buys several shares of stock at a certain price. These shares are going to be sold later on for a different price. Obviously, if the selling price is higher than the acquisition price, the investor makes a profit, registering capital gain. If the shares are sold at a lower price, the investor has a loss, which marks a negative capital gain. This whole process is done over a period of time, and you are required to create a scenario for buying and selling shares. The assumption is that the investor sells shares in the order in which they were purchased. The goal is to calculate the capital gain over time. Suppose that you buy n shares of stock or mutual fund for d dollars each. Later, you sell some of these shares. If the sale price exceeds the purchase price, you have made a profit—a capital gain. On the other…Suppose a business person launches new cinema at Islamabad and ask his team to develop a ticket system for box office. He assigns some requirements about system that how should it work. The requirements are such a way that there are only '5' number of box office windows in the theatre. Each window can have at max '20' number of people waiting in line. To start with, only one window is opened. If the number of people waiting in line in that window exceeds 20, then the next window is opened and people can join the line in that window. Likewise, if both the first and second windows have n number of people waiting in each queue, then a third window is opened. This can go on until the maximum number of windows w is reached. Let us assume that once a window is opened it never closes. A new window is only opened if all open windows are full. Each person can buy only one ticket. So, the system should not allot more than one ticket per person. Let us assume that the system issues one ticket…thermostat, which will turn the heat on when the room temperature drops h degrees below its set point, Ts, and cuts heat off at a temperature h degrees higher than Ts . The system heats at a constant rate Q (thermal units per time unit), and the volume of the room is V, so, if the room were perfectly insulated, the heating system would raise the temperature of the room at the rate KVQ (degrees per time unit), where K is a constant of proportionality giving the change in temperature per thermal unit per unit volume. However, there is a heat loss to the outside that is proportional to the difference in temperature between the room and the outside. Using the modified Euler method, write a FORTRAN program to simulate this system, if the room temperature at time is T(t), T(0) = To, and the outside temperature, Tout' is given by: Case (1) : Tout is constant < Ts Case (2) : Tout = A sin(wt + 4)| , %3D reflecting daily cycles. A is temperature range, 2n/w is the period of a cycle, and o is the…
- 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 BasrahThe fuel economy of a car is the distance which it can travel on one litre of fuel. The base fuel economy (i.e., its fuel economy when there is only one person - the driver - in the car) of a certain car is MM kilometres per litre. It was also observed that every extra passenger in the car decreases the fuel economy by 11 kilometre per litre. PP people want to take this car for a journey. They know that the car currently has VV litres of fuel in its tank. What is the maximum distance this car can travel under the given conditions, assuming that all PP people always stay in the car and no refuelling can be done? Note that among the PP people is also a driver, i.e., there are exactly PP people in the car. Solve in any programming languageIt has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…
- In a company, worker efficiency is determined on the basis of the time required for a worker to complete a particular job. If the time taken by the worker is between 2 – 3 hours, then the worker is said to be highly efficient. If the time required by the worker is between 3 – 4 hours, then the worker is ordered to improve speed. If the time taken is between 4 – 5 hours, the worker is given training to improve his speed, and if the time taken by the worker is more than 5 hours, then the worker has to leave the company. If the time taken by the worker is input through the keyboard, find the efficiency of the worker.It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…In a prison, there is a door b/w any pair of adjacent cells and one exit guarded by a guard G. One prisoner is a maniac M which kills anybody he can see when he enters a cell. If M returns to the cell with his victim, then he loses consciousness and stops. In the evening all inmates and the guard went to sleep in their cells. In the morning, maniac M is gone and all other prisoners with the guard were found dead in their cells. Show the route of the maniac.