1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mina [271]
3 years ago
6

As a talented grad of CMPEN 270, your new job as a digital designer is to design a "greedy" vending machine that accepts only ni

ckels, dimes, and quarters. It is "greedy" because it does not give back any change! There is only one type of snack inside the vending machine which sells for 20 cents. To simplify the problem, assume only one coin is accepted at a time and generates the following inputs (XY) to the state machine. (USE T-Flip Flops ONLY)
Condition XY
No coins were put in the vending machine 00
One nickel was put in the vending machine 01
One dime was put in the vending machine 10
One quarter was put in the vending machine 11

Engineering
1 answer:
Firlakuza [10]3 years ago
3 0

Answer:

See explaination

Explanation:

In the below answer "Z" is the output. please kindly check attachment for further details.

When z=1 , the vending machine gives snacks

z=0 , the vending machine doesn't give snacks.

And z becomes 1( high) only when the machine gets 20 cents or more than 20 cents. Since the machine doesn't give change, after giving snacks it will restart from initial state A (where no coins were put).

You might be interested in
At the coast on a summer day, the land is hotter than the ocean. Warm air over the land rises and is replaced by cooler air, cau
Alona [7]
B) The convection current will reverse direction, reversing the winds.
8 0
3 years ago
Read 2 more answers
The unit weight of a soil is 14.9kN/m3. The moisture content of the soil is17% when the degree of saturation is 60%. Determine:
Serggg [28]

Answer:

a) 2622.903 N/m^3

b) 1.38233

c)4.878811765

Explanation:

Find the void ratio using the formula:

y = \frac{G_{s}*y_{w} + w*G_{s}*y_{w} }{1+e} ....... Eq1

Here;

G_{s} is specific gravity of soil solids

y_{w} is unit weight of water = 998 kg/m^3

w is the moisture content = 0.17

e is the void ratio

y is the unit weight of soil = 14.9KN/m^3

Saturation Ratio Formula:

w*G_{s} = S*e  ..... Eq2

S is saturation rate

Substitute Eq 2 into Eq 1

y = \frac{(\frac{S*e}{w}) * y_{w} + S*e*y_{w}  }{1+e}

14900 = \frac{3522.352941*e + 598.8*e }{1+e} = \frac{4121.152941*e}{1+e}\\\\ e= 1.38233

Specific gravity of soil solids

G_{s} = \frac{S*e}{w} = \frac{0.6*1.38233}{0.17} = 4.878811765

Saturated Unit Weight

y_{s} = \frac{(G_{s} + e)*y_{w}  }{1+e} \\=\frac{(4.878811765 + 1.38233)*998  }{1+1.38233}\\\\= 2622.902571 N/m^3

7 0
3 years ago
In this assignment, you will write a user interface for your calculator using JavaFX. Your graphical user interface (GUI) should
Zolol [24]

Answer:

Kindly note that, you're to replace "at" with shift 2 as the brainly text editor can't take the symbol

Explanation:

import javafx.application.Application;

import javafx.stage.Stage;

import javafx.scene.Group;

import javafx.scene.Scene;

import javafx.scene.layout.VBox;

import javafx.scene.layout.HBox;

import javafx.scene.control.TextField;

import javafx.scene.control.Button;

