Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago