Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a simple Android app with a single window and 2 data items. The app is for baseball umpires to keep track of the

This is a simple Android app with a single window and 2 data items. The app is for baseball umpires to keep track of the balls and strikes for each batter. It needs 2 counters, 1 for balls and 1 for strikes, and the following interface features:

It should display the current count of each (and of course, it should be clear which is which).

A button for each that increments that counter by one and updates the display.

A 'Reset' button that restores both counters to 0 and updates the display accordingly.

An 'Exit' button to end the app.

There are 2 events that you must check for: If the batter strikes out, or walks. The umpire buddy should perform as follows, based on which event occurs first:

  • If the number of strikes == 3, then the batter has struck out. A popup should appear that says "Out!" The popup will need a button or icon to clear it--any built-in functionality in the message window is fine for this.

  • If the number of balls == 4, then the batter should walk. A popup should appear that says "Walk!" Again, you will need a way to close this window.

  • In either case, the Umpire Buddy should not allow any more balls or strikes to be recorded; everything except the reset button should be disabled.

Also add an "About" button showing a new screen or window, containing the name of the program (Umpire Buddy 2.0)

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago