1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aliina [53]
2 years ago
5

Write a Dice Game program that generates two random dice values between 1 and 6 for you, and 2 for the computer. You get to roll

as many times as you like (if you don't like your 2 dice), while the computer only rolls once, after you have decided that you like your two dice. Determine who wins, you or the computer. g
Computers and Technology
1 answer:
charle [14.2K]2 years ago
6 0

Answer:

#include <iostream>

#include <time.h>

#include <string>

using namespace std;

int main(){

srand(time(NULL));

cout<<"Throw dice"<<endl;

int b =0;

int a=0;

a=rand()%6;

b=rand()%6;

for (int i =0;i<1;i++)

{cout<<"dice one: "<<a<<endl;}

for (int i =0;i<1;i++)

{cout<<"dice two: "<<b<<endl;}

if(a>b)

{cout<<"first dice won"<<endl;}

if(b>a)

{cout<<"second dice won"<<endl;}

else{cout<<"they are same"<<endl;

return main();

}

return 0;

}

Explanation:

/*maybe it help you it is almost done*/

You might be interested in
To provide for unobtrusive validation, you can install the ____________________ package for unobtrusive validation.
NARA [144]

Answer:

AspNet.ScriptManager.jQuery?

Explanation:

Unobtrusive validation means we can perform a simple client-side validation without writing a lot of validation code by adding suitable attributes and also by including the suitable script files.

One of the benefits of using a unobtrusive validation is that it help to reduce the amount of the Java script that is generated. We can install the AspNet.ScriptManager.jQuery? for the unobtrusive validation.

When the unobtrusive validation is used, validation of the client is being performed by using a JavaScript library.

4 0
2 years ago
One of the first feature films to use 3D animation was called ________. Water World Futureworld Wayne’s World Cool Hand Luke
Vladimir79 [104]
It was called Futureworld

It was published in 1976, it was the first animation that using 3D computer graphics for its animated hand and face.

But they still used 2D digital composting to materialize characters over a background
8 0
3 years ago
Read 2 more answers
To add a pattern to a page, navigate to the _____ feature.
vfiekz [6]

Answer:

Pattern adding feature

7 0
3 years ago
Simon is working with his school newspaper to create the front page. What software is best used for page layout design?.
svlad2 [7]

Answer:

Adobe Indesign.

Explanation:

Adobe indesign is a typesetting and desktop publishing application used to create posters, newspapers, flyers, brochures, magazines, presentations, book and ebook etc.

It is a package from the Creative cloud adobe system packages. It has predetermined templates for newspaper pages (if newpaper is to published), and plug-ins to further customize the the layout of the newspaper to be created or published.

3 0
3 years ago
What is the objective of Accenture‘s e-stewards program
Flura [38]

Accenture is a company that was established with the aim of handling electronic waste. They were very much concern about how electronic waste is being disposed and as such they try to create ways to handle it. The e-stewards program was set up with the sole aim of management of electronic waste. its objectives includes;

  1. Make strategic and better world through well managed recycling solution to all electronic waste (e-waste) issues.
  2. The program also focus on making sure that electronic waste are been handled properly and they are not dumping of electronic waste in poor countries
  3. The objective also centers around no export of harmful electronic wastes.
  4. They also capitalizes on reuse and resale
  5. They are not only interested in stopping e-waste but to channeled it to repair, republish and re-manufacture

For better understanding, lets explain what E-waste means

  • E-Steward objective is centered on managing and handling of electronic waste. It was a project that was birth out of rising concern about electronic waste, especially due to rising concerns that electronic waste generated by rich countries was being shipped off to poor countries.

  • Accenture e-steward make sure that electronic waste are well disposed, no more shipping of electronic waste to poor countries and also recycling of electronic waste product.

  • E-waste in the above simply means non functional or disposed electronic equipment such as computers, cell phones, television sets, etc.

From the above, we can therefore say that the e-stewards program is concerns about how electronic waste generated by rich countries was being shipped off to poor countries and also the recycling of electronic waste product such as television, computers etc.

Learn more about E-waste from:

brainly.com/question/15391967

8 0
1 year ago
Other questions:
  • The adjustable contact of a potentiometer is placed at the center of its adjustment. If the total resistance is 5 kOhms, what is
    9·1 answer
  • The measure of the maximum amount of data that can travel through a computer’s communications path in a given amount of time is
    9·1 answer
  • The True Confessions of Charlotte Doyle begins with what is called a(n) _____.
    15·1 answer
  • Cloud computing is often divided into three levels of services - infrastructure-as-a-service (IAAS), platform-as-a-service (PAAS
    7·1 answer
  • Describe at least three virus scanning techniques
    13·1 answer
  • Which term collectively describes hard disks, CDs, and flash drives?
    11·2 answers
  • A bastion host allows the firewall to connect to the internal network and the perimeter network.TrueFalse
    15·1 answer
  • (03.05 LC
    14·1 answer
  • IN C++
    13·1 answer
  • The options on the Ribbon will____:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!