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

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

SEHS2042代做、代寫C++設(shè)計編程
SEHS2042代做、代寫C++設(shè)計編程

時間:2024-12-04  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



SEHH/SEHS2042 24-25 Semester One – Group Project 1 
 
SEHH/SEHS2042 Computer Programming 
Group Project – AI Service Token Management System 
(Due: 23:59, 1 Dec 2024, Sunday) 
 
Expected Learning Outcomes 
 
 develop computer programs in one or more high level language programming environment; 
 design and develop structured and documented computer programs; 
 explain the fundamentals of object-oriented programming and apply it in computer program 
development; 
 integrate the computer programming techniques to solve practical problems. 
 
Introduction 
 
In this assignment, you are going to develop an “AI Service Token Management System” that runs 
in the command line environment. The system maintains user records and manages the use of 
tokens by a user which can be used to pay for various web-based AI services. The system allows 
users to check their token balance and update their token balance upon purchasing new tokens or 
using a particular AI service. 
 
Tasks 
 
 Each group is required to write a Win** Console Application program called TMS.cpp. 
 Each student is required to submit a video recording (at most 2-minute long) to demonstrate 
his/her individual contribution in the group project. 
 Each student is required to submit a Peer-to-Peer evaluation form (through the given Word file) 
via Blackboard. 
 
Program Requirements 
 
R0 When the program starts, the console should display a welcome message, followed by the 
Main Menu of the program. Users can enter the options of the corresponding actions (see 
R1 to R6 below). 
 
Welcome Message designed by your group 
*** Main Menu *** 
[1] Load Starting Data 
[2] Show User Records 
[3] Edit Users 
[4] Enter User View SEHH/SEHS2042 24-25 Semester One – Group Project 2 
 
[5] Show System Usage Summary 
[6] Credits and Exit 
***************** 
Option (1 - 6): 
 
R1 [1] Load Starting Data 
 
 When the user inputs 1 in the Main Menu, the system is loaded with starting data. The 
starting data includes user records as shown in R1.1 below. After the starting data is loaded, 
the system returns to the Main Menu. 
 
R1.1 The starting data to be loaded, together with the required data format of the data fields, are 
described below. 
 
 User records 
 
User ID Type Token Balance Auto Top-up 
SkyWalker T 20 N
Ocean123 T 35 N
Forest99 T 6 Y
Valley777 F 10 Y
Desert2022 F 25 N
River456 F 20 Y
Blaze2023 F 100 N
Meadow888 S 40 Y
Galaxy S 15 Y
Storm2024 S 30 N
 
 Data format of each field: 
 User ID: A string that uniquely identifies a user in the system (assume at most 50 
characters long); it is case-sensitive. You can assume it does not contain white space. 
 Type: A character (T, F or S) that represents the account type. Different restrictions 
about using the AI services, and different charging policies are used for different 
account types. See requirement R7 for details. 
 
Type (character) Rank (description) 
T Trial Account
F Full Account
S Student Account
 
 Token Balance: The token balance owned by the user. SEHH/SEHS2042 24-25 Semester One – Group Project 3 
 
 Auto Top-up: A character (Y or N) to indicate whether extra tokens would be 
purchased automatically if the token balance is not enough for a particular AI service. 
 
R1.2 Options 2 to 5 in the Main Menu are enabled only after the system is loaded with the 
starting data. If the user enters options 2 to 5 before starting data is loaded, an error message 
should be shown, and then the system returns to the Main Menu. 
 
R2 [2] Show User Records 
 
 [After the starting data is loaded] When the user inputs 2 in the Main Menu, the system 
displays all the fields of all user records. A tabular format should be displayed, and the 
records are sorted in alphabetical order based on the ID values. Data shown should be 
the latest set of data since the starting data is loaded (updates on the user records resulted 
by the operations under options 3 or 4 in the Main Menu should be included). After 
showing the records, the system returns to the Main Menu. 
 
R3 [3] Edit Users 
 
[After the starting data is loaded] When the user inputs 3 in the Main Menu, the system 
prompts for the next user input of a User ID. If such User ID does not exist in the system, 
it is an add user operation. Otherwise, it is a delete user operation. 
 
You can assume the system will store at most 100 user records. 
 
Add user 
The system asks the user to input the information of the remaining three fields: (1) Type, 
(2) Token Balance, and (3) Auto Top-up. After getting all user inputs, the new user should 
be added into the system. For any invalid inputs (e.g., wrong field values, incorrect range 
for token balance, etc.), the system allows TWO more retries. With more than THREE 
times of invalid inputs, no user is added. The system prints an appropriate error message 
and returns to the Main Menu. 
 
