Submitted By coursehomework

Words 933

Pages 4

Words 933

Pages 4

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

Contact us at:

+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…...

...PRG 410 WEEK 2 ASSIGNMENT http://www.coursehomework.com/product/prg-410-week-2-assignment/ Contact us at: +1 315-750-4434 help@coursehomework.com PRG 410 WEEK 2 ASSIGNMENT C++ Programming I PRG-410 Assignment # 1 & 2 Problem 01 (20 Marks) (Basic Input Output, Arithmetic Operators) Write a C++ program, which can calculate Slope of a line ‘m’, by using formula. Ask from user values of y, x and b. You program calculate and print value of m. Problem 02 (50 Marks) (Basic Input Output, Arithmetic Operators) ‘math.h’ is a library, which contains different mathematical functions like cos, sin, tan, raise to power. You have to write a program, which can calculate following functions. Every equation has left side and right side. Your program must calculate both sides of following equation. Problem 03 (30 Marks) (Basic I/O, Nested If/Else) Design a calculator that performs 4 basic operations (add, subtract, divide and multiply). When your program executes, it should ask the user to enter a simple expression of the format; Operand1 Operator Operand2 e.g: 3 + 5, 7 / 5, 8 * 9, 10 - 4 You should use the data type ‘int’ for operands and the data type ‘char’ for the operator symbol. Your program should check the value of character variable using selection statement (if/else) and perform the operation accordingly. If user inputs “+” in character variable, you will add two numbers and do same for rest of the operations. The output of your program must appear...

Words: 589 - Pages: 3

...PRG 410 WEEK 5 ASSIGNMENT http://www.coursehomework.com/product/prg-410-week-5-assignment/ Contact us at: +1 315-750-4434 help@coursehomework.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 the......

Words: 1226 - Pages: 5

...PRG 410 WEEK 6 ASSIGNMENT http://www.coursehomework.com/product/prg-410-week-6-assignment/ Contact us at: +1 315-750-4434 help@coursehomework.com PRG 410 WEEK 6 ASSIGNMENT UOP C++ Programming I PRG-410 Assignment#6 Problem-1: Write a program in C++ in which take input of numbers in an array and then sort the numbers in ascending order. At the end print the sorted array. Problem-2: Write a program in C++ in which take input of strings in an array and then print output of strings. Problem-3: Write a program in C++ in which take input of numbers in an array and then print the maximum number in the array. Problem-4: Write a program in C++ in which take input of numbers in 2D array in the form of matrix and then find the transpose of matrix. At the end show the output in matrix form. Click Here to Buy this; http://www.coursehomework.com/product/prg-410-week-6-assignment Course Home Work aims to provide quality study notes and tutorials to the students of PRG 410 Week 6 Assignment in order to ace their studies. Course Home Work - Best Home Work Tutorials PRG 410 Week 6 Assignment Course Home Work, PRG 410 Week 6 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 Midterm Exam Updated......

Words: 485 - Pages: 2

...PRG 410 WEEK 7 ASSIGNMENT http://www.coursehomework.com/product/prg-410-week-7-assignment/ Contact us at: +1 315-750-4434 help@coursehomework.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. Click Here to Buy this; http://www.coursehomework.com/product/prg-410-week-7-assignment Course Home Work aims to provide quality study notes and tutorials to the students of PRG 410 Week 7 Assignment in order to ace their studies. Course Home Work - Best Home Work Tutorials PRG 410 Week 7 Assignment Course Home Work, 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...

Words: 516 - Pages: 3

...PRG 410 WEEK 3 ASSIGNMENT To purchase this Click here: HTTP://WWW.ACTIVITYMODE.COM/PRODUCT/PRG-410-WEEK-3-ASSIGNMENT/ Contact us at: SUPPORT@ACTIVITYMODE.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......

Words: 1205 - Pages: 5

...PRG 410 WEEK 6 ASSIGNMENT To purchase this Click here: HTTP://WWW.ACTIVITYMODE.COM/PRODUCT/PRG-410-WEEK-6-ASSIGNMENT/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 410 WEEK 6 ASSIGNMENT UOP C++ Programming I PRG-410 Assignment#6 Problem-1: Write a program in C++ in which take input of numbers in an array and then sort the numbers in ascending order. At the end print the sorted array. Problem-2: Write a program in C++ in which take input of strings in an array and then print output of strings. Problem-3: Write a program in C++ in which take input of numbers in an array and then print the maximum number in the array. Problem-4: Write a program in C++ in which take input of numbers in 2D array in the form of matrix and then find the transpose of matrix. At the end show the output in matrix form. PRG 410 WEEK 6 ASSIGNMENT To purchase this Click here: HTTP://WWW.ACTIVITYMODE.COM/PRODUCT/PRG-410-WEEK-6-ASSIGNMENT/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 410 WEEK 6 ASSIGNMENT UOP C++ Programming I PRG-410 Assignment#6 Problem-1: Write a program in C++ in which take input of numbers in an array and then sort the numbers in ascending order. At the end print the sorted array. Problem-2: Write a program in C++ in which take input of strings in an array and then print output of strings. Problem-3: Write a program in C++ in which take input of numbers in an array and then print the maximum number in the array. Problem-4: Write a program in......

Words: 463 - Pages: 2

