国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代寫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程序代做
  • 下一篇:一克拉培育鉆石什么價,培育鉆石售價一覽表
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品一久久香蕉国产线看观看| 99免费在线视频观看| 国产精品旅馆在线| 欧美精品久久久久久久| 欧美一区二区视频在线播放| 久久久日本电影| 亚洲成人一区二区三区| 国产精品一区二区三区久久久| 日韩一区二区欧美| 欧美影院在线播放| 久草热视频在线观看| 日本在线观看不卡| 久久男人av资源网站| 亚洲精品影院| 免费看欧美一级片| 国产精品视频永久免费播放| 女同一区二区| 久久精品国产欧美亚洲人人爽| 欧美在线亚洲在线| 国产精品嫩草影院一区二区| 韩国v欧美v日本v亚洲| 国产精品久久久久久亚洲调教 | 91精品久久久久久久久久久| 亚洲一区二区三区四区视频| 国产青春久久久国产毛片| 久久综合久久美利坚合众国| 美女被啪啪一区二区| 国产精品久久91| 国产欧美一区二区白浆黑人| 中文字幕精品—区二区日日骚| 成人精品一区二区三区电影黑人| 亚洲综合在线中文字幕| 97人人模人人爽人人少妇| 亚洲国产精品久久久久婷蜜芽 | 久热精品视频在线观看一区| 国产免费一区二区三区| 亚洲va国产va天堂va久久| 国产www免费| 青青青在线视频播放| 国产精品你懂得| 国产精品一区二区三区久久| 一本二本三本亚洲码| 久久免费精品日本久久中文字幕| 色中色综合成人| 色婷婷成人综合| 国产亚洲天堂网| 亚洲国产精品一区在线观看不卡| 久久久免费观看| 欧美一区观看| 国产精品免费看久久久无码| 国产日产欧美一区二区| 亚洲va码欧洲m码| 精品国产欧美一区二区三区成人 | 日本一区精品| 久久综合网hezyo| 国产精品91久久久| 欧美日韩一区二区三区免费| 欧美激情乱人伦| 国产激情久久久久| 精品少妇人妻av一区二区| 亚洲永久免费观看| 国产精品丝袜白浆摸在线| 国产视频一区二区三区四区| 视频一区二区三| 国产精品高清在线观看| 91精品久久久久久蜜桃 | 日韩在线视频一区| 分分操这里只有精品| 欧洲成人在线视频| 欧美激情一区二区三级高清视频| 久久99精品久久久久久久久久 | 91精品国产91| 免费黄色福利视频| 日韩av综合在线观看| 精品久久一二三| 久久久久久久久久亚洲| 国产女人18毛片| 欧美性受xxx| 午夜精品视频在线观看一区二区 | 欧美专区中文字幕| 亚洲免费视频一区| 国产精品高清在线| 久久久午夜视频| 成人av一级片| 国产伊人精品在线| 欧美凹凸一区二区三区视频| 色女人综合av| 亚洲中文字幕无码专区| 国产精品黄视频| 国产成人精品优优av| 久久日韩精品| 91精品国产自产91精品| 国产日本欧美一区二区三区| 欧美激情专区| 日本不卡免费新一二三区| 一区二区不卡在线视频 午夜欧美不卡'| 精品国产区一区二区三区在线观看| av日韩一区二区三区| 国产日韩欧美在线看| 国内成人精品一区| 欧美亚洲激情视频| 日本精品一区二区三区高清 久久| 亚洲淫片在线视频| 中文字幕精品—区二区日日骚| 国产精品成久久久久三级| 国产精品日韩在线| 日韩中文字幕在线精品| 久久成人资源| 久久99精品久久久久久三级 | 国产高清不卡无码视频| 91久久国产综合久久91精品网站| 成人国产亚洲精品a区天堂华泰| 国产一区在线免费观看| 美日韩免费视频| 免费看a级黄色片| 国内视频一区二区| 蜜桃在线一区二区三区精品| 精品无码一区二区三区爱欲 | 日韩中文字幕在线免费观看| 久久久久久久久久久久久国产精品| 91观看网站| 91禁国产网站| 国产成人亚洲综合| 久久人91精品久久久久久不卡| 91精品啪在线观看麻豆免费| 99久久激情视频| 97福利一区二区| 久久久久久www| 久久久久久伊人| 国产精品爽爽ⅴa在线观看| 国产精品久久综合av爱欲tv| 国产精品久久久999| 久久亚洲精品国产亚洲老地址| 久久久www成人免费精品| 日韩一区二区福利| 久久视频精品在线| 日本亚洲导航| 欧美最猛黑人xxxx黑人猛叫黄| 青青青国产精品一区二区| 欧日韩在线观看| 欧美日韩一区综合| 国产日韩av在线播放| av一区二区三区四区电影| 91九色对白| 日韩中文字幕在线视频| 国产精品欧美亚洲777777| 国产精品久久久久久久久久ktv| 久久成人在线视频| 亚洲影影院av| 日本999视频| 欧美老熟妇喷水| 国产午夜大地久久| 91久热免费在线视频| 91精品国产高清久久久久久| 国产成人一区二区三区免费看| 久久最新资源网| 一区二区视频在线观看| 日韩资源av在线| 国内久久久精品| 国产欧美精品日韩精品| 久久久国产精品一区二区三区| 国产日产久久高清欧美一区| 国产欧美精品日韩精品| 久久一区二区三区欧美亚洲| 91国产精品91| 国产精品免费福利| 亚洲最大av网站| 欧美一区二区中文字幕| 国产在线一区二区三区四区| 国产美女精彩久久| 九九九九九九精品| 久久国产精品久久久久久久久久| 无码人妻h动漫| 国内精品久久影院| 99免费在线视频观看| 久久久精品视频在线观看| 欧美日韩国产91| 欧美在线亚洲在线| 91精品久久久久久久久久入口| 国产精品视频白浆免费视频| 午夜一区二区三视频在线观看| 精品1区2区| 91成人免费观看| 国产精品三区在线| 欧美一级视频免费在线观看| 国产日韩精品在线观看| 日韩在线欧美在线国产在线| 亚洲在线视频一区二区| 欧美日韩福利在线| 91老司机精品视频| 麻豆一区二区在线观看| 日韩欧美在线播放视频| 国产人妻人伦精品| 国产精品偷伦免费视频观看的| 亚洲精品成人三区| 国产欧美精品日韩| 久久久国产精品x99av| 色阁综合av| www插插插无码免费视频网站| 国产精品男女猛烈高潮激情|