Answer:
See Explanation Below
Explanation:
// Program is written in C++ programming language
//.. Comments are used for explanatory purposes
// Program starts here
#include<iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main()
{
int computerWins = 0, computerPlay = 0;
int userWins = 0, userPlay = 0;
int tiedGames = 0;
// Computer Play
for (int play = 0; play< 10; play++) {
computerPlay = rolls();
userPlay = rolls();
// Check who wins
//Clear Screen
System("CLS")
if (computerPlay == userPlay) {
tiedGames++;
cout<<"Ties........" + tiedGames; }
else {
if (computerPlay> userPlay) {
computerWins++;
cout<<"Computer...."<< computerWins;
} else {
userWins++;
cout<<"User........"<< userWins;
}
}
}
return 0;
}
int rolls() {
srand((unsigned)time(0));
return rand() % 6 + 1;
}
Answer:
.isLeapYear (1900) will return an incorrect response
Explanation:
Given
The above method
Required
Which method call will give an incorrect response
(a) will return an incorrect response because 1900 is not a leap year.
When a year is divisible by 4, there are further checks to do before such year can be confirmed to be a leap year or not.
Since the method only checks for divisibility of 4, then it will return an incorrect response for years (e.g. 1900) that will pass the first check but will eventually fail further checks.
<em>Hence, (a) answers the question;</em>
Excel is mainly graphing information, or putting it into tables- organizing data. So I'd say D.
When you are creating a website, you will usually need to add details to the website. If you're coding a website as HTML, you always have to make sure your code is correct. If one thing is a mess up, you have to start the whole thing all over again.
Answer:
Both TIFF and BMP are bitmap files, but TIFF files contain tags with additional information, like color space, resolution and print size, and can have 16-bit/channel depth (BMP's are limited to 8 bit). Taking a step back, there's no significant problem with first-generation JPEG files which use moderate compression.
Explanation: