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
IrinaVladis [17]
3 years ago
14

Draw a flowchart to represent the logic of a program that allows the user to enter values for the current year and the user’s bi

rth year. The program outputs the age of the user this year.

Engineering
1 answer:
Digiron [165]3 years ago
3 0

Answer:

Please, see the attachment.

Explanation:

First, we have to create two input boxes that allows the user to write the current year in one of them and his/her birth year in the another one. Also, we have to create a label that will show the result of the desired variable. We can write a message "Your age is:" and it will be attached to the result.

For the algorithm, let's call the variables as follows:

CY = Current Year

BY = Birth Year

X = Age of user

When the user inserts the current year and his/her birth year, the program will do the following operation:

X = CY - BY; this operation will give us the age of the user

After this the user will see something like "Your age is:" X.

You might be interested in
I need ideas of usernames for a 2021 Jeep Wrangler Rubicon!!
rjkz [21]

Answer:

2021 super star wagon master

6 0
3 years ago
What are examples of professional organizations? Check all that apply. American Institute of Architects Business Professionals o
Makovka662 [10]

Answer:

The correct option are;

American Institute of Architects

American Medical Association

American Society of Mechanical Engineers

Explanation:

A professional association is an association with the main purpose of promoting the basics and practices of a given profession. A professional association serves as a pillar for the interest of those practicing a particular profession and those of the best interest of the public.

The Business Professionals of America, DECA, Skills USA, and Future Educators are student associations while Screen Actors Guild is a labor union

3 0
4 years ago
Read 2 more answers
You are given a rectangular piece of cloth with dimensions X by Y, where X and Y are positive integers, and a list of n products
Bond [772]

The proof that recursion is exponential and that dynamic programming is polynomial is given by the formula;

P(x,y) = max{

P(x,y)

max (1 <= h <= X) { P[h, Y] + P(X - h, Y) }

max (1 <= v <= Y) { P[X, v] + P[X, Y - v] }

}

To prove that the recursion is exponential and that dynamic programming is polynomial. we will do so as follows;

Let us first have the assumption that the cloth is in such a manner that  either way, a product can be oriented. This implies that that after a cut, we will now have two pieces of cloth.

Now, we will make a list of the side lengths of the products that can fit in the piece after which we will consider a vertical cut for each of the side length as well as a horizontal cut for each of the side length, then we apply the same algorithm to each of the two resulting pieces.  

Thus, after the point above, it is likely true that in some instances, there may be a place to cut that is not at a product side length. However, It might be better for us to make a list of lengths composed of one or more pieces side by side as long as the sum is less than the length of the side being considered.

 

Lastly, we would note that this recursive approach is not limited to just two -dimensional problems as It could also be applied to a single or more than two dimensions. A useful proof would be to prove it for one dimension, then assuming it is true for n dimensions, prove it is true for n + 1 dimensions.

Thus;

P(x,y) = max{

P(x,y)

max (1 <= h <= X) { P[h, Y] + P(X - h, Y) }

max (1 <= v <= Y) { P[X, v] + P[X, Y - v] }

}

Read more at; brainly.com/question/11665190

3 0
3 years ago
You wish to design a cantilever beam with a square cross section and length L that can support an end load of F without yielding
koban [17]

Answer:

with a square cross section and length L that can support an end load of F without yielding. You also wish to minimize the amount the beam deflects under load. What is the free variable(s) (other than the material) for this design problem?

a. End load, F.

b. Length, L.

c. Beam thickness, b

d. Deflection, δ

e. Answers b and c.

f. All of the above.

8 0
3 years ago
A pin-supported structure has unrestrained rotations at the support locations.a) True b) False
antoniya [11.8K]

Answer:

a)True

Explanation:

Yes it is true a pin support can not resist the rotation motion . It can resist only lateral or we can say that only linear motion of structure and can not resit angular moment of motion about hinge or pin joint.On the other hand a fixed support can resist linear as well rotation motion of structure.

6 0
3 years ago
Other questions:
  • Steam enters a radiator at 16 psia and 0.97 quality. The steam flows through the radiator, is con- densed, and leaves as liquid
    15·1 answer
  • A power screw is 30 mm in diameter and has a thread pitch of 5 mm. Find the thread depth, the thread width, the mean and root di
    5·1 answer
  • A cylinder contains 480 cm3 of loose dry sand which weighs 820 g. Under a static load of 200 kPa the volume is reduced 1%, and t
    15·1 answer
  • Write a program. Submit a file named height.c Amusement parks have minimum heights for their rides. Create a program that adds u
    7·1 answer
  • Given asphalt content test data:
    8·1 answer
  • What type of degree is needed to be an architect?
    13·2 answers
  • A piston–cylinder device contains 0.85 kg of refrigerant- 134a at 2108C. The piston that is free to move has a mass of 12 kg and
    15·1 answer
  • When vehicle wheels are about to lock, the ABS senses the impending lock up and prevents this from occurring. a) True b) False 2
    5·1 answer
  • The annual average of solar photovoltaic energy in Phoenix is 6,720
    8·1 answer
  • . You need to access customer records in a database as you're planning a marketing campaign. What language can you use to pull t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!