c. {w| w has an even number of a's and one or two b's} Ad. {w| w has an even number of a's and each a is followed by at least one b} e. {w w starts with an a and has at most one b} please state diagram with union and intersection for each problem. Thank you
Q: -ts) Using Matlab commands, write a program to draw a red triangle with its corners' coordinates…
A: Introduction: For creating the triangle we need to have the coordinate of a,b,c point where we can…
Q: 3. Plot the function f(x) = x3 + 3x - 7 for 100 values of x between -10 and 10. Draw the function as…
A: MATLAB Source Code: f1 = @(x) x^3 + 3*x - 7;f2 = @(x) x^2 + 7*x + 8;figurehold onfplot(f1,[-10…
Q: IE 218 - LAB 1 1) Write C# code to calculate the average of three grades of a course. Program will…
A: I give the code in C# as per your requirement along with output and code screenshot
Q: 7. a) Design and draw your own pictoral iteration (like a simple fractal) and repeat the process for…
A: Here we went to design a pictorial iteration of our own choice and we must perform the four…
Q: x^4+2(x^3)-7(x^2)+3 a) One of the root of the equation lies in the range (1.0, 2.0). Find this root…
A: To obtain the answer to the problem with the continuous function, carry out the steps as follows:…
Q: 1. Draw a flow chart to print the positive numbers that entered by the user and terminate if a…
A: 1) 2) 3)
Q: b = a*a; a*a*a; d = |(a); fprintf('%4u square equals %4u \r', a, b) fprintf('%4u cube equals %4u…
A: a = 10;b = a*a;c = a*a*a;d = sqrt(a); fprintf('%4u square equals %4u \r', a, b);fprintf('%4u cube…
Q: 1. Submit the individual codings for the following with Output a. Error detection using Checksum…
A: . Submit the individual codings for the following with Output a. Error detection using Checksum and…
Q: Assuming a 2-dimensional array in a 50 x 50, write a C++ program segment to add all of the elements…
A: Solution: Given, Assuming a 2-dimensional array in a 50 x 50, write a C++ program segment to add…
Q: 3. Write an Algorithm and draw a flow chart based on the following, Calculate the area of circle and…
A: Area of circle algorithm
Q: create a c++ program: Given TWO SIDES and an OPPOSITE ANGLE, find the missing side and two missing…
A: Sine rule In order to find the missing sides of a triangle, we can apply sine rule.…
Q: x4 + 2x3 – 7x2 + 3 = 0 a) One of the root of the equation lies in the range (1.0, 2.0). Find this…
A: Program Approach:- Importing necessary libraries. Equation to find root. The root lies between…
Q: 2) Perform the following function in a simple program steps a) DX = AX. BX CX b) Store the status…
A: Given: DX=AX.BX⊕CX Store the status flags into the M. L=3000H
Q: Software engineering Plz don't use any website Read the code carefully and perform the following…
A: 1. The control flow graph is
Q: The most common and simple definition of time is called a. Wall-clock time b. Response time c.…
A: Simple definition of time:
Q: x^4+2(x^3)-7(x^2)+3=0 a) One of the root of the equation lies in the range (1.0, 2.0). Find this…
A: Bisection Method AlgorithmBelow are the procedure to access the solution for the constant function:…
Q: Reads the length and width of the rectangle. Compute and display the area and perimeter of the…
A: As per our company guidelines, we are not supposed to answer more than 3 subparts of a post and…
Q: Question 2: Suppose you are standing in the origin (0,0) position. You'll be given a string as input…
A: Required: python
Q: Use C++ to program a baseball game.
A: Baseball code that contains the strikes of the players and count the strikes. Print the strike…
Q: Find the Laplace transform of the function t*e-2tcos(3t) using MATLAB and print it in the command…
A: Write a MATLAB program to find the Laplace transform of the function t*e-2tcos(3t) and print it in…
Q: PROBLEM 20 – 0491: Design a FORTRAN program segment to do the following: a) Find the sum of vectors…
A: First remember that the sum of two vectors is obtained by A + B = (A1 + B1 , A2 + B2,….,AN + BN),…
Q: 3. Identify the input and output variables in each of the following. Then determine whether the…
A: Given : Set of four sentences where each sentence has valid input and valid output. Task : Find…
Q: If a certain drug requires 50 milligrams to be administered in order for it to be effective for an…
A: X = categorical({'John','Micheal','Bob','Ali','Sanjeb','Jordan','Karim','Ryan','Jack'}); X =…
Q: Exercises: 1. Copy and Run the code. 2. Solve the system of equation and grapg the system in…
A: ANSWER:-
Q: 14. In the triangle shown a = 21 cm, b = 45 cm, and c = 60 cm. Define a, b, and c as variables, and…
A:
Q: A chemical plant releases an amount A of pollutant into a stream. The maximum concentration C of the…
A: Use a vector to store the concentrations corresponding to distance The, find the concentration and…
Q: 2: In the triangle shown a 5. 3in., y= 42°, and b = 6in. Define a, y, and b as variables, and then:…
A:
Q: : In the triangle shown a = 5. 3in., y= 42°, and b= 6in. Define a, Y, and b as variables, and then:…
A: Solution:-
Q: Identify and correct the errors in each of the following sets of code: i. while (c - 0 ) sum +- z;
A: 1) In 1st set of code, the close curly bracket is not there. There is open curly bracket but not…
Q: Choose any two examples of arithmetic operators used in C++ a. &&,|| b. +,- c. None d.
A: ANSWER IS b addition subtraction
Q: Exercises: 1. Copy and Run the code. 2. Solve the system of equation and grapg the system in…
A: Here is the detailed explanation of the program
Q: A. You haven't to do that, you know B. You didn't have to do that, you know C. You didn't must do…
A: B. option is correct. You didn't have to do that, you know. This sentence shows "Simple Past Tense."…
Q: Use C++ to program a 9-inning baseball game.
A: About Baseball game In the bat-and-ball game of baseball, two teams of nine players each alternate…
Q: B3. Answer the 4 Draw the circuit of the following equation. F=A•C+(BOC) b. Write the equation…
A: Here in this multi part question.in the first one we have given a boolean expression and we have…
Q: f(A,B,C,D) = II M (0,2,6,7,9,12,13) • II D(1,3,5). M
A: f(A,B,C,D) = π M(0,2,6,7,9,12,13) · π(1,3,5) = ∑m(4,8,10,11,14,15) + ∏(1,3,5)
Q: Find the Laplace transform of the function t*e-2tcos(3t) using MATLAB and print it in the command…
A: Code: syms f t f=t*exp(-2*t*cos(3*t)) laplace(f)
Q: (b) Use the Liang Barsky algorithm to clip the lines AB, CD and EF. The coordinates of the viewing…
A: The solution for the above given question is given below:
Q: 01/ Design a Fortran code to illustrate the following: 1- If x=25-5i-7, then the out put y=5i. 2-…
A: 1. complex :: x, y x=(18,-5) y=(0,5) if(x==(18,-5)) then print*, y end if 2. integer…
Q: The (x, y) coordinates of the hand at the top of a robot arm are given by: x = L, cos(8,) + L2…
A: Matlab Code syms x %Part aA = [2^5 2^4 2^3; 5*x*2^4 4*x*2^3 3*x*2^2; 20*x*2^3 12*x*2^2 6*x*2];b =…
Q: Take a four-digit number. Add the first two digits to the last two digits. Now, square the sum.…
A:
Q: You are a nasa engineer who needs to monitor the situation every time a probe uses its thrusters.…
A: According to the information given:- We have to create the python program to monitor the possibility…
Q: In general, the flow of control can be altered in two ways: selective or iterative. Selective…
A: As per our guidelines we are supposed to answer only 1st three parts. Kindly repost the remaining…
Q: You have an equation r = 3*x^2 - 7*x+ 14. Write the MATLAB code to create a symbolic plot of x on…
A: Input : Range of values from -10 to 10. Output : Plot of equation r = 3*x^2 - 7*x + 14 over the…
Q: 2. Write algorithm and draw a flow chart to develop a simple calculator that perform addition,…
A: Answer: I have given answered in the brief explanation
Q: Create a program of number conversion.
A: To convert decimal to binary, divide the number by 2 and save the remainder until it gets divided…
Q: Requirements Answer in .cpp and .hpp Implement all the items in the picture below Example: Pacman,…
A: Like array of other user-defined data types, an array of type class can also be created. The array…
Q: a = 2; b = -2; While[a ≥ 0 && b < 0,a = a -1; b = b + 1]; The final values of a and b are: a) a = -1…
A:
Q: 5. A control engineer, N. Minorsky, designed an innovative ship steering system in the 1930s for the…
A: To do: The given
Q: Computer Science MIPS assembly language program using Procedure to find the grade of a student,…
A: MIPS assembly language simply refers to the assembly language of the MIPS processor. The term MIPS…
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
- 2.) Q = {A, B} S = {a,b,c,d,e,f...z} qi = {A} F = {B} P = state A B a,b,c,d,e,f...y A B 28 B BProblem B. Musical Key ConversionThe chromatic scale is a 12-note scale in music in which all notes are evenly spaced: that is, the ratio of the frequency between any two consecutive notes is constant. The notes are typically labeled in the following sequence: A, A#, B, C, C#, D, D#, E, F, F#, G, G# After G#, the labels loop back and start over with A (one octave higher). To convert between musical keys, you can shift all notes in a piece of music a constant number of steps along the scale above. For example, the sequence of notes E, E, F, G, G, F, E, D, C, C, D, E, E, D, D can be converted to another musical key by shifting everything up three steps: E, E, F, G, G, F, E, D, C, C, D, E, E, D, D G, G, G#, A#, A#, G#, G, F, D#, D#, F, G, G, F, F Notice that G was converted to A#, since going three steps up required us to loop off of the top of the scale back to the bottom: G -> G# -> A -> A#. Technically we should note that this would be A# of the next octave up, but we’ll…Problem B Musical Key ConversionThe chromatic scale is a 12-note scale in music in which all notes are evenly spaced: that is, the ratio of the frequency between any two consecutive notes is constant. The notes are typically labeled in the following sequence: A, A#, B, C, C#, D, D#, E, F, F#, G, G# After G#, the labels loop back and start over with A (one octave higher). To convert between musical keys, you can shift all notes in a piece of music a constant number of steps along the scale above. For example, the sequence of notes E, E, F, G, G, F, E, D, C, C, D, E, E, D, D can be converted to another musical key by shifting everything up three steps: E, E, F, G, G, F, E, D, C, C, D, E, E, D, D G, G, G#, A#, A#, G#, G, F, D#, D#, F, G, G, F, F Notice that G was converted to A#, since going three steps up required us to loop off of the top of the scale back to the bottom: G -> G# -> A -> A#. Technically we should note that this would be A# of the next octave up, but we’ll…
- 5. Simplify the following functions using a K-map: g)F(X,Y,Z)=XY'Z+X'+Z+Y'Z'(Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one used for a balcony (see Figure 5.15), when a load is distributed evenly along the beam is given by this formula: d=wx224EI(x2+6l24lx) d is the deflection at location x (ft). xisthedistancefromthesecuredend( ft).wistheweightplacedattheendofthebeam( lbs/ft).listhebeamlength( ft). Eisthemodulesofelasticity( lbs/f t 2 ).Iisthesecondmomentofinertia( f t 4 ). For the beam shown in Figure 5.15, the second moment of inertia is determined as follows: l=bh312 b is the beam’s base. h is the beam’s height. Using these formulas, write, compile, and run a C++ program that determines and displays a table of the deflection for a cantilevered pine beam at half-foot increments along its length, using the following data: w=200lbs/ftl=3ftE=187.2106lb/ft2b=.2fth=.3ft(Practice) State whether the following are valid function names and if so, whether they’re mnemonic names that convey some idea of the function’s purpose. If they are invalid names, state why. powerdensity m1234 newamp 1234 abcd total tangent absval computed b34a 34ab volts$ a2B3 while minVal sine $sine cosine speed netdistance sum return stack
- Language : C Jojo remembered going to a cave with his best friend Lili before the coronavirus pandemic.There, he saw several Stalactites hanging from the /cave’s ceiling. Stalactite is a type offormation that hangs from the ceiling of caves.Jojo noticed an interesting fact about the stalactites. The stalactite formation in thiscave forms a pattern. He wonders how will the formation look like if the cave is of adifferent size. He has asked your help to visualize this formation. Format Input :A single line with an integer N denoting the size of the cave Format Output :A size N formation of stalactites. Do not print extra spaces behind the last ‘*’ character in each line. Constraints : • 1 ≤ N ≤ 12 Sample Input 1 :2 Sample Output 1*** *Sample Input 2 :3 Sample Output 2 :******* * * * *Problem: UMLThis exercise is for a simplified supermarket cash register system. The normal procedure for using the cash register is as follows:• A customer arrives at the checkout with items to pay.• The cashier records the identification number of each item, as well as the quantity if it is greater than one.• The checkout displays the price of each item and its description.• When all purchases are recorded, the cashier signals the end of the sale.• The cash register displays the total purchases.• The customer chooses his method of payment:✓ cash: the cashier collects the money received; the cashier indicates the currency to be returned to the customer;✓ check: the cashier checks the creditworthiness of the customer by transmitting a request to an authorization center via the cashier;✓ credit card: a bank terminal is part of the cash register. It transmits an authorization request to an authorization center according to the type of card.• The cash register registers the sale and prints…Problem: UMLThis exercise is for a simplified supermarket cash register system. The normal procedure for using the cash register is as follows:• A customer arrives at the checkout with items to pay.• The cashier records the identification number of each item, as well as the quantity if it is greater than one.• The checkout displays the price of each item and its description.• When all purchases are recorded, the cashier signals the end of the sale.• The cash register displays the total purchases.• The customer chooses his method of payment:✓ cash: the cashier collects the money received; the cashier indicates the currency to be returned to the customer;✓ check: the cashier checks the creditworthiness of the customer by transmitting a request to an authorization center via the cashier;✓ credit card: a bank terminal is part of the cash register. It transmits an authorization request to an authorization center according to the type of card.• The cash register registers the sale and prints…
- Problem: UMLThis exercise is for a simplified supermarket cash register system. The normal procedure for using the cash register is as follows:• A customer arrives at the checkout with items to pay.• The cashier records the identification number of each item, as well as the quantity if it is greater than one.• The checkout displays the price of each item and its description.• When all purchases are recorded, the cashier signals the end of the sale.• The cash register displays the total purchases.• The customer chooses his method of payment:✓ cash: the cashier collects the money received; the cashier indicates the currency to be returned to the customer;✓ check: the cashier checks the creditworthiness of the customer by transmitting a request to an authorization center via the cashier;✓ credit card: a bank terminal is part of the cash register. It transmits an authorization request to an authorization center according to the type of card.• The cash register registers the sale and prints…in c++ using 2D Arrays The following diagram represents an island with dry land (represented by “-“) surrounded by water ((represented by “#“). ##-########## #-----------# #-----------# #------------ # -----------# #------X----# #-----------# ############# Two bridges lead off the island. A mouse (represented by “X”) is placed on the indicated square. Write a program to make the mouse take a walk across the island. The mouse is allowed to travel one square at a time, either horizontally or vertically. A random number from 1 to 4 should be used to decide which direction the mouse is to take; for the sake of uniformity assume that 1 = up, 2 = down, 3 = left, and 4 = right. Since the mouse is wearing cement mouse galoshes, the mouse drowns when he hits the water. He escapes when he steps on a bridge. You may generate a random number up to 100 times allowing the mouse to take 100 steps. If the mouse does not find a bridge by the 100th try, he will wither away and die of starvation.…Question 9 Electrical resistors are said to be connected "in series" if the same current passes through each and "in parallel" if the same voltage is applied across each. If in series, they are equivalent to a single resistor whose resistance is given by + R₂ R = R₁ + R₂ + R3 + If in parallel, their equivalent resistance is given by 1 1 1 1 1 = + + + + R₁. R R₁ R₁ R₂ Write an M- le that prompts the user for the type of connection (series or parallel) and the number of resistors n and then computes the equivalent resistance.