Question: IN C# Problem #3 For Loop: Add Them Up In this problem you will be asking the user for the number of different movie types

IN C# Problem #3 For Loop: Add Them Up In this problem you will be asking the user for the number of different movie types they own and add them all up.

Prompt the user for the number of DVDs, Blu-Rays and Digital UltraViolet copies they own. Validate each of the 3 prompts and create a number array that will hold the converted values.

Next use a for loop to cycle through the array and add up the total number of movies that the user owns. Once you have the total, use a conditional to test if the user has 100 movies or more. If they have less, give them their total. If they 100 or more, tell the user that you are impressed with their collection.

User Inputs: o Amount of DVDs

o Amount of Blu-Rays

o Amount of UltraViolets

Result To Print Out:

o You have a total of X movies in your collection. OR Wow, I am impressed with your collection of X movies!

Data Sets To Test:

o DVDs 45 Blu-Rays 15 UltraViolets 2

Results - You have a total of 62 movies in your collection.o DVDs 60 Blu-Rays 75 UltraViolets 45

Results - Wow, I am impressed with your collection of 180 movies!o Test One Of Your Own & Write all 3 of these tests in a multi-lined comment in

your code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!