首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导program程序、讲解Python,c++编程、Java程序辅导 调试Matlab程序|辅导留学生Prolog
项目预算:
开发周期:
发布时间:
要求地区:
NOTE! Your submitted program MUST compile and run. Any submission that does not compile will
automatically awarded a 50 marks penalty. This means it is your responsibility to continually compile
and test your code as you build it.
NOTE! Your submitted files must be correctly identified and submitted (as described above). Any
submission that does not comply will receive and automatic 20 marks penalty (applied after
marking). Your Visual Studio project should include all .cpp, .h and .txt files.
NOTE! Your tutor may ask you to program part of your assignment in class to determine that you
have completed the work yourself. Failure to do this to an acceptable level will result in you being
referred to the Subject Leader for plagiarism.
Scenario:
You have just joined a new multimedia company called CyberRoo. As a new employee, you have been tasked with
creating a text-based prototype for a new game tool the company has been asked to create by a major client called
“The Amazing RPG Character Generator”.
Your job is to demonstrate some of the basic functionality of the program, which will be further developed by the team
of programmers after your finish the prototype. To do this you will complete a series of tasks, each building upon the
previous task.
Task List:
Your project must include an application file – correctly formatted including variable and function declarations.
Create and display a menu that accesses each of the following functions of the program.
Read data from a file and display it as an information screen about the application.
Read some sample data from a file and store it appropriately.
Generate a random RPG character and display the result using the stored data.
Save a character to file, appending each new character saved, at the user’s request.
Load all saved characters from the saved file and display the contents.
Task 1: Create and Display a Menu
Your first task is to create and display a menu, just like the one
shown here. In the example, option [1] has been selected,
terminating the program.
Create a function called runMenu() and call it from the main()
function.
From this function, the user must be able to select any of the
displayed options as often as they want before ending the program.
Ensure that you validate the user’s input so that only the options
displayed can be chosen.
3
Task 2: Display an Information Screen
Your next task is to display some information about the
application, just like the one shown here.
Create a function called displayText() and call it from
the runMenu() function, when option [2] Display “About”
Information is selected.
This function must accept a filename as a parameter
(“MadAbout.txt”) then read and display the data.
You must allow the user some time to read the displayed
information before returning them to the menu.
You can copy MadAbout.txt into the appropriate folder to
read and display, instead of creating your own. However,
you may need to modify the format of the data, depending
on how you intend to import it into your program.
You may create your own information, if you wish. If you do,
keep it short!
Task 3: Read and Store Data from a File
Your next task is to read and store the Mad Lib data, from one (or
more) text files, and store this data in appropriate variables. This data
will be used to generate the randomised Mad Libs in the next task.
Create a function called createLists() and call it from the
runMenu() function, when option [3] Read and Store Data from
File is selected.
This function must accept a filename as a parameter (“*.txt”) and
successfully read and store the data. The data is to be stored in two
collection variables named madLibs, and madBits.
You can choose to read the data from a single file, storing each data
set in the different variables, OR read and store each data set with
two separate calls to the same function with different arguments OR
use another suitable method of your own devising.
You may also be required to manipulate the string data, using
appropriate string methods.
The data for the two individual collections can be found in
madBits.txt and madLib.txt (provided on Moodle), which you
can modify or change to suit your method of reading and storing
the data, instead of writing your own. You are free to write your
own data, if you wish. Remember to name and store your text
files appropriately.
The data for the mad bits is currently written so that it identifies
the types of words the user must input for its matching Mad Lib.
The Mad Libs themselves have place holders for each word,
which will be replaced by the user’s input.
WORD was WORD the WORD for their latest WORD.
a NAME, a VERB ending in ING, a plural NOUN, a NOUN
4
BoTask 4: Generate and Display a Random Mad Lib
Your next task is generating a random Mad Lib, using 3
different elements from the mad libs collection, and ask
the user to input appropriate words, using the
associated mad bits and display the result as a
concatenated or formatted string.
Add a function generateMadLib() and call it from
runMenu() function, when option [4] Generate a
Random Mad Lib is selected.
This function must return a formatted or concatenated
string using 3 randomly selected Mad Libs. The user is
asked to type in words of the specific type, using the
matching mad bits data for each selected Mad Lib.
You will need to use a number of string manipulation
techniques to achieve the desired result. Think through
the process carefully before you start to write your code.
Hint: work it out using pen and paper first using one
Mad Lib.
Ensure that the collection variables have content in
them before trying to select an element, to stop the
program from crashing.
See screen shot for an example of the required output.
Task 5: Save a Mad Lib to a File
Your next task is to save a Mad Lib to a file, called
“savedMadLibs.txt”.
In this task you must:
display the last generated Mad Lib
ask the user if they want to save it
▪ if so, add it to any existing data in the file
▪ if not, do nothing
return to the menu when the task is complete
Create a function called saveData() and call it from
the runMenu() function, when option [5] Save a Mad
Libs to file is selected.
Use the screen shot as a guide for your display and input
request. You should also inform the user when the data
is saved, before returning to the menu.
5
Task 6: Load Saved Mad Libs from a File
Your final task is loading the saved Mad Libs from the
“savedMadLibs.txt” and displaying them
appropriately.
How you achieve this is dependent upon how you
saved the data. Ideally, the display should be the same
as the way you displayed the Mad Lib when you
generated it.
Use the screen shot as a guide for your display – these
Mad Libs are being displayed in the same way as they
were originally generated.
Things you may need to consider:
Do the collection lists need to be initialised
before you display the saved data?
How have you saved the data?
▪ Did you save the random numbers for each
element type?
▪ Did you save the completed strings?
▪ Did you use another method?
How will you display the data after it is read from
the saved data file?
▪ Which method is the most efficient way to
display it?
How will you ensure that the user has time to read the output before returning to the menu?
Assignment Notes:
It is your responsibility to know what is expected of you. If you are unsure about anything, ask your tutor sooner
rather than later. Write any questions and/or notes here to help you clarify what you have to do.
Assignment 1: Marking Criteria [100 marks in total]
NOTE: Your submitted project must be correctly identified and submitted, otherwise it will receive an
automatic 20 marks penalty (applied after marking).
Does the program compile and run? Yes or No
NOTE! Your submitted program MUST compile and run. Any submission that does not compile will
receive an automatic 50 marks penalty (applied after marking).
6
1. Application Design [20]
1.1. Application File [20]
1.1.1.The main() function has appropriate function calls to keep it uncluttered [4]
1.1.2.Has all the correct #include statements [4]
1.1.3.Has the required data members and member functions using meaningful names [4]
1.1.4.Has created all function prototypes correctly [4]
1.1.5.Has created any additional functions to streamline their code [4]
2. Functionality [60]
2.1. Task 1: Menu [12]
2.1.1. The runMenu() function correctly initialises any required variables [2]
2.1.2. The menu options are clearly displayed [2]
2.1.3. Appropriate use of loop and decision structures to process user input [2]
2.1.4. Correct use of function calls when responding to user input [2]
2.1.5. The user controls when to return to the menu [2]
2.1.6. Appropriate exit [2]
2.2. Task 2: About Information [8]
2.2.1. The displayText() function uses the correct argument [2]
2.2.2. Appropriate validation checks have been made [2]
2.2.3. Appropriate use of loop and decision structures to read and display data [4]
2.3. Task 3: Reading and Storing Data [10]
2.3.1. The createLists() function uses the correct argument [2]
2.3.2. The collection variables (arrays or vectors) are correctly initialised [2]
2.3.3. Appropriate method(s) used to read the data from the file [2]
2.3.4. Appropriate use of loop and decision structures to read and store data [4]
2.4. Task 4: Generate and Display a Storyline [8]
2.4.1. The generateMadLib() function returns a string [2]
2.4.2. Validation checks that collection lists have been created [2]
2.4.3. One random data element is selected from each collection [2]
2.4.4. The returned string is correctly concatenated and/or formatted [2]
2.5. Task 5: Save Data to a File [12]
2.5.1. The saveData() function uses the correct argument(s) [4]
2.5.2. The current story line data is displayed appropriately [2]
2.5.3. The user is asked whether to save or not with an appropriate process of user input [2]
2.5.4. Appropriate validation for writing the file is in place [2]
2.5.5. The data is correctly written to the specified file [2]
2.6. Task 6: Load Data from a File [10]
2.6.1. The loadData() function uses the correct argument(s) [2]
2.6.2. Appropriate validation checks, loop and decision structures to read and display data [4]
2.6.3. Generated data is displayed using correct formatting after loading [4]
3. Quality of Solution and Code [20]
3.1. Does the program perform the functionality in an efficient and extensible manner? [4]
3.2. Has a well-designed program been implemented? [8]
3.2.1. Appropriate additional functions created to streamline code [4]
3.2.2. Demonstrates the use of logical procedures [4]
3.3. Has the Programming Style Guide been followed appropriately? [8]
3.3.1. All functions and variables have meaningful names and use correct camel notation [4]
3.3.2. Appropriate use of comments throughout the code [4]
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做 program、代写 c++设计程...
2024-12-23
comp2012j 代写、代做 java 设...
2024-12-23
代做 data 编程、代写 python/...
2024-12-23
代做en.553.413-613 applied s...
2024-12-23
代做steady-state analvsis代做...
2024-12-23
代写photo essay of a deciduo...
2024-12-23
代写gpa analyzer调试c/c++语言
2024-12-23
代做comp 330 (fall 2024): as...
2024-12-23
代写pstat 160a fall 2024 - a...
2024-12-23
代做pstat 160a: stochastic p...
2024-12-23
代做7ssgn110 environmental d...
2024-12-23
代做compsci 4039 programming...
2024-12-23
代做lab exercise 8: dictiona...
2024-12-23
热点标签
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
软件定制开发网!