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
Viktor [21]
4 years ago
8

Create an application in VB that allows the user to enter an object’s mass, velocity, and height and displays the object’s KE an

d PE. The application should have a two functions: KineticEnergy that accepts an object’s mass (kilograms) and velocity (meters/second) as arguments and PotentialEnergy that accepts an object’s mass (kilograms), acceleration due to gravity (m/s2 ), and height (meters) as arguments. The function should return the objects KE and PE (3 decimal places).
Engineering
1 answer:
yanalaym [24]4 years ago
3 0

Answer:

see explaination

Explanation:

Module VBModule

Function KineticEnergy(ByVal mass As Decimal, ByVal velocity As Decimal) As Decimal

Dim result As Decimal

result = 0.5*mass*velocity*velocity

KineticEnergy = result

End Function

Sub Main()

Dim mass = Console.ReadLine()

Dim velocity = Console.ReadLine()

Console.WriteLine(FormatNumber(CDbl(KineticEnergy(mass,velocity)), 3))

End Sub

End Module

You might be interested in
A tensile test was made on a tensile specimen, with a cylindrical gage section which had a diameter of 10 mm, and a length of 40
tamaranim1 [39]

Answer:

The answers are as follow:

a) 10 mm

b) 12.730 N/mm^{2}

c) 127.307 N/mm^{2}

d) 0.25

Explanation:

d1 = 10mm , L1 = 40 mm, L2 = 50 mm, reduction in area = 90% = 0.9

Force = F =1000 N

let us find initial area first, A1 = pi*r^{2} = 78.55 mm^{2}

using reduction in area formula : 0.9 = (A1 - A2 ) / A1

solving it will give,  A2 = 0.1 A1 = 7.855  mm^{2}

a) The specimen elongation is final length - initial length

50 - 40 = 10 mm

b) Engineering stress uses the original area for all stress calculations,

Engineering stress = force / original area  = F / A1 = 1000 / 78.55  

Engineering stress = 12.730 N / mm^{2}

c) True stress uses instantaneous area during stress calculations,

True fracture stress = force / final  area  = F / A2 = 1000 / 7.855

True Fracture stress = 127.30 N / mm^{2}

e) strain = change in length / original length

strain = 10 / 40  = 0.25

8 0
3 years ago
A. Paleozoic
garri49 [273]
Pretty sure it’s Cenozoic
5 0
3 years ago
Read 2 more answers
2. What is the main job of a cylinder head?
Anna11 [10]

Answer:

Explanation:

The cylinder head sits on the engine and closes off the combustion chamber. The gap that remains between the cylinder head and the engine is completed by the head gasket. Another task of the cylinder head is to ensure the constant lubrication of the cylinder        

3 0
3 years ago
What type of fire extinguisher is used for electrical fires.
AysviL [449]
The all purpose one will work or you could use type C I believe.
8 0
3 years ago
Polymers can be natural or synthetic. a)-True b)- false?
Olenka [21]

Answer:

TRUE

Explanation:

Polymers can be natural as well as synthetic

The polymer which are found in nature are called natural polymer tease polymer are not synthesized, they are found in nature

Example of natural polymers is cellulose, proteins etc

On the other hand synthetic polymers are not found in nature they are synthesized in market

There are many example of synthetic polymer

Example : nylon, Teflon etc  

So it is a true statement

8 0
4 years ago
Other questions:
  • Match each term in the second column with its correct definition in the first column.
    13·1 answer
  • An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours plus any overtime pay. Ove
    7·1 answer
  • import java.util.Scanner; public class FindSpecialValue { public static void main (String [] args) { Scanner scnr = new Scanner(
    11·1 answer
  • You test the lighting for the first time none of the new lights work, but the old ones do. What should you do first?
    13·2 answers
  • Which statement is true about what will happen when the example code runs?1: main PROC2: mov edx,03: mov eax,404: push eax5: cal
    10·1 answer
  • What skills are key to reading comprehension?
    5·1 answer
  • Suppose you have two arrays: Arr1 and Arr2. Arr1 will be sorted values. For each element v in Arr2, you need to write a pseudo c
    11·1 answer
  • Future solution for air pollution in new zealand
    7·1 answer
  • Technician A says that wheel lug nuts can be loosened when the vehicle is off the ground with an impact
    10·1 answer
  • 6. The humanistic perspective focuses on free will, Free will is your ability to OA. believe what others believe. B. make your o
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!