Write a program in C or Python that calculates the moment at the support (point A) depending on the amount of the load applied and the distance of the load off the point A, which will be entered by user. (Other programming languages will not be accepted).
Write a program in C or Python that calculates the moment at the support (point A) depending on the amount of the load applied and the distance of the load off the point A, which will be entered by user. (Other programming languages will not be accepted).
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question

Transcribed Image Text:A Moment that arise from a load is calculated by means of the applied load multiplied by the
distance between the applied load and support. For instance: In the figure below, a load of 10 kN
is applied at 4m away from point A. In this case, the moment at the point A will be 10 kN X 4 m = 40
kN.m
10 KN
4 m
A
5 m
Write a program in C or Python that calculates the moment at the support (point A) depending on the
amount of the load applied and the distance of the load off the point A, which will be entered by user.
(Other programming languages will not be accepted).
Note: the load can be applied within the length of the beam.
Examples:
Please enter the distance of the load away from point A (0 - 5m): 4
Please enter amount of load: 10
The moment applied to point A is
40 kN.m
Process finished with exit code 0
Please enter the distance of the load away from point A (0 - 5m): 6
Please enter amount of load: 5
the distance should be between 0-5 m
Process finished with exit code 0
Please enter the distance of the load away from point A (0 - 5m): 1.2
Please enter amount of load: 8
The moment applied to point A is
9.6 kN.m
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education