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

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

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

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



SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 1
SEHH2042 Computer Programming
Individual Assignment 1
Submission deadline: 23:59, 13 Mar 2024 (Wednesday)
Expected Learning Outcomes
 Develop computer programs in one or more high level language programming environment.
 Design and develop structured and documented computer programs.
 Integrate the computer programming techniques to solve practical problems.
Introduction
This is an individual assignment. There are 2 parts:
Criteria % of marks
ShowInfo 10
Questions 1 to 3 **
You are given a C++ program template file called A1Template.cpp. You are required to insert
C++ codes into the template file according to the given instructions. The final file (your
submission) will be a complete C++ program, which can be compiled and executed
successfully and is able to satisfy all the requirements in this specification.
Instruction
 For each question, you only need to do either odd or even version based on the stated rule
about your student ID number (0 is considered as even). You do not need to write any
program codes to check the student ID number to determine the version you should do.
 To answer the questions, you need to insert codes into the functions of the template file.
E.g., to answer question 1, write your code in the scope of Q1( ). When the program is
executed, enter the question number to run the code of a particular question.
 In each question, the program should first accept input(s) from user WITHOUT printing
any prompt messages (Hint: cin statements will be used, and there is NO output messages
like “Input n: ” before the cin statements).
 You may assume that user always provides valid input. NO error input checking is needed
unless it is required by the question.
 Follow EXACTLY the requirement as stated in the questions. Check the correctness of
your code by executing it before your submission. Test your program carefully by using
input test cases as stated in the sample display, as well as other necessary test cases you can
think of. Correct output with same output format as the sample display is expected.
 Marks are awarded based on the number of test cases that your program can successfully
pass without mistakes.
SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 2
 You may include more header files and write user-defined functions to solve the questions.
E.g., you may write a user-defined function for solving question 1, and call it in the given
function Q1( ). (refer to “Using template file” on the last page)
 Apart from inserting codes as mentioned above, you are NOT allowed to modify any given
codes or the main function in the template file.
 IMPORTANT: Make sure that your submitted file CAN be opened and has NO syntax
error. It should be the source code, using .cpp as the file extension. Your submission should
NOT be other file types such as .zip or .sln.
ShowInfo (10%)
Insert your code in the showInfo function so that your personal particulars are displayed in the
following format when the program executes:
Sample display:
Name : XXX YYY ZZZ
Student ID: 23xxxxxxA
Class : B01A

SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 3
Question 1 (30%)
Write a program to calculate the total fee of booking a meeting room. The fee calculation must
take into account the duration of the meeting, the number of attendees, and apply differential
pricing for peak hours and holidays. The program should accept the following user inputs in
exact order given below:
1. Number of persons attending the meeting
2. Start time of the booking (an hour value in 24-hour format)
3. End time of the booking (an hour value in 24-hour format)
4. Whether the booking date is a holiday (a character ‘y’ or ‘n’)
5. Whether the booking is made by a student (a character ‘y’ or ‘n’)
The program then calculates and prints the final booking fee according to the charging table
and the charging rules provided below.
Charging Table (in dollars)
Room Type Fee per hour
(Odd Version)
Fee per hour
(Even Version)
Small Room, for 1 to 6 attendees 50 58
Medium Room, for 7 to 12 attendees 98 102
Large Room, for 13 attendees or above 188 198
In this question, determine you should use either the odd or even version of this question by
referring to the 4th digit of your student ID number. For example, 235**631A uses even
version.
Charging Rules
 Input for the number of persons is always positive.
 The start time and end time of the booking are always between 0 and 23, and the end time
is always larger than the start time (i.e., the minimum booking duration is one hour).
 If the booking date is a holiday, a 50% surcharge on the fee per hour is added.
 If the booking is made by a student, a 10% discount on the final fee will be applied.
 If the booking time falls between peak hours, for the booking hours during the peak hours,
a 20% surcharge on the fee per hour is added.
Peak hours for ODD version: 0800 – 1700. Peak hours for EVEN version: 0**0 – 1800.
 If the booking duration is equal to or exceeds 4 hours, a 20% discount on the final fee will
be applied.
The final fee is calculated and displayed after all user inputs are received. Its value should be
displayed formatted to two decimal places.

SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 4
Odd Version
Sample display
5
6
8
n
n
100.00
Sample display
15
10
15
y
y
1218.24
Sample display
8
15
19
n
y
310.46
Sample display
8
7
12
y
n
682.08
Sample display
12
18
22
n
n
313.60
Even Version
Sample display
5
6
8
n
n
116.00
Sample display
15
10
15
y
y
1283.04
Sample display
8
15
19
n
y
337.82
Sample display
8
7
12
y
n
685.44
Sample display
12
18
22
n
n
**6.40
IMPORTANT NOTE: You need to follow all text and order as shown in the sample display.
There should be NO prompt messages and NO additional blank lines in the output. DO NOT
add extra text in the output which will be considered as incorrect in marking.
SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 5
Question 2 (30%)
Write a C++ program that calculates and displays the future value of a retail green bond
investment at the end of an investment period. The program should ask the user for two pieces
of information in an order given below (you can assume both inputs are always positive):
1. The initial investment amount (a double value)
2. The number of months the bond is kept (an integer value)
The program computes the future value of the bond investment, based on compound interest
and a bonus for long-term investments. A 5% bonus is added to the final value of bonds held
longer than 36 months. The program should compute the future value, added with bonus if any,
of the bond investment at the end of the investment period, and print it out in the format
rounded to the nearest dollar.
Use the following formula to calculate the future value (FV) of the investment:
FV ൌ PV ∗ ሺ1൅rሻ୬
FV = Future value of the investment after n compounding periods
PV = Initial investment amount
r = Annual interest rate divided by the number of compounding periods per year
n = Total number of compounding periods
In this question, use the 5th digit of your student ID number to determine odd or even
version.
5th digit of Student ID Annual Interest Rate Interest released
Odd 3.5% Every 4 months
Even 4.5% Every 6 months
Sample display (for odd)
50000
30
54229
Sample display (for odd)
80000
42
94331
Sample display (for even)
50000
30
55884
Sample display (for even)
80000
42
98157
IMPORTANT NOTE: You need to follow all text and order as shown in the sample display.
There should be NO prompt messages and NO additional blank lines in the output. DO NOT
add extra text in the output which will be considered as incorrect in marking.

SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 6
Question 3 (30%)
Write a program that displays the patterns as shown below, according to the input size, which
determines the number of rows and columns in the pattern. You can assume the input integer
is always positive.
In this question, use the 6th digit of your student ID number to determine odd or even version.
Odd Version (odd 6th digit in student ID)
Sample display
Even Version (even 6th digit in student ID)
Sample display
More examples (Note the difference in the pattern required for an odd or even input)
Input Output (Odd Version) Output (Even Version)
IMPORTANT NOTE: You need to follow the spacing as shown in the sample display. There
is ONE blank space between adjacent asterisk (*) symbol along one line. There should be NO
prompt messages for the input size and NO additional blank lines in the output. DO NOT add
extra text in the output which will be considered as incorrect in marking.
SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 7
Submission
You are required to insert your C++ code into the given template file, and submit the final
source file to Blackboard before the deadline. Use your student name and ID as the filename:
StudentID_Name.cpp. Remove all spaces, hyphens and other non-letter characters in the
filename. The correct filename should look like: 12345678A_ChanTaiMan.cpp.
Grading
Your program (i.e. the template file with your answers) will be executed by script with different
test cases in Microsoft Visual Studio using the Release setting. The tester will execute the
program and enter the question number in “Program Selection Menu” to test a particular
question. The program will be restarted for testing each question individually.
You need to follow EXACTLY the above input and output requirements. Any deviation from
the requirement is considered as incorrect and no mark is given for that test case.
Late submission: 100% deduction. No late submission is allowed. Submit your work to
Blackboard some time ahead of the deadline. Late submissions due to slow internet speed will
not be accepted.
Syntax error: 5% - 20% deduction depends on the seriousness of the syntax error. You will
get 0 mark if your program contains too many syntax errors. Check your final source file using
Microsoft Visual Studio (not those online compliers) carefully before submission.
Runtime error: No mark for the particular test case that triggers the runtime error (e.g. infinite
loop, divide by zero, etc.).
Logic error (bug): No mark for the particular test case that deviates from the requirement.
Note that a logic error may lead to failure in ALL test cases of a question, e.g. displaying
unnecessary messages, incorrect parameter values, incorrect number format, or incorrectly
decide the odd/even version, etc.
Ensure the originality of your work. Plagiarism in any form is highly prohibited.

