Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise: More dwarves? You have some Snow Whites and some dwarves. Each Snow White needs seven dwarves, but you might have more or dwarves than

Exercise: More dwarves?

You have some Snow Whites and some dwarves. Each Snow White needs seven dwarves, but you might have more or dwarves than you need. Write a program to figure out how many dwarves to add, or get rid of.

Use IPO, with at least one Sub for each step (I, P, and O). Use more Subs if you want.

It starts like this:

image text in transcribed

Make sure that the two input values are numeric, and zero or more. Show errors in the worksheet:

image text in transcribed

Make sure that the errors and output from one run are cleared when the next run starts.

Here are output samples. Note that singular/plural is handled correctly.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Upload your workbook.

Hint:

dwarvesNeeded = snowWhites * 7 dwarvesChange = dwarvesNeeded - dwarves 
4 1 Snow Whites: 2 Dwarves: Run 10 11 12 Sheet1/ Sheet2 Sheet3 |-23456789-111 4 1 Snow Whites: 2 Dwarves: Run 10 11 12 Sheet1/ Sheet2 Sheet3 |-23456789-111

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

Assessment of skills and interests.

Answered: 1 week ago