日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        精品1区2区| 影音先锋日韩精品| 韩国一区二区三区美女美女秀| 国产精品久久久久久一区二区三区| 欧美成人午夜激情视频| 一区二区三区四区在线| 欧美日韩中文精品| 欧美—级高清免费播放| 欧美片在线观看| 亚洲欧美国产三级| 一本色道久久88亚洲综合88| 亚洲色无码播放| 一区二区三区免费网站| 午夜精品久久久久久久久久久久久| 在线观看欧美成人| 一区二区三区欧美激情| 国产视频自拍一区| 欧美一级电影久久| 国产午夜精品视频免费不卡69堂| 国产精品国产一区二区| 国产亚洲欧美一级| 国产精品素人视频| 欧美激情亚洲另类| 另类图片国产| 欧美国产91| 亚洲国产精品第一区二区三区| 欧美福利网址| 在线观看亚洲一区| 欧美一区二区三区婷婷月色| 国产精品日韩在线一区| 欧美日韩免费一区二区三区| 亚洲人在线视频| 国产精品亚洲а∨天堂免在线| 一区二区三区|亚洲午夜| 免费成人美女女| 欧美区亚洲区| 一区视频在线看| 国产精品大全| 99国产精品久久久| 欧美亚洲视频在线观看| 国产免费观看久久黄| 国产欧美日韩三区| 亚洲精品一区二区在线| 老牛国产精品一区的观看方式| 国产一区av在线| 红桃视频成人| 麻豆91精品| 亚洲欧美日韩电影| 国产精品电影在线观看| 国产精品视频男人的天堂| 久久成人在线| 国产日本欧美一区二区三区在线| 欧美人与性动交α欧美精品济南到| 国产精品日韩欧美一区二区三区| 国产一级久久| 亚洲理伦电影| 久久精品中文字幕免费mv| 欧美在线地址| 亚洲国产精品女人久久久| 亚洲国产综合91精品麻豆| 亚洲午夜高清视频| 日韩视频免费观看高清完整版| 一区视频在线播放| 国产精品人人做人人爽| 欧美精品一区在线播放| 亚洲在线一区二区| 国产精品欧美久久久久无广告| 欧美亚洲视频一区二区| 亚洲国产视频直播| 亚洲免费在线| 国产日韩av高清| 在线观看国产日韩| 国产农村妇女精品一区二区| 亚洲大胆美女视频| 国产欧美一区二区三区在线看蜜臀| 久久精品日韩| 一本大道久久a久久精二百| 国产精品一级久久久| 国产人妖伪娘一区91| 亚洲影院在线| 亚洲二区在线视频| 欧美一级免费视频| 黄色成人在线| 欧美影院精品一区| 欧美精品啪啪| 亚洲女女女同性video| 欧美成人官网二区| 亚洲三级免费电影| 亚洲欧美激情一区| 麻豆九一精品爱看视频在线观看免费| 欧美日韩日日骚| 日韩午夜电影av| 欧美日韩一级大片网址| 一区二区三区久久网| 欧美一级视频一区二区| 国内一区二区三区| 一区免费观看视频| 亚洲精品中文字幕在线观看| 欧美三日本三级少妇三99| 国产精品每日更新| 玖玖综合伊人| 欧美国产一区二区在线观看| 欧美日韩精品免费| 伊人成人在线| 亚洲一区二区三区乱码aⅴ蜜桃女| 亚洲欧美综合另类中字| 久久精品99国产精品日本| 亚洲精品资源| 亚洲日本中文字幕| 欧美一区二区三区在线免费观看| 亚洲精品视频在线观看网站| 久久天堂国产精品| 久久精品国产第一区二区三区最新章节| 9l视频自拍蝌蚪9l视频成人| 欧美伊人久久大香线蕉综合69| 美国三级日本三级久久99| 99热精品在线| 99re66热这里只有精品4| 国产欧美日韩一区二区三区在线观看| 国产精品日韩欧美综合| 激情成人亚洲| 欧美午夜精品久久久久久久| 伊人久久久大香线蕉综合直播| 欧美成人性生活| 夜夜嗨av一区二区三区四季av| 中文精品视频一区二区在线观看| 欧美日韩另类国产亚洲欧美一级| 亚洲经典视频在线观看| 欧美午夜三级| 欧美影视一区| 国产精品乱码人人做人人爱| 日韩一区二区精品葵司在线| 国产精品乱码妇女bbbb| 国内综合精品午夜久久资源| 国内视频一区| 亚洲网站视频| 尤妮丝一区二区裸体视频| 艳女tv在线观看国产一区| 亚洲精品小视频| 欧美在线播放高清精品| 国产精品卡一卡二| 久久精品国产欧美激情| 在线观看成人小视频| 久热精品视频在线观看一区| 午夜亚洲影视| 欧美高清在线精品一区| 亚洲午夜av电影| 欧美精品一区二区在线观看| 欧美特黄a级高清免费大片a级| 欧美美女喷水视频| 欧美一区二区日韩一区二区| 亚洲欧美日韩爽爽影院| 欧美日韩一视频区二区| 欧美电影在线免费观看网站| 亚洲三级电影全部在线观看高清| 欧美亚洲一区二区在线观看| 久久久女女女女999久久| 亚洲视频免费在线观看| 久久香蕉国产线看观看av| 一本色道久久加勒比88综合| 欧美巨乳波霸| 欧美一区二区三区四区在线观看地址| 亚洲肉体裸体xxxx137| 宅男66日本亚洲欧美视频|