public class Calculator extends Application {

public static void main(String[] args) {

// TODO Auto-generated method stub

launch(args);

}

"at"Override

public void start(Stage primaryStage) throws Exception {

// TODO Auto-generated method stub

Group root = new Group();

VBox mainBox = new VBox();

HBox inpBox = new HBox();

TextField txtInput = new TextField ();

txtInput.setEditable(false);

txtInput.setStyle("-fx-font: 20 mono-spaced;");

txtInput.setText("0.0");

txtInput.setMinHeight(20);

txtInput.setMinWidth(200);

inpBox.getChildren().add(txtInput);

Scene scene = new Scene(root, 200, 294);

mainBox.getChildren().add(inpBox);

HBox rowOne = new HBox();

Button btn7 = new Button("7");

btn7.setMinWidth(50);

btn7.setMinHeight(50);

Button btn8 = new Button("8");

btn8.setMinWidth(50);

btn8.setMinHeight(50);

Button btn9 = new Button("9");

btn9.setMinWidth(50);

btn9.setMinHeight(50);

Button btnDiv = new Button("/");

btnDiv.setMinWidth(50);

btnDiv.setMinHeight(50);

rowOne.getChildren().addAll(btn7,btn8,btn9,btnDiv);

mainBox.getChildren().add(rowOne);

HBox rowTwo = new HBox();

Button btn4 = new Button("4");

btn4.setMinWidth(50);

btn4.setMinHeight(50);

Button btn5 = new Button("5");

btn5.setMinWidth(50);

btn5.setMinHeight(50);

Button btn6 = new Button("6");

btn6.setMinWidth(50);

btn6.setMinHeight(50);

Button btnMul = new Button("*");

btnMul.setMinWidth(50);

btnMul.setMinHeight(50);

rowTwo.getChildren().addAll(btn4,btn5,btn6,btnMul);

mainBox.getChildren().add(rowTwo);

HBox rowThree = new HBox();

Button btn1 = new Button("1");

btn1.setMinWidth(50);

btn1.setMinHeight(50);

Button btn2 = new Button("2");

btn2.setMinWidth(50);

btn2.setMinHeight(50);

Button btn3 = new Button("3");

btn3.setMinWidth(50);

btn3.setMinHeight(50);

Button btnSub = new Button("-");

btnSub.setMinWidth(50);

btnSub.setMinHeight(50);

rowThree.getChildren().addAll(btn1,btn2,btn3,btnSub);

mainBox.getChildren().add(rowThree);

HBox rowFour = new HBox();

Button btnC = new Button("C");

btnC.setMinWidth(50);

btnC.setMinHeight(50);

Button btn0 = new Button("0");

btn0.setMinWidth(50);

btn0.setMinHeight(50);

Button btnDot = new Button(".");

btnDot.setMinWidth(50);

btnDot.setMinHeight(50);

Button btnAdd = new Button("+");

btnAdd.setMinWidth(50);

btnAdd.setMinHeight(50);

rowFour.getChildren().addAll(btnC,btn0,btnDot,btnAdd);

mainBox.getChildren().add(rowFour);

HBox rowFive = new HBox();

Button btnEq = new Button("=");

btnEq.setMinWidth(200);

btnEq.setMinHeight(50);

rowFive.getChildren().add(btnEq);

mainBox.getChildren().add(rowFive);

root.getChildren().add(mainBox);

primaryStage.setScene(scene);

primaryStage.setTitle("GUI Calculator");

primaryStage.show();

}

}

4 0
3 years ago
The section should span between 10.9 and 13.4 cm (4.30 and 5.30 inches) as measured from the end supports and should be able to
Sergeeva-Olga [200]

Answer:

hello below is missing piece of the complete question

minimum size = 0.3 cm

answer : 0.247 N/mm2

Explanation:

Given data :

section span : 10.9 and 13.4 cm

minimum load applied evenly to the top of span  : 13 N

maximum load for each member ; 4.5 N

lets take each member to be 4.2 cm

Determine the max value of P before truss fails

Taking average value of section span ≈ 12 cm

Given minimum load distributed evenly on top of section span = 13 N  

we will calculate the value of   by applying this formula

= \frac{Wl^2}{12}  =  (0.013 * 0.0144 )/ 12  =  1.56 * 10^-5

next we will consider section ; 4.2 cm * 0.3 cm

hence Z (section modulus ) = BD^2 / 6  

                                             = ( 0.042 * 0.003^2 ) / 6  = 6.3*10^-8

Finally the max value of P( stress ) before the truss fails

= M/Z = ( 1.56 * 10^-5 ) / ( 6.3*10^-8 )  

          = 0.247 N/mm2

5 0
3 years ago
technician A says that in any circuit, electrical current takes the path of least resistance. technician B says that while this
ArbitrLikvidat [17]

Answer:

  technician A is correct

Explanation:

Technician B has circuit topologies confused. In a series circuit, there is only one path for electrical current to take. In a parallel circuit, the current will divide between paths in proportion to the inverse of their resistance. The least resistance path will have the most current.

Technician A is mostly correct.

3 0
3 years ago
Other questions:
  • 1. A pipeline constructed of carbon steel failed after 3 years of operation. On examination it was found that the wall thickness
    13·1 answer
  • Policy makers in the U.S. government have long tried to write laws that encourage growth in per capita real GDP. These laws typi
    6·1 answer
  • Hydrogen gas (density = 1.165 kg/m^3 ) is stored at 25°C in a permeable cylindrical container which has an outer diameter of 0.2
    11·1 answer
  • Use the map to complete the table by selecting the boxes that best describe how ocean currents affect the
    14·1 answer
  • The<br> _______includes classes of laborers, such as general laborer, apprentice laborer and mason.
    9·1 answer
  • A positive slope on a position-time graph suggests
    15·1 answer
  • A proposed embankment fill requires 7100 ft of compacted soil. The void ratio of the compacted fill is specified as 0.5. Four bo
    10·1 answer
  • What is the purpose of the graphic language?
    15·1 answer
  • A 75-hp motor that has an efficiency of 91.0% is worn-out and is replaced by a motor that has a high efficiency 75-hp motor that
    6·1 answer
  • Rivet gauge, or transverse pitch is the distance between the Group of answer choices heads of rivets in the same row. centers of
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!