Delete customer 
The system displays the information of the user (including all the fields), and prompts for 
user’s “Yes/No” confirmation on the delete operation. The user record is deleted from the 
system if it is confirmed. 
 
A message showing the summary of the above operation is then displayed, and the system 
returns to the Main Menu. 
 SEHH/SEHS2042 24-25 Semester One – Group Project 4 
 
R4 [4] Enter User View 
 
[After the starting data is loaded] When the user inputs 4 in the Main Menu, the system 
prompts for the next user input of a User ID. If such User ID does not exist in the system, 
the system displays an error message and returns to the Main Menu. Otherwise, it displays 
the User View Menu as shown below and allows further processing on the particular user 
(e.g., River456) as follows (see R4.1 to R4.4 below). 
 
Action for User ID: River456 
***** User View Menu ***** 
[1] Select AI Service 
[2] Purchase Tokens 
[3] Edit Profile 
[4] Show Transaction History 
[5] Return to Main Menu 
************************** 
Option (1 - 5): 
 
R4.1 [1] Select AI Service (Also refer to requirement R7 about the AI services) 
 
 When such option is chosen, the system shows the list of available AI services and asks 
user for the choice. After the choice input, the system accepts subsequent user inputs 
associated with the chosen AI service. If all user inputs are valid, the AI service is allowed 
for that user, and the user’s token balance is enough for paying the AI service, the user’s 
token balance will be updated accordingly. 
 
 The user can still use the AI service with “less-than-required” tokens in his balance if the 
“Auto Top-up” option is enabled for the user account. If so, the system should additionally 
display the extra money that has been paid for buying the extra tokens, and the user’s final 
token balance. The auto top-up amount should be in a multiple of $20, which buys 
minimum extra tokens that are enough for the AI service. 
 
 The AI service will not be paid if it is not allowed for that user, if there is any invalid user 
input, or if the user’s token balance is insufficient with “Auto Top-up” option disabled. In 
such siutation, no change in the token balance will be made. 
 
 For all the above cases, the system should print a meaningful message about the situation, 
print the change in user’s token balance as a result, and return to the User View Menu. 
 
 
 SEHH/SEHS2042 24-25 Semester One – Group Project 5 
 
R4.2 [2] Purchase Tokens 
 
 Each token costs $2. When such option is chosen, the system prompts for user input of an 
even integer value, which is the amount of money to spend for purchasing tokens. The 
system then calculates and adds the tokens into the token balance for the user. For any 
invalid input, no tokens should be purchased. 
 
R4.3 [3] Edit Profile 
 
 When such option is chosen, the system allows users to make changes to either the 
“Account Type” or the “Auto Top-up” setting. User is allowed to choose which fields he 
wants to update, and to input the new field value. The user’s profile should be updated 
afterwards, if user inputs are valid. 
 
 For any invalid input, the system allows TWO more retries. With more than THREE 
rounds of invalid inputs, the system prints an appropriate error message and returns to the 
User View Menu. 
 
R4.4 [4] Show Transaction History 
 
 When such option is chosen, the system displays all token transaction records history for 
the particular user since the program starts running: 
 
**3; All kinds of tokens transactions under R4.1 and R4.2 should be considered and 
displayed. 
**3; The transaction records should be displayed in the order that they were carried out. 
**3; For token transactions under R4.1 (paying for an AI service), both the number of tokens 
spent and the name of the AI service being used should be displayed. If there is an “auto 
top-up” action, the extra money paid for buying the extra tokens should be displayed 
too. 
**3; For token transactions under R4.2 (purchasing tokens), both the number of tokens 
purchased and the amount of money spent should be displayed. 
**3; At the end, a summary showing the original token balance, the final token balance, the 
change in token balance, and the TOTAL amount of money paid for buying tokens 
(including those used under “auto top-up”) should be displayed. 
**3; A meaningful message should be shown if there have been no transactions made so far 
for the user. 
 
 After displaying the transaction history, the system returns to the User View Menu. 
 SEHH/SEHS2042 24-25 Semester One – Group Project 6 
 
R4.5 [5] Return to Main Menu 
 
 When such option is chosen, the system returns to the Main Menu. 
 
R4.6 Stay at the User View Menu 
 
 Following R4.1, R4.2 and R4.3, after an operation for a user, the system should display the 
change (the original and the new values) in the token balance or the profile of the user by 
that operation, and then stays at the User View Menu. 
 
R5 [5] Show System Usage Summary 
 
[After the starting data is loaded] When the user inputs 5 in the Main Menu, the system 
displays the usage summary of the system since the program starts running. The summary 
includes: (1) the number of tokens spent on each of the AI service by all users, (2) the total 
number of tokens spent on all AI services by all users, and (3) the total amount of money 
paid for buying tokens (including those used under “auto top-up”) by all users. 
 