...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 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 To purchase this Click here: http://www.activitymode.com/product/prg-410-week-2-assignment/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 410 WEEK 2 ASSIGNMENT C++ Programming I PRG-410 Assignment # 1 & 2 Problem 01 (20 Marks) (Basic Input Output, Arithmetic Operators) Write a C++ program, which can calculate Slope of a line ‘m’, by using formula. Ask from user values of y, x and b. You program calculate and print value of m. Problem 02 (50 Marks) (Basic Input Output, Arithmetic Operators) ‘math.h’ is a library, which contains different mathematical functions like cos, sin, tan, raise to power. You have to write a program, which can calculate following functions. Every equation has left side and right side. Your program must calculate both sides of following equation. Problem 03 (30 Marks) (Basic I/O, Nested If/Else) Design a calculator that performs 4 basic operations (add, subtract, divide and multiply). When your program executes, it should ask the user to enter a simple expression of the format; Operand1 Operator Operand2 e.g: 3 + 5, 7 / 5, 8 * 9, 10 - 4 You should use the data type ‘int’ for operands and the data type ‘char’ for the operator symbol. Your program should check the value of character variable using selection statement (if/else) and perform the operation accordingly. If user inputs “+” in character variable, you will add two numbers and do same for rest of the operations. The output of your program must......

Words: 1012 - Pages: 5

...HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product Description HSM 410 Week 3 Assignment: Healthcare Interview Paper HSM 410 Week 6 Week 6 Assignment: Ethical Considerations Paper HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product Description HSM 410 Week 3 Assignment: Healthcare Interview Paper HSM 410 Week 6 Week 6 Assignment: Ethical Considerations Paper HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product Description HSM 410 Week 3 Assignment: Healthcare Interview Paper HSM 410 Week 6 Week 6 Assignment: Ethical Considerations Paper HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product Description HSM 410 Week 3 Assignment: Healthcare Interview Paper HSM 410 Week 6 Week 6 Assignment: Ethical Considerations Paper HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product Description HSM 410 Week 3 Assignment: Healthcare Interview Paper HSM 410 Week 6 Week 6 Assignment: Ethical Considerations Paper HSM 410 Assignments Week 3 and Week 6 Purchase here http://devrycourse.com/hsm-410-assignments-week-3-and-week-6 Product......

Words: 451 - Pages: 2

...PRG 410 WEEK 7 ASSIGNMENT To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-410-week-7-assignment/ Contact us at: SUPPORT@WISEAMERICAN.US 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. 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......

Words: 502 - Pages: 3

...PRG 410 WEEK 6 ASSIGNMENT To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-410-week-6-assignment/ Contact us at: SUPPORT@WISEAMERICAN.US PRG 410 WEEK 6 ASSIGNMENT UOP C++ Programming I PRG-410 Assignment#6 Problem-1: Write a program in C++ in which take input of numbers in an array and then sort the numbers in ascending order. At the end print the sorted array. Problem-2: Write a program in C++ in which take input of strings in an array and then print output of strings. Problem-3: Write a program in C++ in which take input of numbers in an array and then print the maximum number in the array. Problem-4: Write a program in C++ in which take input of numbers in 2D array in the form of matrix and then find the transpose of matrix. At the end show the output in matrix form. PRG 410 WEEK 6 ASSIGNMENT UOP C++ Programming I PRG-410 Assignment#6 Problem-1: Write a program in C++ in which take input of numbers in an array and then sort the numbers in ascending order. At the end print the sorted array. Problem-2: Write a program in C++ in which take input of strings in an array and then print output of strings. Problem-3: Write a program in C++ in which take input of numbers in an array and then print the maximum number in the array. Problem-4: Write a program in C++ in which take input of numbers in 2D array in the form of matrix and then find the transpose of matrix. At the end show the output in matrix form. PRG 410...

Words: 412 - Pages: 2

...PRG 410 WEEK 5 ASSIGNMENT To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-410-week-5-assignment/ Contact us at: SUPPORT@WISEAMERICAN.US 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.......

Words: 670 - Pages: 3

...PRG 410 WEEK 3 ASSIGNMENT To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-410-week-3-assignment/ Contact us at: SUPPORT@WISEAMERICAN.US PRG 410 WEEK 3 ASSIGNMENT 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......

Words: 597 - Pages: 3

...PRG 410 WEEK 2 ASSIGNMENT To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-410-week-2-assignment/ Contact us at: SUPPORT@WISEAMERICAN.US PRG 410 WEEK 2 ASSIGNMENT Problem 01 (20 Marks) (Basic Input Output, Arithmetic Operators) Write a C++ program, which can calculate Slope of a line ‘m’, by using formula. Ask from user values of y, x and b. You program calculate and print value of m. Problem 02 (50 Marks) (Basic Input Output, Arithmetic Operators) ‘math.h’ is a library, which contains different mathematical functions like cos, sin, tan, raise to power. You have to write a program, which can calculate following functions. Every equation has left side and right side. Your program must calculate both sides of following equation. Problem 03 (30 Marks) (Basic I/O, Nested If/Else) Design a calculator that performs 4 basic operations (add, subtract, divide and multiply). When your program executes, it should ask the user to enter a simple expression of the format; Operand1 Operator Operand2 e.g: 3 + 5, 7 / 5, 8 * 9, 10 – 4 You should use the data type ‘int’ for operands and the data type ‘char’ for the operator symbol. Your program should check the value of character variable using selection statement (if/else) and perform the operation accordingly. If user inputs “+” in character variable, you will add two numbers and do same for rest of the operations. The output of your program must appear as shown in Fig-1 below; PRG 410 WEEK...

Words: 472 - Pages: 2