99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

SEHH2042代做、代寫C++編程設計

時間:2024-03-15  來源:合肥網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 

掃一掃在手機打開當前頁
  • 上一篇:代寫COMP9315、代做SQL編程語言
  • 下一篇:SEHH2042代做、代寫C++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                五月婷婷激情综合网| 国产精品国产馆在线真实露脸| 精品国产一区二区三区久久影院| 国产精品久久久久久亚洲毛片| 精品一区二区在线观看| 欧美高清精品3d| 午夜视频在线观看一区| 91行情网站电视在线观看高清版| 国产精品网站在线观看| 不卡的电视剧免费网站有什么| 欧美激情资源网| 岛国精品在线播放| 国产午夜精品福利| 成人自拍视频在线观看| 国产欧美日韩在线视频| 成人av网站大全| 亚洲免费在线电影| 欧美伦理影视网| 亚洲国产精品久久久男人的天堂 | 在线这里只有精品| 亚洲精品中文在线影院| 色婷婷av一区二区三区之一色屋| 最新日韩av在线| 欧美在线制服丝袜| 日本不卡视频在线观看| 精品国产免费一区二区三区香蕉| 国产在线不卡视频| 亚洲欧美在线视频观看| 国产黄色成人av| 欧美成人精品二区三区99精品| 久久99国产精品尤物| 国产天堂亚洲国产碰碰| 91美女片黄在线观看| 日韩精品一区第一页| 91麻豆国产自产在线观看| 亚洲最新视频在线播放| 在线91免费看| 成人激情免费网站| 免费观看久久久4p| 亚洲欧美色图小说| 欧美sm极限捆绑bd| 国产激情视频一区二区在线观看 | 91精品国产aⅴ一区二区| 美腿丝袜亚洲一区| 国产精品久久久久毛片软件| 欧美人妇做爰xxxⅹ性高电影 | 亚洲一区视频在线| 久久久久久久久久久久久女国产乱| 成年人国产精品| 美女高潮久久久| 亚洲激情在线激情| 精品一区二区影视| 亚洲人成电影网站色mp4| 欧美精品vⅰdeose4hd| 成人av在线影院| 91精品国产免费| 国内外成人在线视频| 亚洲高清视频的网址| 久久久久久久久久久电影| 欧美日韩国产影片| 99热99精品| 国产精品久久久久久亚洲伦| 日韩精品中文字幕一区二区三区 | 亚洲欧洲精品一区二区三区| 欧美一区二区网站| 欧美系列一区二区| 中文字幕亚洲欧美在线不卡| 欧美少妇bbb| 国产一区二区在线影院| 亚洲欧美色图小说| 欧美喷潮久久久xxxxx| 色香蕉久久蜜桃| 狠狠色丁香久久婷婷综| 国产精品天干天干在线综合| 久久精品亚洲一区二区三区浴池| 日本韩国一区二区| 色婷婷久久久综合中文字幕| 成人久久视频在线观看| 久久狠狠亚洲综合| 五月开心婷婷久久| 日韩精品国产欧美| 激情文学综合插| 国产精品888| 不卡在线观看av| 91首页免费视频| 在线观看亚洲一区| 99久久精品费精品国产一区二区| 国产自产高清不卡| 国产成a人无v码亚洲福利| 国产不卡视频在线观看| 99这里只有精品| 欧美性大战久久久久久久蜜臀| 欧美调教femdomvk| 日韩一区二区三区视频在线| 久久综合狠狠综合久久激情 | 7777精品伊人久久久大香线蕉 | 国产亚洲福利社区一区| 久久九九久精品国产免费直播| 91麻豆精品国产91| 欧美午夜在线观看| 日韩一级片在线播放| 久久久久久久久97黄色工厂| 自拍偷自拍亚洲精品播放| 亚洲自拍偷拍麻豆| 青青草伊人久久| 风间由美中文字幕在线看视频国产欧美| 99久久免费视频.com| 欧美高清一级片在线| 久久网这里都是精品| 亚洲精品综合在线| 狠狠色综合日日| 欧美一区二区三区的| 亚洲mv大片欧洲mv大片精品| 波多野结衣中文一区| 欧美一区二区性放荡片| 亚洲曰韩产成在线| 国产黄色成人av| 欧美一区二区三区视频在线观看| 国产三级三级三级精品8ⅰ区| 亚洲妇熟xx妇色黄| 波多野结衣欧美| 精品欧美乱码久久久久久1区2区 | 一区二区三区在线免费播放 | 日日夜夜精品免费视频| 亚洲一级片在线观看| 欧美在线观看视频在线| 国产精品久久久久久久久晋中| 欧美乱妇23p| 一区二区三区四区不卡在线| 激情五月婷婷综合网| 欧美精品亚洲一区二区在线播放| 国产精品美女久久久久aⅴ| 国产成人精品一区二| 精品国产乱码久久久久久久| 国产在线观看免费一区| 日韩一区二区免费高清| 午夜精品在线看| 欧美性受极品xxxx喷水| 日韩经典中文字幕一区| 欧美探花视频资源| 精品国产免费人成电影在线观看四季 | 成年人国产精品| 欧美videofree性高清杂交| 亚洲一级二级在线| 在线精品视频免费观看| 中文子幕无线码一区tr| 福利一区二区在线| 国产日韩欧美不卡在线| 国产一区二区三区免费看| 日韩精品一区二区三区中文精品| 日本最新不卡在线| 91精品国产色综合久久ai换脸| 极品销魂美女一区二区三区| 日韩视频免费观看高清完整版| 国产一区二区导航在线播放| 中文字幕一区二区三中文字幕| 成人精品一区二区三区中文字幕| 中文字幕在线不卡| 欧美在线你懂得| 亚洲国产视频一区二区| 高潮精品一区videoshd| 亚洲午夜久久久久久久久电影网| 在线观看国产一区二区| 日韩精品色哟哟| 久久久精品中文字幕麻豆发布| 国产精品中文字幕欧美| 亚洲欧洲99久久| 成人av在线一区二区| 免费视频最近日韩| 欧美激情一区二区三区不卡| 99re这里只有精品首页| 亚洲成人第一页| 久久久久国产精品免费免费搜索| 成人av网址在线| 亚洲一二三四在线观看| 欧美mv和日韩mv的网站| 国产精品91一区二区| 亚洲图片一区二区| 欧美va亚洲va在线观看蝴蝶网| 不卡区在线中文字幕| 一区二区三区四区不卡在线| 日韩一区二区视频| 97久久精品人人澡人人爽| 中文字幕在线观看不卡视频| 国产日韩精品一区二区三区在线| 色香蕉久久蜜桃| 国产精品影音先锋| 亚洲高清中文字幕| 亚洲国产成人在线| 91精品国产乱码久久蜜臀| 丝袜美腿亚洲色图| 久久久亚洲精品一区二区三区| 色哟哟欧美精品| 国产精品私房写真福利视频| 欧美三区免费完整视频在线观看| 国产精选一区二区三区| 午夜影院久久久| 亚洲欧美日韩久久精品| 久久免费精品国产久精品久久久久| 一区二区三区在线播放|