首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写COMP 218、代做C++设计编程
项目预算:
开发周期:
发布时间:
要求地区:
© May not be copied or duplicated
without the permission of the owner.
COMP 218 Fundamentals of Object-Oriented
Programming
Assignment 1
Please note: you are NOT allowed to post the assignment/solution anywhere on the
Internet. Intellectual Property rights are reserved. If any similar cases are found via your
account or IP, your submission will NOT be considered and will be reported
immediately.
General Guidelines when Writing Programs:
- Include the following comments at the top of your source codes
// -----------------------------------------------------
// Assignment (include number)
// Question: (include number)
// File name: (include source code file name)
// Written by: (include your name and student id)
// -----------------------------------------------------
- In a comment, give a general explanation of what your program does. As the
programing questions get more complex, the explanations will get lengthier.
- Include comments in your program describing the main steps in your program.
- Print a welcome message which includes your name.
- Display clear prompts for users when you are expecting the user to enter data
from the keyboard.
- All output should be printed out with clear messages and in an easy to read
format.
- End your program with a closing message so that the user knows that the
program has terminated.
© May not be copied or duplicated
without the permission of the owner.
Question #1: Display a message (3 pts)
Write a complete C++ program that displays the following output exactly as in the
sample output. You are to use a single cout statement to output the message. There is
no need to declare any variables for this question.
Figure 1 – Sample output for Question 1
© May not be copied or duplicated
without the permission of the owner.
Question #2: Number Generator Program (6 pts)
In C++, we can use rand() function (More details) to generate random numbers. In the
number calculation following the requirements:
1. Display a welcome message.
2. Display the randomly generated even/odd number.
Figure 2 – Sample output #1 for Question 2
For example, if the number is 1234, change it to 4321.
For example, 1221 is a palindrome as it is the same if reversed.
For example, the largest digit is 9 and smallest is 1, in 3179.
Your program must display the same information and formatted the same.
3. Reverse the number.
4. Check if the number is a palindrome.
5. Find the smallest and largest digit in the number
question, we will generate a 4-digit random number between 1000 – 9999 and complete
Use at least one constant variable to store value in the program.
Following are 2 sample screen shots to illustrate the expected behavior of your
program.
Note:
4
© May not be copied or duplicated
without the permission of the owner.
Figure 3 – Sample output #2 for Question 2
Question #3: New Word Program (6 pts)
Your program should behave as follow:
1. Display a welcome message.
2. Ask the user to prompt 3 words with at least 1 letter.
3. Ask the user to prompt 3 numbers, that should be less than the length of each
word to indicate length of substring in each word. For example, if the word is
Ann, then the entered number should be less than 3 (the length of Ann).
5. Display the resulting new word.
6. Display a farewell message, so that the user knows that the program has
terminated normally.
Restriction: This questions requires the use of the functions: length(), substr().
Assumption: Assume a perfect user who will always enter the correct input values.
Following are two sample screen shots to illustrate the expected behavior of your
program. Your program is to work with any words entered by the user.
last n characters. Concatenate the three resulting substrings into a single
new word.
4. For each word, create a new substring by taking the first n characters and the
Write a program that prompts the user for three words.
5
© May not be copied or duplicated
without the permission of the owner.
Figure 4 – Sample output #1 for Question 3
Figure 5 – Sample output #2 for Question 3
6
© May not be copied or duplicated
without the permission of the owner.
Submitting Assignment 1
- Naming convention for zip file to submit: Create one zip file, containing all source
files (.cpp files only) for your assignment. The zip file should be called
a#_studentID, where # is the number of the assignment and studentID is your
student ID number. For example, for the first assignment, student 123456 would
submit a zip file named a1_123456.zip. (See instructions on how to zip files
which are posted in the Assessment section of the eConcordia course webpage.)
- Submit only ONE version of an assignment.
- Late assignments will be discounted by 25%. Late assignments are accepted up
to five days late (grace period) and weekends count.
Evaluation Criteria for Assignment 1 (20 pts)
Question #1
3 pts.
Question #2
6 pts.
Question #3
6 pts.
Format/clarity/completeness/accuracy
of output
1 pt. 4 pts. 2 pts.
Proper use of required C++ concepts 2 pts. 2 pts. 4 pts.
For all 3 questions of assignment 1 – 5 pts.
Comments – description of variables / description of the steps in code
/ purpose of program
2 pts.
Choice of variable names 1 pt.
Indentation and readability of program 2 pts.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写data driven business mod...
2024-11-12
代做acct1101mno introduction...
2024-11-12
代做can207 continuous and di...
2024-11-12
代做dsci 510: principles of ...
2024-11-12
代写25705 financial modellin...
2024-11-12
代做ccc8013 the process of s...
2024-11-12
代做intro to image understan...
2024-11-12
代写eco380: markets, competi...
2024-11-12
代写ems726u/p - engineering ...
2024-11-12
代写cive5975/cw1/2024 founda...
2024-11-12
代做csci235 – database syst...
2024-11-12
代做ban 5013 analytics softw...
2024-11-12
代写cs 17700 — lab 06 fall ...
2024-11-12
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!