Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE THE JAVA PROGRAMMING LANGUAGE Q Network+ 3th Editx C Assignment 52 Assignment_5-2 X Untitled documer X How to Become a X Course Hero

PLEASE USE THE JAVA PROGRAMMING LANGUAGE image text in transcribed

Q Network+ 3th Editx C Assignment 52 Assignment_5-2 X Untitled documer X How to Become a X Course Hero C Get Homework Hex C X BAHO A fade X + + c G !!! Apps o YouTube Maps C News G GOOGLE G Google Books Google Docs M Gmail Google Docs M Gmail Google Note-taking o Mail - daniellab.com (h hoopla streaming... Scholarshipown tconnect: Login = Assignment_5-2_Rubric (1).pdf 1/1 76% + Assignment 5-2 (15 points): Dice Roll Your goal is to prompt the user for how many times they would like to roll the dice and then roll 2 dice. Display how many times the user won, lost, or tied the computer's dice roll Prompt the user for the number of dice rolls using the Scanner class. Save their answer in a variable points) Output Dice in How many would you like to coil the dict Use a loop to generate 2 random die rolls (user and computer) and conditionals to determine if the user won (larger number than the computer), lost smaller number than the computer), or tied the computer equal. Display cach of the rolls along with whether the user won, lost, or tied (10) Outputketren D w many times would you like to all the dice User rolls: 1 Computer rolls: 2 Tous Display the total number of wins, losses, and ties (3 points) Output - Dicem How many times wuld you like to all the do? De volls Carles 22 Yo lose De most compter le Yoreste . Total Low: Total Challenge: Prompt the user for the number of dice rolls as long as the number that they enter is less than 0. (Boms: 3 points) We would you like the dice Talo Type here to search OB o DW E 952 AM 3/1/2021

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions