91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

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

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



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 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:SEHH2042代做、代寫C++編程設(shè)計(jì)
  • 下一篇:代寫CSCI 4176、SQL程序語言代做
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士3號(hào)線
    合肥機(jī)場巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(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號(hào)-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    国产成人激情av| 国产精品激情偷乱一区二区∴| 日韩视频免费观看高清完整版| 久久综合给合久久狠狠狠97色69| 国产精品免费网站在线观看| 亚洲国产日韩在线一区模特| 狠狠v欧美v日韩v亚洲ⅴ| 北岛玲一区二区三区四区| 中文久久精品| 欧美刺激脚交jootjob| 亚洲综合成人在线视频| 国产精品亚洲视频| 亚洲久久一区二区| 欧美猛男超大videosgay| 国产精品视频看| 日韩福利电影在线观看| 91浏览器在线视频| 欧美性一区二区| 亚洲图片另类小说| 精品亚洲国产成人av制服丝袜 | 亚洲精品在线电影| 视频一区中文字幕| 亚洲一级高清| 欧美xxxx在线观看| 免费欧美高清视频| 亚洲高清不卡一区| 日韩精品在线一区二区| 日韩电影在线观看电影| 一区二区自拍| 久久久综合视频| 免费观看在线色综合| 亚洲黄网站黄| 国产欧美日产一区| 国产91综合网| 在线视频国产一区| 一区二区三区国产精华| 欧美1区视频| 日韩欧美综合在线| 久久激情综合网| 欧美亚洲自偷自偷| 最好看的中文字幕久久| 99精品一区二区| 欧美精品v日韩精品v韩国精品v| 五月婷婷激情综合| 国产精品视频福利| 国产精品乱码妇女bbbb| 99久久精品免费观看| 91.com视频| 韩国欧美国产1区| 色婷婷av一区二区三区大白胸| 亚洲蜜臀av乱码久久精品| 欧美福利精品| 久久久国产综合精品女国产盗摄| 国产成人综合自拍| 欧美日韩国产另类不卡| 三级成人在线视频| 亚洲一区二区伦理| 亚洲宅男天堂在线观看无病毒| 亚洲欧洲日本一区二区三区| 欧美韩日一区二区三区| 欧美一区二区| 国产色一区二区| 欧美激情 亚洲a∨综合| 久久精品亚洲麻豆av一区二区| 波多野结衣精品在线| 欧美电影免费观看高清完整版在 | 久久久久久久久久久电影| www.视频一区| 久久色.com| 97se亚洲国产综合自在线不卡 | 日韩视频免费| 一区二区三区视频在线观看| 在线天堂一区av电影| 亚洲国产精品久久人人爱蜜臀| 国产精品日韩| 久久久国产精华| 国产精品成人观看视频免费| 视频一区二区中文字幕| 精品久久久久久久久久久久久久久 | 国产日韩一区二区三区在线| 香蕉影视欧美成人| 欧美日韩国产一区| 国产成人综合亚洲网站| 久久这里只有精品6| 欧美日韩在线播放一区二区| 亚洲人成网站在线| 久久裸体视频| 国产揄拍国内精品对白| 欧美成人高清电影在线| 欧美日韩一区二区三区四区在线观看 | 波多野结衣中文字幕一区二区三区| 久久久噜噜噜久久中文字幕色伊伊 | 欧美大片一区二区| 欧美亚州在线观看| 亚洲综合久久久| 欧美视频在线不卡| 91在线高清观看| 亚洲精品国产品国语在线app| 一本色道久久综合亚洲aⅴ蜜桃| 国产最新精品免费| 国产亚洲精品7777| 国产亚洲欧美一区二区| 久久99久久久久| 26uuu久久综合| 亚洲国产欧美国产综合一区 | 日韩欧美高清在线| 韩日成人在线| 日本欧美一区二区三区| 欧美变态tickle挠乳网站| 亚洲国产精品一区在线观看不卡 | 国产日韩综合av| 久久看片网站| 91天堂素人约啪| 亚洲成人免费观看| 国产一二三精品| 天天色综合天天| 亚洲人成小说网站色在线| 国产日韩精品视频一区| 日韩美女天天操| 欧美日韩美少妇| 欧美伊人久久大香线蕉综合69 | 日本亚洲电影天堂| 国产精品美女久久福利网站| 日韩欧美一二三四区| 91福利在线播放| 美女国产一区| 国产欧美精品| 99视频在线精品国自产拍免费观看| 99re在线精品| 9i看片成人免费高清| 夜夜爽av福利精品导航| 性欧美大战久久久久久久久| 久久久久久久久久久久久夜| 欧洲国内综合视频| 亚洲日本欧美| 成人一区二区三区视频在线观看| 亚洲福利国产精品| 中文字幕在线播放不卡一区| 欧美刺激脚交jootjob| 欧美中文字幕亚洲一区二区va在线| 欧美日韩在线播放一区二区| 欧洲另类一二三四区| 亚洲人久久久| 欧美69视频| 成人av资源下载| 蓝色福利精品导航| 日韩精品三区四区| 亚洲综合在线观看视频| 国产精品久久夜| 久久婷婷国产综合精品青草| 欧美高清www午色夜在线视频| 一道本成人在线| 午夜在线一区| 日韩亚洲精品在线| 欧美午夜一区二区福利视频| 99精品视频一区二区三区| 国产成人无遮挡在线视频| 免费成人小视频| 人人超碰91尤物精品国产| 一区二区三区波多野结衣在线观看| 国产视频在线观看一区二区三区| 欧美区视频在线观看| 激情综合色综合久久综合| 全部av―极品视觉盛宴亚洲| 一区二区中文视频| 日韩一级高清毛片| 91久久线看在观草草青青| 亚洲手机视频| 国模一区二区三区白浆| 青娱乐精品在线视频| 一区二区三区不卡在线观看| 亚洲国产精品av| 国产精品国产三级国产三级人妇| 日韩精品一区二区三区四区 | 欧美亚州在线观看| 精品动漫一区| 91免费版pro下载短视频| 视频一区欧美精品| 美女爽到高潮91| 五月综合激情网| 亚洲蜜臀av乱码久久精品蜜桃| 国产亚洲自拍一区| 欧美成人性福生活免费看| 欧美精品久久99| 欧美性大战久久| 91精品国产91久久久久久最新毛片| 久久精品在线| 久久精品女人天堂| 午夜亚洲性色福利视频| 欧美亚洲一区二区三区四区| 在线观看91精品国产入口| 色爱区综合激月婷婷| 91精品久久久久久久99蜜桃| 欧美性受xxxx| 欧美日本一道本在线视频| 亚洲制服少妇| 884aa四虎影成人精品一区| 欧美日韩国产色站一区二区三区| 欧美视频自拍偷拍| 久久综合中文字幕|