99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代寫IRP 1 Coursework 01編程、代做Python程序

時間:2024-01-24  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯




Description
This is an individual coursework worth 10% of the entire grade.  Each student will fork the project from the gitlab and complete the code themselves by the end of Friday 3rd November.
https://gitlab-student.macs.hw.ac.uk/ouc_3rd_year_assignments/assignements/coursework_01

This is a simple coursework to demonstrate using functions, lists, loops and variables.
This project simulates a simplified washing machine.
You need to create a menu system to control the options for a washing machine, then simulate the wash cycle by displaying appropriate messages.
Your program will use an infinite loop to execute the code, whether the washing cycle completes successfully or is interrupted by the user, your program must always return to the main menu.
Your program must use functions to display and manage the menu options.
Your program must use functions to retrieve user input, you should have different input functions for different types of input (int, float, string etc.).
Your input functions must be stored in the separate file called user_input.py and imported into your washing machine main file.
You may use extra python files to organize your code.
Your code should have sensible names for functions and variables, you should also add comments where appropriate.
All files need to be uploaded to gitlab before the deadline.

For simplicity it can be assumed that the laundry detergent has been added to the water tank already, and that the first batch of water will be soapy.  The following washes will be normal water.
The water in the water tank starts at a temperature of 20 degrees.  Your program will need to sleep for a period everytime it executes a loop, you should look use the sleep function of the time library.
Running the program
The program will display the main menu, which will allow the user to select the type of wash, wash options and select when to run.  When the user selects the “run cycle” option, the program will provide constant status updates about what it is doing and how much progress has been made.
If the user presses any key during the run cycle process, the cycle will stop running and display a message saying “Wash cancelled” before returning to the main menu.
When the machine has completed the wash cycle it will display a “Wash completed” message before returning to the main menu.
Your program should continue looping until it is forcefully closed.

Main menu
The main menu system will list the various types of wash the washing machine can do.  After a type has been selected the menu will allow the user to customize the current wash by altering any of the options.
Invalid options should be identified and an error message displayed, and the user should try again.
Menu level 1
This will list the various types of wash available.  You can choose to use numbers or letters to select the wash type.  When one has been chosen, Menu level 2 should be displayed.
Menu level 2
This will list the various options for the wash cycle, as well as their current value.   You can choose to use numbers or letters to select the option type.  When one has been chosen, Menu level 3 should be displayed.  There are 2 different actions: “back” and “run cycle”. “Back” returns to Menu level 1, “run cycle” starts the wash cycle using the current options.
Menu level 3
This lists the available values for the selected option, it also has a “back” and “save” command.  Both actions return to Menu level 3, but the “save” command will update the options with the new value.

Washing machine functions
Your program should use the following Python functions with appropriate parameter types to simulate the washing machine.  You may also add your own functions.
heat_water(temperature)
This function will increase the temperature of the water in the water tank, it should loop until the water reaches the desired temperature.  Each iteration will increase the temperature by 1 degree, print a message of the current water temperature, and sleep for 100ms (0.1s).
add_water(amount)
This function will transfer the heated water into the washing machine drum, the amount says how much to transfer in total.  It should use a loop until the water has been added.  The maximum is 10 litres of water, the function should use a loop to add 0.5 litres and sleep for 100ms each iteration.
open_drain()
This function opens the drain of the washing machine so that water can leave the machine drum. It prints a message saying that the drain is open.
close_drain()
This function closes the drain of the washing machine, so that water cannot leave the drum. It prints a message saying that the drain is closed.
spin(speed, duration)
This function loops, saying that the drum is spinning at the specified speed.  The duration is in minutes, but for our simulation we are using 0.1s for each minute.  So a loop iteration will display the speed, current spin count and remaining spin counts. 
alternating_spin(duration, repeat)
The drum will slowly spin clockwise for (duration) times, then stop and spin counterclockwise for (duration) times.  This will be repeated (repeat) times.  The function will loop (repeat) times, it will have at least one inner loop, which will print a status message and sleep for 0.1s per spin.  
For example:
alternating_spin(5, 3) will execute 3 outer loops, each iteration will spin clockwise 5 times, then spin counterclockwise 5 times, each spin will display a message and sleep for 0.1s, so it will take around 3 seconds to finish the whole function.

