Answer to Question #261982 in Python for khaled

Question #261982

Instructions: You should submit your answer to this question as a Python code

with .py extension to the corresponding question in Google Classroom.

Attention: Make sure to write your name, surname, and student ID number.

Question:

 (Physics: find runway length) Given an airplane's acceleration a and take-of

 speed v, you can compute the minimum runway length needed for an airplane te

 take off using the following formula:

                  length

                        2a

  Write a program that prompts the user to enter v in meters/second (m/s) and th

 acceleration a in meters/second squared (m/s), and displays the minimum runway

 length. Here is a sample run:

 Enter speed and acceleration: 60, 3.5 Enter

 The minimum runway length for this airplane is 514.286 meters


1
Expert's answer
2021-11-06T11:47:59-0400
# Import Module

from selenium import webdriver


from selenium.webdriver.common.keys import Keys


import time

 
# open Chrome

driver = webdriver.Chrome(


    'C:/Users/HP/Desktop/Drivers/chromedriver_win32/chromedriver.exe')

 
# Open URL

driver.get('https://forms.gle/vWVmojtWdfFvEj8V6')

 
# wait for one second, until page gets fully loaded

time.sleep(1)

 
# Data

datas = [


    ['Mary D Joiner', 'MaryDJoiner@gmail.com', '4079025063',


        '2474  McDonald Avenue,Maitland', 'NA'],


    ['Karen B Johnson', 'KarenBJohnson@gmail.com',


        '3153437575', '2143  Oak Street,GRAND ISLE', 'NA'],

]
 
# Iterate through each data

for data in datas:


    # Initialize count is zero


    count = 0

 

    # contain input boxes


    textboxes = driver.find_elements_by_class_name(


        "quantumWizTextinputPaperinputInput")

 

    # contain textareas


    textareaboxes = driver.find_elements_by_class_name(


        "quantumWizTextinputPapertextareaInput")

 

    # Iterate through all input boxes


    for value in textboxes:


        # enter value


        value.send_keys(data[count])


        # increment count value


        count += 1

 

    # Iterate through all textareas


    for value in textareaboxes:


        # enter value


        value.send_keys(data[count])


        # increment count value


        count += 1

 

    # click on submit button


    submit = driver.find_element_by_xpath(


        '//*[@id="mG61Hd"]/div[2]/div/div[3]/div[1]/div/div/span/span')


    submit.click()

 

    # fill another response


    another_response = driver.find_element_by_xpath(


        '/html/body/div[1]/div[2]/div[1]/div/div[4]/a')


    another_response.click()

 
# close the window
driver.close()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS