Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An android application that will get the user's guess number and will be compared to the computers' random rolled dice. At the start of the

An android application that will get the user's guess number and will be compared to the computers' random rolled dice. At the start of the game, the user has a 20-point credit.

If the guess is correct then a 5-point credit will be added to the user's remaining credit If the guess is wrong then a 5-point credit will be deducted to the user's remaining credit


REQUIREMENT: You need to create 1 Activity and 2 fragments for this challenge. The Main Activity, the "Guess" fragment and "Result" fragment. You also need "Dice class". Your Dice class MUST HAVE the following method signature


 ALSO PROVIDE THE PROJECT FILE 




imageimageimage

Dice class rollDice(Image View img1, Image View img2) void getRemainingCredits() int The first figure shows the starting Activity. The user has a starting credit of 20. Dice Roll Game Starting Credits 20 ROLL DICE AGAIN Enter your guess here ROLL DICE After placing the users' guess number, the user may roll the dice. Clicking the "Roll dice" button will change the fragment to "Result" fragment. Clicking "Roll dice again" button will change the fragment to "Guess" fragment.

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

To fulfill your requirements you can create an Android application with the following structure Main ... 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_2

Step: 3

blur-text-image_3

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 Physics

Authors: Jearl Walker, Halliday Resnick

8th Extended edition

471758019, 978-0471758013

More Books

Students also viewed these Programming questions

Question

1. Describe Kohlbergs three broad stages of moral development.

Answered: 1 week ago