国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    欧美久久精品一级黑人c片| 在线视频亚洲自拍| 欧美激情极品视频| 欧美极品欧美精品欧美图片| 91国在线高清视频| 九九热精品在线| 国内外免费激情视频| 国产高清一区视频| 无码人妻精品一区二区蜜桃网站| 成人黄色av网站| 欧美日韩国产91| 国产人妻互换一区二区| 国产精品免费看一区二区三区| 日本电影一区二区三区| 成人动漫在线观看视频| 蜜月aⅴ免费一区二区三区| 国产一区二区免费在线观看| 久热国产精品视频一区二区三区| 亚洲一区二区三区精品视频| 91免费欧美精品| 亚洲国产成人不卡| 91蜜桃网站免费观看| 亚洲欧洲精品一区二区| 91av国产在线| 天天好比中文综合网| 久久亚洲免费| 日韩av在线一区二区三区| 久久久久狠狠高潮亚洲精品| 日本精品免费观看| 久久久久久久一| 欧美日韩另类丝袜其他| 国产精品久久久一区| 国产免费一区二区三区在线能观看 | 国产一区二区在线播放 | 久久久国内精品| 日韩免费毛片| 国产精品入口免费视频一 | 日韩一区免费观看| 久久久久久久午夜| 免费观看精品视频| 欧美激情网站在线观看| av无码精品一区二区三区| 午夜精品蜜臀一区二区三区免费| 久久精精品视频| 黄色国产精品一区二区三区| 精品高清视频| 91成人免费视频| 欧美在线视频导航| 欧美激情视频在线观看| 7777免费精品视频| 日本久久久a级免费| 国产精品色悠悠| 成人a级免费视频| 日韩精品一区二区在线视频| 欧美成人免费va影院高清| 91蜜桃网站免费观看| 欧美日韩一区在线观看视频| 中文字幕av久久| 久久久久久久激情视频| 国产欧美综合精品一区二区| 视频一区不卡| 欧美成年人视频网站| 91精品国产777在线观看| 欧美一区少妇| 亚洲自拍欧美色图| 久久久久久人妻一区二区三区| 国产一区二区三区高清视频| 少妇久久久久久被弄到高潮| 国产精品久久国产| 久久这里只有精品8| 国模精品视频一区二区三区| 欧美一区二区激情 | 日韩一区二区三区在线播放| 国产美女精品视频| 日韩欧美亚洲日产国产| 精品国产乱码久久久久久丨区2区| 国产成人在线一区二区| 国产女人精品视频| 欧美在线3区| 亚洲熟妇无码一区二区三区| 国产精品乱码一区二区三区| 国产成一区二区| 成人精品一二区| 蜜桃传媒一区二区三区| 日本高清视频免费在线观看| 久久99热精品这里久久精品| 久久最新资源网| 国产福利一区视频| 99久久国产免费免费| 国精产品一区一区三区有限在线| 日本欧洲国产一区二区| 在线观看福利一区| 久久亚洲春色中文字幕| 久久久久久免费看| av日韩中文字幕| 国产综合在线视频| 欧美一区免费视频| 日韩精品―中文字幕| 无码人妻丰满熟妇区96| 亚洲色欲久久久综合网东京热| 欧美成人免费一级人片100| 精品国产拍在线观看| 国产成人精品免费看在线播放| dy888夜精品国产专区| 国产日韩欧美日韩| 免费黄色福利视频| 精品日本一区二区| 秋霞在线观看一区二区三区| 日本一区二区在线视频| 一本色道婷婷久久欧美| 欧美日本亚洲视频| 国产精品高潮呻吟久久av无限| 精品久久国产精品| 日韩中文字幕亚洲| 精品国产一区二区在线| 久久久久久久久久久av| 久久99精品久久久久久久久久| 久久久亚洲国产精品| 77777亚洲午夜久久多人| 91国语精品自产拍在线观看性色| av资源站久久亚洲| 99久久久精品视频| 久久日韩精品| 国产成人一区二区| 国产成人精品免费视频| 久久久久综合一区二区三区| 久久成人福利视频| 精品国产欧美一区二区五十路| 国产成人午夜视频网址| 国产精品日韩三级| 另类美女黄大片| 一区二区三区四区不卡| 欧美激情在线一区| 亚洲精品国产精品国自产观看 | 国产欧美日韩视频一区二区三区| 国产日韩欧美视频| 成人av在线亚洲| 91精品在线观看视频| 97国产一区二区精品久久呦| 国产高清精品一区二区| 久久久久在线观看| 久久久国产一区| 久久躁日日躁aaaaxxxx| 欧美日本国产在线| 亚洲一区免费看| 日本乱人伦a精品| 男人天堂a在线| 国产乱人伦精品一区二区| 91麻豆国产精品| 久99久在线| 国产精品精品一区二区三区午夜版| 欧美激情xxxx性bbbb| 日韩av色综合| 青草热久免费精品视频| 国产综合中文字幕| 97久久天天综合色天天综合色hd| 国产成人亚洲精品无码h在线| 久久久av一区| 一区精品视频| 日韩亚洲一区在线播放| 国模吧一区二区| 91精品国产成人www| www.欧美精品一二三区| 久久97久久97精品免视看| 视频一区二区在线观看| 国内精品久久久久久久| 97精品国产97久久久久久春色| 俺也去精品视频在线观看| 久久国产精品亚洲| 日本一区二区三区在线视频| 美女一区视频| 一区二区三区久久网| 欧美精品在线第一页| 欧美第一黄网| 美女久久久久久久| 国产乱淫av片杨贵妃| 欧美一区亚洲一区| 亚洲a中文字幕| 一区不卡字幕| 亚洲国产精品www| 欧美精品在线第一页| 美女av一区二区| 国产精品国产对白熟妇| 国产精品一区二区三区毛片淫片 | 青青草原一区二区| 日韩男女性生活视频| 欧美xxxx14xxxxx性爽| 国产成人黄色av| 超碰97人人人人人蜜桃| 国内精品久久久久久| 热久久精品免费视频| 亚洲中文字幕无码av永久| 国产av国片精品| 国产精品黄视频| 国产精品免费看久久久香蕉| 久久综合免费视频| 久久电影一区二区| 久久夜色精品国产| 欧美另类99xxxxx| 亚洲精品在线免费|