subject

Program Description Write a program that demonstrates the skills we’ve learned throughout this quarter. This type of project offers only a few guidelines, allowing you to invest as much time and polish as you want, as long as you meet the program requirements described below. You can write a simple game (e. g., tic-tac-toe, Battleship), a simulation (e. g., a zero-dimensional energy balance model of the climate), or an application (e. g., a mortgage calculator). Your main requirement is that you demonstrate six of the following features in your software program and that you comment and document your code well:1. Functional Decomposition: Use methods (a. k.a., functions) to break up a large program into meaningful chunks, using input to and output from those functions where appropriate. 2 Looping with Repetition Control Structures: Use two of the following structures: for, while, do/while, foreach.3.Nested Loops: Use a loop within a loop in your program. Note that this is automatically accomplished when using Multi-Dimensional Arrays.4.Branching with Selection Control Structures: Use multiple (i. e., more than one) if/else and/or switch statements in your code. (You don’t need to use both kinds of statements. if/else means any kind of if/else statement.)5.File I/O: Read from or write to a file in your software. Examples of this include be reading in a preset pattern for the computer opponent’s answers in a game of rock/paper/scissors, or writing a file that logs each move the player makes, effectively recording a history of the game.6.Using Multiple Classes: Build and use more than one class in your project. Note that a class that only has a main method and does not have any instance variables or methods does not count as a "class" in this feature. Thus, if you have a driver class that only has a main method and you want credit for this feature, you need at least two other classes in addition to the driver class.7.One-dimensional arrays: Make use of a one-dimensional array in your software. If it is a partially-filled array, keep track of its current number of live elements with an int.8.Class Design using Access Modifiers: Make all class-wide instance variables private in your class, and provide "getters" and "setters" to get and set the data accordingly.9.Multi-Dimensional Arrays: Make use of an array with a dimensionality greater than one.10.Recursion: Include a recursively designed function in your software, complete with(a) the recursive step and(b) the base step. (We did not cover this in the course, but if you know how to use it and want to, I’m willing to count it as a gradable feature for this assignment.)11.:Includeamethod(s)- ing variables for the purpose of testing whether your code is working. The method(s) should be called test-something, e. g., testStatistics. Somewhere in your program, there should be a call to that method(s). In the code you submit, that call should be commented out, but I should be able to find it. A few thoughts: Don’t be intimidated by the requirements above. Reuse, reuse, reuse! Think about how you can you accomplish multiple goals simultaneously. For example, doesn’t reading input from a file accomplish both File I/O and Looping with Repetition Control Structures? If you don’t know where to start, take an example that looks interesting to you and start by adding to it. NB: The requirement to comment and document your code well is in addition to the six features you’ve chosen. (Also, there are additional grading rubrics listed on the Canvas page for the assignment, but those form a relatively small part of the assignment grade.) Finally, submit a file with your source code (put it in the same directory as your source code) where you list which six of the above features you want to be graded on. Make sure you number 2 these features from one to six; the order doesn’t matter, but I’ll use the numbering as references while grading. Make this file a plain text file and with an extension .txt.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
You know the right answer?
Program Description Write a program that demonstrates the skills we’ve learned throughout this quart...
Questions
question
Mathematics, 18.09.2019 22:30
Questions on the website: 13722361