After displaying the system usage summary, the system returns to the Main Menu. 
 
R6 [6] Credits and Exit 
 
 When the user inputs this option, the system prompts for user’s confirmation. If the user 
inputs ‘n’ or ‘N’, the system returns to the Main Menu. If the user inputs ‘y’ or ‘Y’, the 
system displays the personal particulars (student name, student ID, tutorial group) of the 
group members and terminates. Other input is not acceptable and the system should ask 
the user to confirm again. 
 
R7 Description about AI services 
 
 A user can select an AI service and pay for it using tokens under R4. Each token costs $2. 
There are four AI services. Charges of different AI services are put down below, which 
also takes the user type into consideration: 
 
 (1) Image Recognition 
Charging Model: Based on image size 
Image Size Charges (per image) 
Trial Account Full Account Student Account
Under 3 MB 5 tokens 5 tokens 4 tokens 
Over 3 MB Not allowed 8 tokens 7 tokens 
 SEHH/SEHS2042 24-25 Semester One – Group Project 7 
 
(2) Speech-to-text transcription 
Charging Model: Based on the length of the speech audio file 
(same charge for all user types) 
Length of Audio Charges (per minute) 
The first 3 minutes 2 tokens
After 3 minutes 3 tokens
 
 (3) Predictive Analysis 
Charging Model: 10 tokens per prediction task (same charge for all user types) 
 
 (4) Natural Language Processing (NLP) 
Charging Model: Based on length of text for NLP, 1 token for every 500 characters 
(e.g., a **0-character text needs 2 tokens) 
Note: For trial account, the length of text should not exceed 2500 characters. If so, the 
AI service should not be used. 
 
 As a result, for each AI service, the required user inputs for charge calculation are: 
AI Service Required user inputs for charge 
calculation 
(1) Image Recognition Size of the image (in MB) 
(2) Speech-to-text transcription Length of speech audio file (in minutes)
(3) Predictive Analysis Number of prediction tasks 
(4) Natural Language Processing (NLP) Number of characters in the text 
 
R8 Suitable checking on user’s input is expected, except in situations with assumptions stated 
in the requirements above. Appropriate error messages should be printed whenever 
unexpected situation happens, e.g., input value out of range, incorrect character input, etc. 
 
R9 The use of functions (in addition to main function) and classes (i.e., OOP design) are 
expected in your program. Appropriate comments should be added in your source code file. 
 
R10 Creativity and Critical Thinking: Use suitable format to present all required information of 
users and AI services clearly and neatly. Additional features can be added. 
 
Tips 
 
