# Prg 410 Week 3 Assignment

Submitted By coursehomework
Words 933
Pages 4
PRG 410 WEEK 3 ASSIGNMENT

http://www.coursehomework.com/product/prg-410-week-3-assignment/

 +1 315-750-4434
 help@coursehomework.com
PRG 410 WEEK 3 ASSIGNMENT
C++ Programming I
PRG-410
Assignment#3
Problem 1: [marks 20]
Write a program that implements simple game scenario. Game has two-player or a three-player MODE.
For each MODE you have to choose among four HEROs. These are ALPHA, BRAVO, CHALIE and
DELTA. You have to design and implement proper notation for each MODE and implement them
accordingly using appropriate conditions e.g., First player is selecting ALPHA then Second Player can’t
select ALPHA.
Against each MODE ask five values for each player if:
• Ask input range is between (1-100) player will win with 10 points for one value.
• Ask input range is between (101-200) player will win with 20 points for one value.
• Ask input range is between (201-500) player will win with 50 points for one value.
Add all five values for HERO/HEROs and printout the winner of the game.

Problem 2: Rock, Paper, Scissors Game [marks 20]
Write a program that lets the user play the game of Rock, Paper, and Scissors against the computer. The
program should work as follows.
1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is
1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the
number is 3, then the computer has chosen scissors. (Don’t display the computers choice yet)
2. The user enters his or her choice of rock, paper, or scissors at the key-board. (Use a menu)
3. The computers choice is displayed.
4. A winner is selected according to the following rules:
• If one player chooses rock and the other player chooses scissors, then rockwins. (The rock
smashes the scissors.)
• If one player chooses scissors and the other player chooses…...

### Similar Documents

#### Psy 410 Week 3 Matrix

... bingeing and that they cannot stop eating until they are uncomfortably full or sick to their stomachs Depression, anxiety and/or mood instability. Tx: Psychodynamic therapy- free association, dream analysis, and analysis of the relationship with the therapist (transference) to uncover the meaning and function of eating disorder symptoms. Family therapy/interventions Cognitive therapy(p. 298). SSRI antidepressants (p. 299) Disturbance in the way in which one’s body or shape is experienced, undue influence of body weight or shape on self-evaluation, or denial of the seriousness of current low body weight. (p. 280). Self-evaluation is unduly influenced by body weight and shape. Anorexia nervosa Eat small amounts of food, may exercise excessively Restrictive type may eat normally but excessively exercise binge-eating/purging type anorexia- inducing vomiting, abusing laxatives and/or diuretics. May abuse drugs or alcohol. Bulimia nervosa- Recurrent episodes of binge eating characterized by eating an unusually large amount of food in a discrete period of time and feeling unable to stop eating or control what or how much one is eating Purging type bulimia- Recurrent inappropriate compensatory behavior in order to prevent weight gain, such as self-induced vomiting, misuse of laxatives or diuretics, fasting, enemas,......

Words: 659 - Pages: 3

#### Prg 420 Week 3 Supporting Activity 1

...There are 3 kinds of loops—for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate? Explain your answers using specific examples. For loop- The for loop is best used when the number of iterations is known. The for loop is best used to repeat the loop a fixed number of times. The Boolean-expression is tested at the beginning of the loop. The for loop has the form: for (initialization; Boolean-expression; increment) {nested statements }. A for loop can be used to show every number divisible by 3 between 1 and 60. For (int num=0; num , 60; num++) { If (num % 3 == 0) { System.out.println( “#: “ + dex); } } While loop- While loops are best used when the exiting condition has nothing to do with the number of loops. The While loop tests the Boolean-expression at the beginning of the loop. It is in the form : While (Boolean-expression) { nested statements} The while loop can be used to prompt the user until the exit variable (any negative number) is entered. while ( input > 0) { System.out.println(“Please enter number. Enter negative number to exit.”) } Do while loop- It is best to use the do while loop when the iteration must be executed at least once. The do while loop tests the Boolean-expression at the end of the loop. It has the form: do { nested statements } while (Boolean-expression); The do while loop can be used to show the same message multiple times. int tries = 3; int count =......

Words: 273 - Pages: 2

#### Cmgt 410 Week 3 Indiv.

...CMGT/410 May 16, 2013 Purpose This proposal is for the off-site training session set to begin later this year for Center Stage Dance Company. This document discusses the financial implications of the project and how these implications were estimated. Relevant facts, resources, critical task sequencing, and the project’s milestone will also be summarized in this proposal. Estimated Cost Summary Hardware will need to be provided for this training. This includes one projector screen and workstations for those that do not have a company laptop. These workstations will be rented and not purchased since each studio already has hardware that will use the new web based software. An estimated cost for the hardware rental is \$1,500. This estimate was provided by quotes obtained from Corporate Audio Visual’s website, http://www.corpav.net/. The training will require 1 trainer for each software program. Since this training session will include the new CRM software and financing/accounting software, the session will require 2 trainers. Instructor costs are estimated at \$1,543. This estimation is based on the hourly wage reported by the "Bureau of Labor Statistics, U.S. Department of Labor" (2012) website. Instructional materials will need to be provided in a hard copy and is estimated to be \$250. Travel accommodations will need to be included since most of the participants will be arriving from out of state. An estimated cost of 5,500 includes airfare, hotel, transportation...

Words: 956 - Pages: 4

#### Cmt/410 Wk 3 Individual Assignment

...TO: All Management From: Project Manager Date: 10/8/2013 Subject: SQL Server Training Project Budget It is essential that everyone on the management team understand the costs associated with the three-day training session so that a budget can be created and allocated. Some of the cost associated with this project include: Fixed Cost, Fixed Cost Accrual, Baseline, Variance, and Actual Cost. In creating a budget for the project several things must be considered such as the amount of time needed to complete the project, resource, and employee allocation. During the budget creation phase of the project we will be using Project Cost Management that will focus on the processes, procedures, and techniques to develop and manage the project budget. This will allow us to 1). Estimate costs, and focus on processes to estimate the monetary resources needed to complete the project work or activities. 2). Determine Budget by aggregating the individual cost for each of the project activities or work package components to determine the cost baseline or overall project budget. 3). Control Cost by updating the projects while monitoring the projects budget and managing any changes to the baseline plan. Once the project schedule and budget are determined, the total time and cost of each activity can be summed using a bottom-up approach to determine a target deadline and budget. The schedule and budget must, however, be reviewed and accepted by the project sponsor or client. This may...

Words: 527 - Pages: 3

#### Cmgt 410 Week 3

...Week 3 Assignment: Project Budget By: Jane Morales CMGT/410 Project Planning and Implementation Instructor: Don Beetle 3/23/2013 Memorandum To: Jim Klondike COO From: Jane Morales Date: 5/23/2013 RE: Project Budget The go ahead has been giving to move forward with the two-day offsite training for the branch managers. The memo will explain the budget expenditures for this project and break down the costs, timing, and resources needed to make this project a success. This budget will cover the cost of the trainer, accommodations, materials needed for the training, and any other monetary expenditures necessary to complete the training. A median trainer will cost \$27.33 an hour (U.S. Department of Labor), at 8 hours each of the two-day training the trainer will cost \$437.28 for the two days. The managers will be getting paid a training pay rate of \$15.00 an hour; there are a total of 16 managers attending for a total of \$3,840.00 Next the accommodations for trainer and 16 managers at the Double Tree Inn will cost \$279.00 (one room) for the trainer and \$274.00 (8 two bed rooms) for the managers who will be staying two to a room. This will run \$2,255. Then the cost of a banquet room to hold the trainings in will cost \$1,000 (special pricing), luckily the hotel has audio/video equipment that will be rolled into the cost of the rooms and banquet hall. Next the cost of airfare for those who will have to fly in (8 @ \$215 each), the rest will...

Words: 436 - Pages: 2

#### Prg/421 Java Programming Ii - Week 3

...HELPIDO.COM ------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/prg-421-week-3/#5 ------------------------------------------------------- PRG/421 Java Programming II - Week 3 ________________________________________ DISCUSSION QUESTION # 1 Think of a programming task—other than the individual or team assignments in this course—in which you would choose to use an exception handler. Write the code for the try-catch block. Explain the activity and your code. DISCUSSION QUESTION # 2 Think of a programming task—other than the individual or team assignments in this course—in which you would choose to use a data file. Write the code to read or write the file. Explain the activity and your code. DISCUSSION QUESTION # 3 What are the advantages and disadvantages of sequential and random access files? Provide an example in which a sequential file is a better choice than a random access file. Explain why. Provide an example in which a random access file is better than a sequential file. Explain why. LEARNING TEAM Create a GUI-based program to accept name of donor, name of charity, and amount of pledge from the user. Display a list of entries in a JTextArea or JTable. Submit the .java source file for this program. INDIVIDUAL ASSIGNMENT This is a two-part assignment. Part 1 Design, implement, test, and debug a program with a JFrame that allows the user to enter a...

Words: 347 - Pages: 2

#### Prg 410 Week 3 Assignment

Words: 1205 - Pages: 5

#### Prg 410 Week 6 Assignment

Words: 463 - Pages: 2

#### Prg 410 Week 5 Assignment

...PRG 410 WEEK 5 ASSIGNMENT To purchase this Click here: http://www.activitymode.com/product/prg-410-week-5-assignment/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 410 WEEK 5 ASSIGNMENT UOP C++ Programming I PRG-410 ASSIGNMENT # 4 Problem 1: Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number l Problem 2: A bank charges \$10 per month plus the following check fees for a commercial checking account: \$.10 each for fewer than 20 checks \$.08 each for 20-39 checks \$.06 each for 40-59 checks \$.04 each for 60 or more checks The bank also charges an extra \$15 if the balance of the account falls below \$400 (before any check fees are applied). Write a program that asks for the beginning balance and the number of checks written. Compute and display the bank’s service fees for the month. Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display an urgent message indicating the account is overdrawn. Problem 3: Write a program that asks the user for a positive integer value. The program should use a for loop to get the sum of all the integers from 1 up to the number entered. For example, if the user enters 50, the loop will compute the sum of 1, 2, 3, 4, ... 50. Input Validation: Do not accept a negative starting number. Write...

Words: 3528 - Pages: 15

#### Prg 410 Week 7 Assignment

...PRG 410 WEEK 7 ASSIGNMENT To purchase this Click here: http://www.activitymode.com/product/prg-410-week-7-assignment/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 410 WEEK 7 ASSIGNMENT UOP C++ Programming I PRG-410 ASSIGNMENT # 5 Problem 1: Write a program that reads a base ten integer number as input and outputs the binary representation of that number. e.g. 29 must give as output Problem 2: Write a program that populates an array elements. Total number of permutations of a list of 'n' elements is n! (n factorial), so in this case total number of permutations will be 120. If input array = [17, 22, 14, 13], its all permutat Problem 3: Write a program to display all possible permutations of the digits of a given input integer. i.e. if an input integer is 432, then it has three digits 4, 3 and 2 and number of possible permutations is 6 (= 3! ). These permutations are 4 3 2 4 2 3 3 2 4 3 4 2 2 3 4 2 4 3 You may assume that the number < 10000. Activity Mode aims to provide quality study notes and tutorials to the students of PRG 410 Week 7 Assignment in order to ace their studies. PRG 410 Week 7 Assignment Activity Mode , PRG 410 Week 7 Assignment, Home Work Tutorials, Home Work Solutions, Home Work Essay, Home Work Questions.ACC 565 Wk 7 Assignment 3, ACC403 week 2 assignment, ACC565 Week 10, ACCT 212 (Financial Accounting), ACCT 344 (Entire Course) - Devry, ACCT 344 Final Exam Latest 2014 - Devry, ACCT 346 (Managerial Accounting), ACCT 346...

Words: 918 - Pages: 4

#### Prg 410 Week 2 Assignment

Words: 1012 - Pages: 5

#### Eco 410 Wk 10 Assignment 3

...ECO 410 WK 10 ASSIGNMENT 3 To purchase this visit here: http://www.activitymode.com/product/eco-410-wk-10-assignment-3/ Contact us at: SUPPORT@ACTIVITYMODE.COM ECO 410 WK 10 ASSIGNMENT 3 ECO 410 WK 10 Assignment 3 - Financing and International Investment Decisions Research a specific multinational company and answer the questions below. Note: You may use the company you researched in Assignment 2. Write a six to eight (6-8) page paper in which you: 1. Propose at least two (2) strategies the company could implement as a way to minimize the cost of capital by raising capital globally. 2. Compare and contrast the company’s global sourcing of equity and debt financing strategies with the strategies utilized by its nearest competitor. 3. Evaluate the company’s strategy toward international diversification by illustrating both the benefits and drawbacks of this approach. 4. Analyze the company’s modes of foreign involvement. More Details hidden... Activity mode aims to provide quality study notes and tutorials to the students of ECO 410 WK 10 Assignment 3 in order to ace their studies. ECO 410 WK 10 ASSIGNMENT 3 To purchase this visit here: http://www.activitymode.com/product/eco-410-wk-10-assignment-3/ Contact us at: SUPPORT@ACTIVITYMODE.COM ECO 410 WK 10 ASSIGNMENT 3 ECO 410 WK 10 Assignment 3 - Financing and International Investment Decisions Research a specific multinational company and answer the questions below. Note: You may use the...

Words: 896 - Pages: 4

#### Acc 410 Week 3 Assignment Internal Control Case

...ACC 410 WEEK 3 ASSIGNMENT INTERNAL CONTROL CASE To purchase this visit here: http://www.nerdypupil.com/product/acc-410-week-3-assignment-internal-control-case/ Contact us at: nerdypupil@gmail.com ACC 410 WEEK 3 ASSIGNMENT INTERNAL CONTROL CASE Internal Control Case. Complete Case 18-37 (p. 724-725) and submit to instructor. For each of the following independent cases state the highest level of deficiency that you believe the circumstances represent–a control deficiency, a significant deficiency, or a material weakness Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 410 Week 3 Assignment Internal Control Case in order to ace their studies. ACC 410 WEEK 3 ASSIGNMENT INTERNAL CONTROL CASE To purchase this visit here: http://www.nerdypupil.com/product/acc-410-week-3-assignment-internal-control-case/ Contact us at: nerdypupil@gmail.com ACC 410 WEEK 3 ASSIGNMENT INTERNAL CONTROL CASE Internal Control Case. Complete Case 18-37 (p. 724-725) and submit to instructor. For each of the following independent cases state the highest level of deficiency that you believe the circumstances represent–a control deficiency, a significant deficiency, or a material weakness Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 410 Week 3 Assignment Internal Control Case in order to ace their studies. ACC 410 WEEK 3 ASSIGNMENT INTERNAL CONTROL CASE To purchase this visit here: http...

Words: 785 - Pages: 4

#### Prg Week 3 Dq2

...WEEK 3 DQ 2 PRG 211 * What are the similarities and differences between single alternative structures, dual alternative structures, and case structures? Provide an example of one of the three control structures using pseudocode. Try to provide an example that has not already been posted. Selection structures ask a question and, depending on the answer, take one of two courses of action. Then, no matter which path is followed, they continue on the next task. Structured programming is a programming paradigm aimed on improving the clarity, quality, and development time of a computer program by making extensive use of subroutines, block structures and for and while loops. A single-alternative structure is a single block of statements to be executed or skipped. When a single alternative selection structure returns the value of true, the actions on the true branch of the structure are executed. If the expression returns false, no actions are executed and the program control continues to the next executable statement structure in the program. Dual-alternative structures contain two blocks of statements, one of which is to be executed, while the other one is skipped. A case structure executes one sub diagram depending on the input value passed to the structure. Only one sub diagram is visible at a time, and the structure executes only one case at a time. Case structures easily support multiple simple conditions that have similar actions compared to if/else statements...

Words: 557 - Pages: 3

#### Acc 410 Week 5 Assignment

...1. In auditing the long-term investments account, an auditor is unable to obtain audited financial statements for an investee located in a foreign country. The auditor concludes that sufficient appropriate audit evidence regarding this investment cannot be obtained. In this situation, where the auditor cannot obtain financial statements for an investee, it would represent a scope of limitation for the auditor. F, Either a disclaimer of opinion or an "except for" qualified opinion would be used, or the auditor would have the option to use a disclaimer. The auditor would use the report modification M, which would describe the circumstances in an explanatory paragraph following the opinion paragraph, and modify the scope and opinion paragraphs. 2. Due to recurring operating losses and working capital deficiencies, an auditor has substantial doubt about an entity’s ability to continue as a going concern for a reasonable period of time. However, the financial statement disclosures concerning these matters are adequate. In this situation, where the auditor has a substantial doubt about an entity’s ability to continue as a going concern for a reasonable period of time would lead to B, an unqualified opinion. The auditor would use report modification I, Describe the circumstances in an explanatory paragraph following the opinion paragraph without modifying the three standard paragraphs. 3. A principal auditor decides to take responsibility for the work of another CPA who...

Words: 645 - Pages: 3