Options
The options which can be controlled by the user are:
water_temp 
Available options are: 20, 30, 40, 50, 60
water_amount 
Available options are: 2.5, 5.0, 7.5, 10.0
rotation_speed
Available options are: 400, 500, 600, 700, 800
spin_duration 
Available options are: 5, 7, 10, 15
alternating_duration 
Available options are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
alternating_spin_repeat 
Available options are: 5, 6, 8, 10, 15, 20

Wash types
Most wash types will execute the same wash cycle, it is just that different types of wash will execute it a different number of times.
Wash cycle
Close drain, Heat water, Add water, Alternating spin, Spin, open drain, spin
Quick wash
2 cycles
Standard wash
3 cycles
Thorough wash 
4 cycles
Rinse and spin
Close drain, Heat water, Add water, Spin, open drain, spin
Spin
open drain, spin

Default option values
water_temp = 20
water_amount = 10.0
rotation_speed = 600
spin_duration = 15
alternating_duration = 3
alternating_spin_repeat = 5 

Grading scheme (20 points)
2 points – suitable variable and function names
2 points – input methods for int, float, boolean and string (with exception checking) in the user_input file.
2 points – menu system works (including spelling, various sub options and input validation)
6 points – each wash type works successfully.
6 points – can change each wash option within the available values, changed options effect the wash cycle.
2 points – useful comments and clear, readable code.
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:CSC420編程代寫、c/c++,Java程序代做
  • 下一篇:一克拉培育鉆石什么價,培育鉆石售價一覽表
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                国产精品国产精品国产专区不片| 日韩一区二区在线免费观看| 亚洲国产sm捆绑调教视频| 欧美mv和日韩mv的网站| 国产精品久久一卡二卡| 久久天堂av综合合色蜜桃网| 日韩欧美中文字幕制服| 亚洲欧美激情插| 成人a区在线观看| 国产日韩影视精品| 国产成人亚洲综合a∨婷婷图片 | 久久精品一区二区三区不卡| 日韩激情中文字幕| 欧美一区二区三区四区五区| 男人的天堂亚洲一区| 91精品在线免费观看| 午夜视频久久久久久| 7777精品伊人久久久大香线蕉的 | 久久久亚洲高清| 99久久99精品久久久久久| 天涯成人国产亚洲精品一区av| 精品国产91久久久久久久妲己| 97久久超碰精品国产| 日日摸夜夜添夜夜添精品视频| 国产欧美一区二区三区鸳鸯浴| 欧美伊人久久久久久久久影院| 国产一区在线不卡| 天堂在线亚洲视频| 亚洲欧美日韩国产另类专区| 日韩午夜精品视频| 欧美丝袜丝nylons| 成人午夜av电影| 久久不见久久见免费视频7| 亚洲精选一二三| 欧美激情在线看| 欧美成人一区二区| 欧美区在线观看| 91久久久免费一区二区| 懂色av中文一区二区三区| 日本不卡在线视频| 日日噜噜夜夜狠狠视频欧美人| 亚洲激情图片qvod| 亚洲乱码国产乱码精品精的特点| 国产欧美日韩综合| 国产亚洲欧美日韩日本| 日韩三级高清在线| 91精品国产入口| 欧美一级片免费看| 6080亚洲精品一区二区| 欧美日韩小视频| 欧美午夜不卡在线观看免费| 亚洲国产日韩精品| 亚洲美女电影在线| 亚洲同性gay激情无套| 国产精品视频yy9299一区| 中文字幕av资源一区| 中文字幕av一区二区三区免费看| 久久久五月婷婷| 欧美精品一区二区三区蜜臀| 精品国产乱码久久久久久影片| 日韩精品一区二区在线| 91精品国产乱| 久久蜜桃av一区精品变态类天堂| 久久久国产精品麻豆| 久久新电视剧免费观看| 日韩欧美国产午夜精品| xvideos.蜜桃一区二区| 国产亚洲婷婷免费| 中文字幕一区二区不卡| 亚洲欧美日韩精品久久久久| 亚洲综合免费观看高清完整版| 亚洲成人av一区二区三区| 日产欧产美韩系列久久99| 美日韩一区二区三区| 久久疯狂做爰流白浆xx| 国产一区二区三区在线观看免费视频| 国产制服丝袜一区| 成人黄色免费短视频| 欧美在线不卡一区| 久久综合av免费| 亚洲欧美国产三级| 理论电影国产精品| 成人综合婷婷国产精品久久蜜臀 | 国产精品污网站| 国产精品欧美经典| 尤物av一区二区| 日韩国产精品久久久久久亚洲| 裸体歌舞表演一区二区| 成人午夜大片免费观看| 亚洲精品高清在线| 免费成人在线网站| 成人亚洲一区二区一| 在线观看精品一区| 欧美xxxxxxxx| 最新久久zyz资源站| 亚洲无线码一区二区三区| 日韩va亚洲va欧美va久久| 国产成a人亚洲精| 欧美日韩精品一区二区天天拍小说| 欧美大胆人体bbbb| 一区二区三区日韩在线观看| 蜜臀精品一区二区三区在线观看| 国产精品资源在线观看| 欧美性一二三区| 国产精品视频免费| 另类欧美日韩国产在线| 91亚洲午夜精品久久久久久| 欧美大尺度电影在线| 亚洲激情五月婷婷| 粉嫩嫩av羞羞动漫久久久| 91精品婷婷国产综合久久性色| 国产日本欧美一区二区| 亚洲成av人片在线| av电影一区二区| 久久久久久久久久看片| 日韩精品1区2区3区| 91小视频免费观看| 国产亚洲婷婷免费| 精品无人区卡一卡二卡三乱码免费卡 | 国产日韩av一区| 日韩av不卡在线观看| 91在线视频观看| 欧美成人猛片aaaaaaa| 亚洲国产cao| 91亚洲精品久久久蜜桃网站| 精品处破学生在线二十三| 午夜一区二区三区视频| 日本韩国欧美三级| 一区二区三区日本| 亚洲高清免费视频| 欧美片网站yy| 亚洲成人免费看| 色综合天天综合网天天狠天天 | 偷拍一区二区三区四区| 欧美性视频一区二区三区| 亚洲男女一区二区三区| 99re热这里只有精品免费视频| 日韩一区二区三区观看| 日日骚欧美日韩| 欧美不卡一区二区三区四区| 五月婷婷激情综合| 欧美一区二区三级| 蜜桃精品在线观看| 日韩美女一区二区三区| 九九国产精品视频| 欧美不卡123| 国产剧情一区二区| 国产欧美精品一区| 国内成人免费视频| 国产精品免费看片| 91国在线观看| 日韩国产欧美一区二区三区| 欧美本精品男人aⅴ天堂| 国产一区二区不卡在线| 国产精品国产三级国产专播品爱网| www.成人网.com| 亚洲综合一区在线| 欧美一区二区精品久久911| 国产精品中文字幕一区二区三区| 日本一区二区不卡视频| 91国模大尺度私拍在线视频 | 天天综合色天天综合色h| 精品视频资源站| 蜜臀va亚洲va欧美va天堂| 中文字幕不卡在线| 欧美精品乱码久久久久久按摩 | 色婷婷亚洲综合| 图片区小说区国产精品视频| 久久伊人中文字幕| 91福利视频网站| 国产自产视频一区二区三区| 亚洲欧美视频一区| 欧美v日韩v国产v| 色av成人天堂桃色av| 国产精品456| 亚洲成人精品影院| 国产精品视频免费看| 91精品国产综合久久精品| 成人精品免费视频| 国产专区欧美精品| 在线播放亚洲一区| 国产一区二区美女诱惑| 亚洲激情综合网| 欧美激情一区二区三区在线| 欧美日韩亚洲不卡| 97精品国产露脸对白| 激情久久五月天| 日韩精品亚洲专区| 一区av在线播放| 欧美高清在线视频| 欧美日本在线视频| 在线精品视频免费播放| 国产二区国产一区在线观看| 人人精品人人爱| 亚洲成人免费视| 亚洲国产日韩在线一区模特| 成人欧美一区二区三区白人| 国产欧美日韩另类一区| 99在线精品一区二区三区| voyeur盗摄精品|