Вы находитесь на странице: 1из 6

# PRG 410 WEEK 5 ASSIGNMENT

HTTP://WWW.COURSEHOMEWORK.COM/PRODUCT/PRG-410-WEEK-5ASSIGNMENT/

+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 banks 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 algorithm of a program that
reads two integers and outputs them in increasing order.
Problem 4: Write a program that uses a for loop to display the characters for the ASCII codes 0
through 127. Display 16 characters on each line.
Problem 5: Write a program using a do- while loop that lets the user enter a series of positive
integers. The user should enter -99 to signal the end of the series. After all the numbers have been
entered, the program should display
the largest and smallest numbers entered.
Problem 6: Write a program that generates a random number and asks the user to guess what
the number is. If the user's guess is higher than the random number, the program should display
Too[ high, try again. If the users guess is lower than the random number, the program should display
Too low, try again. The program should use a loop that repeats until the user correctly guesses the
random number. Read more on how to generate a random number.
Problem 7: Write a program that reads the score of a student in a subject and uses switch
statement to display his grade according to the following criteria:
>= 90 A+
80 89 A
70 79 B
60 69 C
50 59 D
< 50 F
Problem 8: Analyze the following input and output, and then write a program that uses nested for
loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
********
********
********

*****
*****
Problem 9: Analyze the following input and output, and then write a program that uses nested for
loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
********
******
****
**
*
Problem 10: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
**
****
******
****
*****
Problem 11: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
55555333
44444222
33333111
22222
11111
Problem 12: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:

11111111
22222222
33333333
44444
55555
Problem 13: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
55555333
444422
3331
22
1
Problem 14: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
53
4422
333111
2222
11111
Problem 15: Analyze the following input and output, and then write a program that uses nested
for loop to print such a pattern given an input. Example input/output shown below:
Input: 5 Input: 3
Output: Output:
**
****
******
****
*****

http://www.coursehomework.com/product/prg-410-week-5-assignment
Course Home Work aims to provide quality study notes and tutorials to the students of PRG 410
Week 5 Assignment in order to ace their studies.
Course Home Work - Best Home Work Tutorials

## PRG 410 Week 5 Assignment

Course Home Work, PRG 410 Week 5 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 DeVry, ACCT 504, ACCT 504 Week 8, ACCT 553, ART 101 Week
8, Ashford BUS 401, ASHFORD BUS 640, Ashford HIS 204, ASHFORD MAT 222 Week 3, BA 215
(Business Statistics), BA 215 All Assignments Week 1 -8 - Grantham, BA 225, BA 260, BA 265
(Business Law II), BA 265 (Business Law II) FINAL EXAM, BA 340 All Course Assignments, BA 340
Human Resource, BA 370 (Employment Law), BA 405 Multinational Management, BA 470 Week 3 5 - 6 - 7, BA 470 Entrepreneurship, BA350 Principles Of Finance, BIS 155 Final Exam - DeVry, BIS
220 Final Exam, BSOP 429, BSOP 434 Entire Course - Devry, BUS 303 Week 2, BUS 303 Week
3, BUS 303 Week 5, BUS 311 Business Law, BUS 330 Week 1, BUS 330 Week 3, BUS 330 Week
5, BUS 401 Week 4 DQ 1, BUS 401 Week 4 DQ 2, BUS 402 WEEK 4, BUS 405 (Principles of
Investment), BUS 475, BUS 475 Final Exam 100 MCQS, BUS 475 Final Exam 600 MCQS, BUS 599
(STRAYER), BUS 599 Assignment, BUS 620 Week 4, BUS 640 Week 1, BUS499 Asignment
4, BUS508 Asignment 1, BUS499 Assignment 3
Course Home Work is a not for profit organization that aims to provide quality study notes to the
students in order to ace their studies.

## FOR MORE COURSES VISIT

HTTP://WWW.COURSEHOMEWORK.C
OM