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

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

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

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

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久久人成影片一区二区三区| 久久久久九九九| 日韩av免费网站| 性高潮久久久久久久久| 欧美一级片在线播放| 日韩欧美精品在线不卡| 欧美激情视频一区二区三区| 蜜桃传媒视频第一区入口在线看| 国模吧无码一区二区三区| 国产一级黄色录像片| 成人免费a级片| 国产精品999视频| 色婷婷综合久久久久| 久久精品国产精品国产精品污| 色777狠狠综合秋免鲁丝| 久久精品99久久久久久久久| 欧美一区1区三区3区公司| 国产精品久久色| 不卡av在线网站| 亚洲一区二区三区香蕉| 日韩国产一级片| 国产一区二区三区色淫影院 | 中文字幕剧情在线观看一区| 亚洲一区 在线播放| 性色av香蕉一区二区| 加勒比成人在线| 美媛馆国产精品一区二区| 国产精品一区二区女厕厕| 无码aⅴ精品一区二区三区浪潮| 日av在线播放中文不卡| 国产有码在线一区二区视频 | 国内精品一区二区| 99伊人久久| 国产精品十八以下禁看| 亚洲不卡一卡2卡三卡4卡5卡精品| 秋霞久久久久久一区二区| 国产人妻互换一区二区| 国产精品999视频| 国产精品美女久久| 亚洲在线观看视频| 欧美久久在线观看| 91成人在线视频观看| 国产精品久久久久久久久电影网| 日韩一级片一区二区| 国模吧一区二区三区| 国产盗摄xxxx视频xxx69| 两个人的视频www国产精品| 日本精品www| 成人中文字幕在线观看| 国产精品美女主播| 日本久久久久久| av免费观看久久| 久久精品在线播放| 日本a级片在线观看| 99福利在线观看| 蜜臀久久99精品久久久久久宅男 | 日本午夜精品一区二区三区| 国产日产亚洲精品| 久久久999成人| 日韩av大全| 91精品视频免费观看| 国产精品第12页| 欧美亚洲国产日本| 久久久噜久噜久久综合| 亚洲一区二区中文字幕| 国产无套粉嫩白浆内谢的出处 | 国产精品男人的天堂| 热久久免费视频精品| 久久久水蜜桃| 亚洲精品成人自拍| www.浪潮av.com| 在线视频欧美一区| 国产精品一区电影| 欧美激情精品久久久久久蜜臀| 国产在线青青草| 欧美精品性视频| 国产欧美一区二区三区在线 | 欧美久久精品午夜青青大伊人| 激情视频综合网| 国产精品偷伦免费视频观看的| 日韩久久久久久久久久久久| 久久99久久99精品| 欧美一级二级三级九九九| 日韩亚洲国产中文字幕| 欧美一区二视频在线免费观看| 久久精品国产亚洲一区二区| 欧美日韩精品免费观看视一区二区| 国产福利一区二区三区在线观看| 色综合久久久久无码专区| 国产av天堂无码一区二区三区| 日本免费高清一区二区| 久久久久免费视频| 青草青草久热精品视频在线网站| 久久精品aaaaaa毛片| 日韩精品―中文字幕| 久久久久久久免费| 免费中文日韩| 国产精品福利在线观看| 91麻豆国产精品| 日韩一区二区三区在线播放| 日日噜噜噜噜夜夜爽亚洲精品| 国产成人精品免高潮费视频| 人妻夜夜添夜夜无码av| 国产精品视频一区二区三区四| 日av中文字幕| 国产一区精品视频| 日韩中文字幕久久| 欧美日产一区二区三区在线观看| 久久精品视频中文字幕| 国产在线拍偷自揄拍精品| 欧美激情一级精品国产| 97成人在线视频| 日韩小视频在线播放| 国产精品视频导航| 国产麻豆日韩| 日韩中文在线字幕| 国产精品久久久久久五月尺| www.av中文字幕| 欧美中文在线视频| 欧美激情a∨在线视频播放| 久久伊人一区| 黄色片网址在线观看| 一区二区不卡在线视频 午夜欧美不卡'| 国产精品aaaa| 免费黄色福利视频| 亚州国产精品久久久| 久久天天躁狠狠躁老女人| 国产精品一区二区久久国产 | 亚洲国产一区二区在线| 日韩视频在线免费观看| 国产日韩欧美电影在线观看| 欧美一区二区三区在线免费观看| 国产精品日韩一区二区免费视频| 草莓视频一区| 热re99久久精品国99热蜜月| 欧美激情一级二级| 久久九九热免费视频| 131美女爱做视频| 国产做受69高潮| 日本不卡一二三区| 亚洲熟妇无码一区二区三区| 国产精品爽爽爽爽爽爽在线观看| 91精品国产成人| 国产日韩精品推荐| 青青草一区二区| 视频在线99| 亚洲一区久久久| 色综合91久久精品中文字幕| zzijzzij亚洲日本成熟少妇| 91九色蝌蚪成人| 欧美日韩一区在线视频| 色之综合天天综合色天天棕色| 色综合视频一区中文字幕| 国产精品三区在线| 色噜噜狠狠狠综合曰曰曰88av| 国产精品999视频| y111111国产精品久久婷婷| 国产三级精品在线不卡| 国语自产精品视频在免费| 热久久这里只有| 日本三级中文字幕在线观看| 亚洲一区二三| 亚洲综合最新在线| 宅男噜噜99国产精品观看免费| 国产精品黄色av| 久久久久久精| 国产超级av在线| 91|九色|视频| 91精品国产成人| 99视频免费观看| 成人91免费视频| 国产伦精品一区二区三区高清 | 国产女主播自拍| 精品婷婷色一区二区三区蜜桃| 黄色影视在线观看| 日韩毛片在线免费看| 日本一区免费在线观看| 亚洲 日韩 国产第一区| 亚洲免费视频一区| 亚洲色欲久久久综合网东京热| 欧美日韩高清在线观看| 国产精品成人观看视频免费| 国产精品电影一区| 欧美乱妇40p| 精品免费国产| 精品国产免费一区二区三区| 久久成人人人人精品欧| 精品伦精品一区二区三区视频| 国产精品黄色影片导航在线观看| 国产精品国产对白熟妇| 国产精品久久精品视| 欧美成人精品在线观看| 久久天天躁狠狠躁夜夜躁2014 | 亚洲xxxx在线| 日本亚洲欧洲色α| 欧美做受777cos| 欧美二区在线视频| 国产一区精品在线| av在线不卡观看| 国产成人极品视频|