1. To handle unexpected input error (e.g. input a character to an integer variable), you may use 
the following code appropriately in your program: 
cin.ignore(); // Discard the content in the input sequence. 
cin.clear(); // Reset the input error status to no error. 
 
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當(dāng)前頁
  • 上一篇:COMP09110代做、代寫Python程序設(shè)計
  • 下一篇:菲律賓快速移民的辦法是什么(辦理流程)
  • 無相關(guān)信息
    合肥生活資訊

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

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久精品这里热有精品| 久久av免费观看| 国产日韩一区二区在线观看| 91精品久久久久久久久中文字幕| 久热精品视频在线| 精品九九九九| 日本一区免费在线观看| 国产男人精品视频| 播播国产欧美激情| 欧美一级视频在线播放| 国产欧美日韩小视频| 国产精品视频白浆免费视频| 熟女少妇在线视频播放| 国产精品最新在线观看| 国产精品丝袜高跟| 无码人妻精品一区二区蜜桃百度 | 精品国产乱码久久久久| 奇米成人av国产一区二区三区| 99久久国产综合精品五月天喷水| 精品国产乱码久久久久| 国内精品二区| 久久久精品久久| 日韩国产精品一区二区| 99精品一级欧美片免费播放| 精品丰满人妻无套内射| 国自在线精品视频| 精品久久久91| 欧美性大战久久久久xxx| 国产成人综合久久| 中文字幕人成一区| 国产呦系列欧美呦日韩呦| 色天天综合狠狠色| 日韩欧美一区三区| 九色综合日本| 人人妻人人澡人人爽欧美一区| 国产激情综合五月久久| 色综合久久av| 7777免费精品视频| 色噜噜狠狠一区二区三区| 久久人人九九| 日本aa在线观看| 久久久久久久久综合| 日本不卡在线播放| 久久网站免费视频| 亚洲第一精品区| 97成人在线免费视频| 亚洲mm色国产网站| 91精品国产成人www| 亚洲aa中文字幕| 久章草在线视频| 日韩精品另类天天更新| 久久久久久久久久码影片| 日本一级淫片演员| 日日骚久久av| 黄色片免费在线观看视频| 国产精品成人观看视频国产奇米 | 日本一区视频在线观看| 久久精品一区二| 奇米影视亚洲狠狠色| 国产精品日韩一区| 国产伦精品一区二区三区视频孕妇 | 久久黄色免费看| 青青在线视频免费| 北条麻妃在线一区二区| 男人天堂新网址| 国产99视频精品免视看7| 99久久无色码| 日本亚洲欧美成人| 国产精品无码av无码| 免费久久99精品国产自| 精品不卡一区二区三区| 99久热re在线精品视频| 日韩国产欧美亚洲| 久久国产精品99国产精| 91久久久久久| 欧洲美女7788成人免费视频| 国产精品久久久久7777| αv一区二区三区| 日本高清不卡在线| 国产精品成人播放| 91国产一区在线| 欧美激情国产精品日韩| 久久久久久国产精品三级玉女聊斋 | 久久久久久久91| 国产一区二区四区| 午夜精品久久久久久99热软件| 视频在线一区二区| 国产欧美在线一区| 在线观看一区欧美| 久久久久久久影院| 国产精品一区二区三区观看| 青青草成人免费在线视频| 在线观看福利一区| 久久精品视频中文字幕| aaa免费在线观看| 欧美精品久久久久久久久久久| 在线亚洲美日韩| 日韩综合中文字幕| 国产精品一香蕉国产线看观看| 亚洲a成v人在线观看| 国产精品免费久久久久影院| 69精品小视频| 国产在线一区二区三区播放| 午夜啪啪免费视频| 久久香蕉频线观| 久久99精品久久久久久秒播放器 | 国产精品久久久久久久久久ktv| www.中文字幕在线| 国内视频一区二区| 日本午夜精品一区二区三区| 欧美人与性动交| 久久精品视频在线观看| 国产精品91久久久久久| 国产欧美日韩亚洲| 人妻夜夜添夜夜无码av| 亚洲精品日韩在线观看| 国产精品网红福利| 久久免费观看视频| 不卡视频一区二区三区| 免费看欧美一级片| 欧美日韩免费观看一区| 日韩av电影在线网| 亚洲砖区区免费| 欧美精品生活片| 国产精品久久久久久久久免费看| 久久久久久噜噜噜久久久精品| 高清国语自产拍免费一区二区三区 | 欧美激情亚洲另类| 久久精品在线视频| 久久av一区二区三区亚洲| 国产精品一色哟哟| 激情综合网婷婷| 精品视频一区二区在线| 精品一区二区三区毛片| 国产在线98福利播放视频| 国产伦精品一区二区三区四区免费 | 久久精品国产亚洲7777| 国产精品看片资源| 久热精品视频在线观看| 欧美激情视频网站| 一区二区精品在线| 日本最新高清不卡中文字幕| 欧美视频在线观看视频| 蜜臀av.com| 成人av播放| 国产成人精品视| 按摩亚洲人久久| 久久夜色精品国产欧美乱| 亚洲熟妇av日韩熟妇在线| 日本网站免费在线观看| 欧美不卡福利| 国产视频一区二区三区四区| 91精品国产91久久久久久不卡| 久久av喷吹av高潮av| 国产精品免费久久久| 欧美成人亚洲成人| 亚洲欧洲在线一区| 人妻无码一区二区三区四区| 激情成人开心网| 99视频在线| 精品国偷自产在线视频| 久久久久久91香蕉国产| 日韩免费不卡av| 国产日本欧美在线观看| 国产www免费| 免费97视频在线精品国自产拍| 亚洲一区二区三区毛片| 欧美影院在线播放| 成人久久18免费网站漫画| 国产mv久久久| 欧美精品一区二区三区国产精品| 午夜精品蜜臀一区二区三区免费| 欧美日韩精品免费看| 99热久久这里只有精品| 国产精品无码一区二区在线| 亚洲一区二区三区视频播放| 精品人妻一区二区三区四区在线| 成人av.网址在线网站| 国产精品私拍pans大尺度在线| 亚洲精品欧美一区二区三区| 黄色一级片国产| 国产成人精品电影久久久| 久久69精品久久久久久久电影好| 欧美一区1区三区3区公司| 国产肉体ⅹxxx137大胆| 久久精品日产第一区二区三区| 精品国产中文字幕| 日韩精品av一区二区三区| 超碰97在线播放| 国产精品国产亚洲精品看不卡 | 久久久亚洲网站| 欧美成人性色生活仑片| 青青在线视频免费观看| 91免费版看片| 精品高清视频| 欧美xxxx黑人又粗又长精品| 国产高清免费在线| 中文字幕黄色大片| 精品一区二区三区自拍图片区| 国产精品69精品一区二区三区|