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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产午夜精品理论片a级大结局| 久久久久久穴| 红桃视频一区| 欧美sm视频| 亚洲综合国产| 亚洲日本视频| 国产一区自拍视频| 欧美精品自拍| 久久中文精品| 久久成人精品电影| 一区二区三区产品免费精品久久75 | 日韩视频免费在线| 国产日韩欧美成人| 欧美大片91| 久久成人免费电影| 亚洲天堂网在线观看| 伊人色综合久久天天五月婷| 国产精品一区二区三区四区| 欧美日韩和欧美的一区二区| 免费日韩av| 久久综合免费视频影院| 午夜亚洲性色福利视频| 亚洲视频一二| 夜夜狂射影院欧美极品| 亚洲激情专区| 1769国内精品视频在线播放| 狠狠色狠狠色综合日日91app| 国产精品日韩一区二区| 国产精品电影在线观看| 欧美日韩视频第一区| 欧美a级片网| 久久躁日日躁aaaaxxxx| 久久国内精品视频| 欧美一区不卡| 欧美一区二区视频免费观看| 亚洲欧美精品在线观看| 亚洲一区二区精品在线| 亚洲欧美国产日韩天堂区| 亚洲一区二区三区视频播放| 亚洲一区免费在线观看| 亚洲欧美成人网| 亚洲欧美日韩国产综合在线| 亚洲一区二区三区四区视频| 亚洲欧美一区二区三区极速播放 | 国产精品视频精品| 国产精品久久久久久久7电影| 国产精品大片| 国产欧美日韩免费| 今天的高清视频免费播放成人| 激情综合自拍| 亚洲电影免费观看高清完整版在线观看 | 亚洲视频专区在线| 一区二区三区三区在线| 亚洲制服少妇| 久久精品99久久香蕉国产色戒| 久久一日本道色综合久久| 裸体丰满少妇做受久久99精品 | 国产精品一区免费观看| 国产一区二区剧情av在线| 亚洲国产精品一区二区尤物区| 亚洲国产91色在线| 一本色道久久加勒比精品| 亚洲欧美bt| 乱码第一页成人| 欧美三级乱码| 激情久久婷婷| 亚洲午夜伦理| 欧美大片网址| 国产亚洲欧美日韩在线一区| 亚洲国内在线| 亚洲欧美乱综合| 欧美电影免费观看大全| 国产精品外国| 日韩一级裸体免费视频| 欧美一区二区成人6969| 欧美丰满少妇xxxbbb| 国产精品色婷婷| 日韩午夜在线观看视频| 久久国产精品电影| 欧美日韩国产一级片| 国产日韩专区在线| 99视频在线精品国自产拍免费观看 | 国产欧美精品日韩精品| 亚洲清纯自拍| 久久久久久综合| 国产精品久久久久免费a∨| 亚洲福利专区| 欧美一区免费视频| 国产精品xnxxcom| 最新亚洲电影| 久久野战av| 激情成人中文字幕| 性色av一区二区怡红| 欧美性事免费在线观看| 亚洲国产日韩欧美在线动漫| 先锋影音久久| 国产欧美日韩精品一区| 亚洲伊人观看| 国产精品xvideos88| 这里只有精品视频在线| 欧美日韩国产综合视频在线观看| 亚洲黄色影片| 欧美黑人在线播放| 亚洲黄色尤物视频| 久久视频免费观看| 狠狠色丁香久久婷婷综合_中| 欧美一级精品大片| 国产一区二区久久精品| 久久精品亚洲一区二区| 国产日韩欧美一区在线| 欧美在线91| 一色屋精品视频免费看| 久久夜色精品国产欧美乱| 国产在线视频不卡二| 久久午夜影视| 亚洲精品久久视频| 欧美日韩一区在线观看视频| 一区二区三区三区在线| 欧美性大战久久久久久久| 亚洲一区二区综合| 国产欧美在线观看| 久久久久国产精品麻豆ai换脸| 激情成人综合网| 欧美日韩1234| 香蕉尹人综合在线观看| 国内一区二区在线视频观看| 欧美成人乱码一区二区三区| av72成人在线| 国产中文一区二区三区| 欧美精品电影| 亚洲欧美综合一区| 亚洲国产精品成人精品| 欧美性一二三区| 久久精品中文字幕一区二区三区| 亚洲激情社区| 国产噜噜噜噜噜久久久久久久久| 久久精品30| 一本久道久久久| 国产一区二区福利| 欧美日韩精品免费观看视一区二区| 亚洲婷婷综合久久一本伊一区| 国产色综合网| 欧美精品乱码久久久久久按摩| 亚洲综合成人婷婷小说| 永久免费视频成人| 国产精品久久久久天堂| 玖玖玖国产精品| 午夜综合激情| 99精品视频免费观看视频| 国产中文一区| 国产精品都在这里| 欧美成人免费全部观看天天性色| 亚洲午夜精品17c| 亚洲国产精品一区二区三区| 国产日韩一区欧美| 国产精品a久久久久| 欧美福利电影网| 久久久水蜜桃| 久久www免费人成看片高清 | 欧美日韩一区二区三区在线观看免| 久久久最新网址| 欧美一区二区三区视频在线| 亚洲午夜激情网站| 亚洲理论电影网| 亚洲国产高潮在线观看| 国产亚洲精品综合一区91| 国产精品男人爽免费视频1| 欧美色123| 欧美视频在线观看免费| 欧美日韩精品一区| 欧美日本亚洲视频| 欧美激情中文字幕一区二区| 欧美成人福利视频| 麻豆视频一区二区| 女同性一区二区三区人了人一| 美女福利精品视频| 麻豆9191精品国产| 免费亚洲一区二区| 美女成人午夜| 免费成人av在线| 欧美成人黑人xx视频免费观看| 狼人天天伊人久久| 久久午夜羞羞影院免费观看| 毛片基地黄久久久久久天堂| 六月天综合网| 欧美 日韩 国产一区二区在线视频| 欧美va亚洲va日韩∨a综合色| 毛片精品免费在线观看| 欧美日本中文| 国产精品视频午夜| 国产欧美丝祙| 尤物精品在线| 日韩亚洲欧美综合| 亚洲欧美日韩一区二区三区在线观看 | 亚洲欧美日韩在线一区| 欧美一区国产二区| 毛片基地黄久久久久久天堂| 欧美激情一区二区三级高清视频| 欧美日韩国产123| 国产欧美日韩亚洲精品|