Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an app that gives advice about the number of dog toys the user has. It starts like this: Exercise: Dogs and toys Write an

Write an app that gives advice about the number of dog toys the user has. It starts like this:image text in transcribedimage text in transcribedimage text in transcribed

Exercise: Dogs and toys Write an app that gives advice about the number of dog toys the user has. It starts like this Dog Toys Dog Toys Do you have enough dog toys? How many dogs? Number of dogs Enter the number of dogs you have. How many dog toys? Number of dog toys Enter the number of dog toys you have. Show advice Sample web app by Kieran Mathieson The user fills in the fields, and clicks Show advice. First, the app validates the input data. Make sure that: Neither field is empty. Neither field contains a negative number. Show appropriate error messages. For example: App Dog Sorry, you can't have a negative number of dogs Dog Toys Do you have enough dog toys? How many dogs? -3 Enter the number of dogs you have. How many dog toys? -4 Enter the number of dog toys you have. Show advice Sample web app by Kieran Mathieson Use the flag pattern so that all applicable error messages show. In this case, after the user clicks OK, another message would appear for dog toys. If the data is OK, show some advice on the page. Show the advice below the button. If there are more dogs than dog toys, show "You don't have enough dog toys! Get some more." If there are more dog toys than dogs, show "You have enough dog toys. Good to go!" If there the same number of dogs and dog toys, show "You have just enough dog toys, but no extra. Get some spares." For example: Dog Toys Dog Toys Do you have enough dog toys? How many dogs? Enter the number of dogs you have How many dog toys? Enter the number of dog toys you have. Show advice Advice: You have enough dog toys. Good to go! Sample web app by Kieran Mathieson Submit the URL of your solution

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago