合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

        代寫INT2067、代做Python編程語言
        代寫INT2067、代做Python編程語言

        時間:2025-02-13  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



        Assignment 1
        INT2067/INT5051 Introduction to Programming and Problem Solving
        2024-2025 Semester 2
        Due Date: February 23, 2025 (Sunday)
        1 Introduction
        In this assignment, you are required to write a program that calculates different 
        quantities related to a projectile motion. The calculation could be useful in simulation 
        and computer games.
        2 Functional Requirements (70%)
        Your program should do the following:
        1. [10%] Print a welcome message when the program starts.
        2. [10%] Ask the following inputs from the user according to the sequence given 
        below:
        a) Initial speed in meter per second; and
        b) Angle of projection in degree;
        The above two inputs can be real numbers.
        3. [10%] Calculate and print the time of flight in seconds (see Section 4).
        4. [10%] Calculate and print the range of motion in meters (see Section 4).
        5. [20%] Calculate the horizontal displacement 𝑥 and vertical displacement 𝑦 in 
        meters for six different time points in the motion. Suppose T is the time of 
        flight. The time points are 0, T/5, T/3, T/2, 3T/4, and 𝑇. The values should 
        be given in a table format.
        6. [10%] Round the values in the output for steps 3 and 4 to four decimal digits 
        and those for step 5 to two decimal digits properly. You should also align the 
        columns to left, center, and right like a table, respectively.
        3 Program Design and User Interface (30%)
        The following will also be considered when your assignment is graded.
        • [10%] The variable names should be sensible and the code should be tidy.
        • [10%] You should break down your program into code blocks with comments.
        • [10%] The output should be neat and the required information should be 
        shown clearly. The text in the output should be correct and contain no spelling 
        mistakes.
        4 Projectile Motion Calculation
        Consider a projectile motion with initial speed u and angle of projection θ. Let g 
        denote the standard gravity and assume g = 9.81 m/s2
        .
        • The time of flight 𝑇 is given by Equation (1):
        𝑇 =
        2 × 𝑢 × sin 𝜃
        𝑔
        • At time 𝑡 within the time of flight, the horizontal and vertical displacements, 
        𝑥 and 𝑦, are given by Equation (2) and (3):
        𝑥 = 𝑢 × 𝑡 × cos 𝜃
        𝑦 = 𝑢 × 𝑡 × sin 𝜃 −
        1
        2
        𝑔 × 𝑡
        2
        • The range of motion 𝑟 can be given by computing the horizontal displacement 
        when time equals time of flight, that is, by setting 𝑡 = 𝑇 in Equation (2).
        The above equations should allow you to compute all the required quantities in this 
        assignment. However, if you want more explanation, you may refer to this page1
        .
        5 Hints
        To compute sin θ and cos θ, you may use the Python functions math.sin and 
        math.cos for trigonometric functions. However, those functions require an angle in 
        radians as parameter, so you will need to use the function math.radians to convert 
        an angle in degrees to one in radians.
        Refer to the documentation for the Python math module2
        for more information about 
        the above Python math functions.
        6 Submission Requirements
        Your Python file should be named as assignment1.py. Submit only the Python file 
        assignment1.py through Moodle. Failure to submit the file properly will result in 
        a penalty of 5 to 20 marks.
        1 https://www.coursehero.com/study-guides/boundless-physics/projectile-motion/
        2 https://docs.python.org/3/library/math.html
        See Moodle for the exact time of the deadline for submission. Late submission is 
        usually not accepted. You should submit earlier to avoid possibly high traffic around 
        the deadline.
        7 Plagiarism Policy
        The assignment should be done only by yourself. Every line of code should be written 
        by you. The use of any artificial intelligence (AI) tools is NOT allowed in this 
        assignment. Discussions on the assignment should be kept at a high-level only. You 
        are suggested to refer your classmates to the relevant notes or lab exercises if you 
        want to help them.
        You need to put down a declaration for having not used AI tools as comment at the 
        beginning of your program file. For example, your declaration may look like this:
        # Declaration: this code is my own individual and original work without AI assistant.
        If you have used AI tools or consulted the assignment with anyone, you should 
        provide an acknowledgment as comment at the beginning of your program file. Give 
        the names of all classmates that you have turned to. For example, your 
        acknowledgement may look like:
        # Acknowledgement: I have asked Thomas, Gordon, and Emily for help.
        # Acknowledgement: I have used AI tools (such as ChatGPT, gpt4o via POE, etc.) in 
        working on this assignment.
        If plagiarism is found, both the copier and originator will get zero mark for the 
        assignment. Repeat offenders may result in a deduction of the course grade.
        8 Sample Input & Output
        Welcome to projectile motion calculator!
        Enter initial speed (m/s): 5↵
        Enter angle of projection (degree): 42↵
        Time of flight is 0.6821 seconds.
        Range of flight is 2.5345 meters.
        Time (s) x (m) y (m)
        0.00 0.00 0.00
        0.14 0.51 0.37
        0.23 0.84 0.51
        0.34 1.27 0.57
        0.51 1.90 0.43
        0.68 2.53 0.00

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




         

        掃一掃在手機打開當前頁
      1. 上一篇:ECM3446代做、代寫Python/C++編程
      2. 下一篇:代寫GC- 4100、代做Java/c++設計程序
      3. 無相關信息
        合肥生活資訊

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        戴納斯帝壁掛爐全國售后服務電話24小時官網400(全國服務熱線)
        戴納斯帝壁掛爐全國售后服務電話24小時官網
        菲斯曼壁掛爐全國統一400售后維修服務電話24小時服務熱線
        菲斯曼壁掛爐全國統一400售后維修服務電話2
        美的熱水器售后服務技術咨詢電話全國24小時客服熱線
        美的熱水器售后服務技術咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 上海廠房出租 短信驗證碼 酒店vi設計

        主站蜘蛛池模板: 波多野结衣中文字幕一区| 久久99国产一区二区三区| 香蕉视频一区二区| 精品国产精品久久一区免费式 | 亚洲国产成人久久一区二区三区| 国产人妖在线观看一区二区| 一区二区三区视频| 亚洲国产一区二区a毛片| 91麻豆精品国产自产在线观看一区| 制服美女视频一区| 国产91精品一区| 日韩精品一区二区三区毛片 | 国产美女露脸口爆吞精一区二区| 日本无码一区二区三区白峰美| 日本中文字幕一区二区有码在线| 精品人妻少妇一区二区三区在线| 日本在线视频一区| 精品久久久久中文字幕一区| 一区二区三区AV高清免费波多| 亚洲乱色熟女一区二区三区蜜臀 | 精品无码AV一区二区三区不卡| 国产午夜精品一区二区三区小说 | 亲子乱av一区区三区40岁| 亚洲精品伦理熟女国产一区二区| 亚洲高清一区二区三区| 无码一区二区三区爆白浆| 欧美日本精品一区二区三区| 无码一区二区三区在线| 秋霞日韩一区二区三区在线观看 | 亚洲色偷精品一区二区三区| 日本片免费观看一区二区| 久久久久人妻一区精品性色av| 一区二区在线免费观看| 中文字幕无线码一区二区| 国模无码一区二区三区| 男人免费视频一区二区在线观看| 亚洲国产精品一区二区第一页免 | 99精品国产高清一区二区三区| 国产无线乱码一区二三区| 日韩人妻精品无码一区二区三区| 国产香蕉一区二区精品视频|