SEHH2042 23/24 Semester Two – Individual Assignment 1 Page 8
Using template file
If you implement the questions in separated source files, you need to copy the program codes
into the template file for assignment submission. Make sure to test the final source file (i.e.
template file with your answers) in Microsoft Visual Studio before submission.
myQuestion1.cpp
#include <iostream>
#include <iomanip>
using namespace std;
void display(int n) {
cout << "This is appendix\n";
cout << "Display a number: " << setw(5) << n;
}
int main() {
int number = 1234;
display(number);
return 0;
}
Template.cpp
// Insert more header files when necessary
#include <iostream>
#include <iomanip>
using namespace std;
void showInfo()
{
// Insert your codes to display your personal particulars here
}
// Insert your function, class (if any) for Q1() here
void display(int n) {
cout << "This is appendix\n";
cout << "Display a number: " << setw(5) << n;
}
void Q1()
{
// Insert your codes for Question 1 here
int number = 1234;
display(number);
}
// ... the rest of the template file ...
1. The header files included in your program should also be included in the template file.
2. The user-defined function / class for a question should be copied before the question.
3. The program main body, except “return 0”, should be copied to the function body of the
corresponding question.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:SEHH2042代做、代寫C++編程設(shè)計
  • 下一篇:代寫CSCI 4176、SQL程序語言代做
  • 無相關(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)站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美精品在欧美一区二区| 五月婷婷综合色| 久久999免费视频| 欧美欧美一区二区| 久久人人看视频| 在线精品日韩| 国产美女精彩久久| 国产精品美女午夜av| 日韩人妻精品一区二区三区| 91九色偷拍| 亚洲图片欧洲图片日韩av| 国产日韩av在线| 国产精品久久久久久婷婷天堂 | 岳毛多又紧做起爽| 免费黄色福利视频| 国产精品久久久久免费a∨| 欧美中文字幕在线| 久久精品99久久香蕉国产色戒 | 国产欧美中文字幕| 国产精品久久久对白| 免费中文日韩| 国产精品色午夜在线观看| 欧美在线免费视频| 久久精品国产亚洲7777| 欧美 日韩 国产在线| 国产精品成人v| 国产主播在线一区| 欧美大码xxxx| 高清在线观看免费| 亚洲a级在线播放观看| 久久久人成影片一区二区三区| 色爱区成人综合网| 国产成人精品视频ⅴa片软件竹菊| 天堂av一区二区| 久草精品在线播放| 欧美一区二区中文字幕| 国产精品视频二| 精品一区二区成人免费视频| 久久天天躁狠狠躁夜夜躁| 精品无人区一区二区三区| 欧美极品欧美精品欧美视频| 成人动漫在线观看视频| 午夜欧美不卡精品aaaaa| 久久视频免费在线| 欧美性大战久久久久xxx| 国产精品久久九九| av在线不卡一区| 欧美一区二区大胆人体摄影专业网站| 国产v片免费观看| 欧美精品久久久久久久久久久 | 91国产精品电影| 欧美自拍资源在线| 国产99在线播放| 国产对白在线播放| 欧美日韩在线成人| 国产99视频精品免视看7| 97成人在线观看视频| 欧洲日本亚洲国产区| 精品产品国产在线不卡| 91久久国产综合久久91精品网站| 日韩一二区视频| 国产精品国内视频| 68精品国产免费久久久久久婷婷| 欧美一区二区中文字幕| 一区二区三区欧美在线| 久久久久久久久久久久久国产精品| 国模视频一区二区| 日韩一区国产在线观看| 国产精品久久久久99| 久久免费观看视频| 女女同性女同一区二区三区91 | 欧美精品成人一区二区在线观看| 国产aaa免费视频| 国产黄色激情视频| 国内偷自视频区视频综合| 亚州精品天堂中文字幕| 国产精品久久国产精品| 国产福利视频一区| 国产精品中文在线| 欧美亚洲国产另类| 亚洲国产精品综合| 欧美精品在线免费观看| 日韩在线播放视频| 丰满人妻中伦妇伦精品app| 欧美一区观看| 日韩中文字幕免费在线| 欧美激情区在线播放| 按摩亚洲人久久| 91禁国产网站| 国产精品一码二码三码在线| 欧美日韩电影一区二区三区| 亚洲国产欧洲综合997久久| 国产精品第二页| www.日韩视频| 久久精品国产精品亚洲色婷婷| 国产精品中文字幕在线观看| 欧美高清一区二区| 日本免费高清一区二区| 中文字幕无码不卡免费视频| 国产精品第一区| 日韩亚洲欧美中文在线| 久久人人97超碰精品888| 国产精自产拍久久久久久蜜| 国内自拍在线观看| 欧美日韩精品在线一区二区| 日本www在线播放| 日日噜噜夜夜狠狠久久丁香五月 | 欧美激情专区| 欧美中文字幕在线观看| 日韩欧美精品在线观看视频| 亚洲va欧美va在线观看| 亚洲在线播放电影| 久国内精品在线| 伦理中文字幕亚洲| 国产精品久久久久9999爆乳 | 三区精品视频| 少妇人妻在线视频| 亚洲**2019国产| 亚洲午夜精品国产| 中日韩在线视频| 亚洲欧洲精品一区二区| 亚洲精品欧美日韩专区| 亚洲高清不卡一区| 亚洲精品视频一区二区三区| 亚洲精品免费网站| 婷婷久久青草热一区二区| 亚洲欧洲日韩综合二区| 亚洲淫片在线视频| 亚洲精品国产精品久久| 亚洲丰满在线| 日本一区二区三区四区在线观看 | 国产一区视频在线播放| 国产日本在线播放| 国产伦精品一区二区三区高清| 国产日韩精品在线| 国产欧美欧洲| 99久久激情视频| 91免费国产视频| 久久综合亚洲精品| 日韩中文字幕在线视频| 国产精品视频xxxx| 国产精品黄色影片导航在线观看| 久久夜色精品亚洲噜噜国产mv| 国产精品电影网| 一区二区三区四区国产| 午夜精品免费视频| 欧美中文字幕在线观看视频| 国产真实乱子伦| 97精品视频在线| 国产不卡一区二区三区在线观看| 九色91视频| 国产精品毛片va一区二区三区| 久久久精品在线观看| 欧美成aaa人片免费看| 亚洲视频欧美在线| 欧洲亚洲免费视频| 国产日韩精品电影| 久久人人九九| 国产精品久久久久久久久久久久冷| 色综合天天狠天天透天天伊人| 午夜精品一区二区三区在线视| 欧洲午夜精品久久久| 精品无码av无码免费专区| 91免费版看片| 国产精品视频导航| 亚洲高清精品中出| 免费看欧美黑人毛片| www黄色日本| www.日韩视频| 亚洲综合在线小说| 欧美又大粗又爽又黄大片视频| 国产日韩精品久久| 国产ts人妖一区二区三区| 国产精品果冻传媒潘| 亚洲不卡一卡2卡三卡4卡5卡精品| 欧美亚洲第一区| 99视频免费播放| 国产精品沙发午睡系列| 亚洲欧美日产图| 精品视频一区二区在线| 久久久久九九九| 久久成人亚洲精品| 欧美一级视频一区二区| 国产日本欧美在线| 日韩在线视频播放| 亚洲三级一区| 国产天堂在线播放| 日韩少妇与小伙激情| 亚洲一区二区三区在线观看视频| 欧美成ee人免费视频| 久久久国产精华液999999| 九九热精品在线| 欧美日韩亚洲第一| 久久国产精品精品国产色婷婷| 萌白酱国产一区二区| 青草青草久热精品视频在线观看 | 91精品综合视频| 精品国产乱码久久久久久88av| 日本不卡一区二区三区视频 | 久久99久久精品国产|