Answer:
Get his sheild
Explanation:
Answer:
Ares wants Percy to retrieve his shield
Explanation:
Declare and implement a function called gameOver.gameOver receives a single 3x3 char[] [] array as a parameter, representing a tic-tac-toe board, with each cell containing either a X, a 0, or a (blank space). gameOver should return x if x has won the game, o ifo has won the game, and a blank space (' ') otherwise. Do not check the diagonals!
Answer:
The function in C++ is as follows:
char gameOver(char arr[][3]){
char winner = ' ';
if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){
winner = 'X';
}
else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){
winner = 'O';
}
return winner;
}
Explanation:
The function checks for the winning character by checking for matching rows and matching columns.
When either X or O fall in the any of the following 6 conditions , then that character (X or O) wins.
The position are:
Rows: (1) 00, 01 and 02 (2) 10, 11 and 12 (3) 20, 21 and 22
Columns: (4) 00, 10 and 20 (5) 01, 11 and 21 (6) 02, 12 and 22
So, the explanation is:
This defines the function gameOver
char gameOver(char arr[][3]){
This initializes winner to blank space
char winner = ' ';
If any of the condition stated above matches X, then X wins
if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){
winner = 'X';
}
If otherwise that it matches O, then O wins
else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){
winner = 'O';
}
This returns the winner (either O, X or blank)
return winner;
See attachment for complete program which includes the main
Consider the following statements: Statement A: In Duplex transmission, either node can transmit while the other node can receive data Statement B: In half-duplex transmission, both the nodes can transmit as well as receive data at the same time. Which of the following is true with respect to the above statements?
a. Both statements A and B are false
b. Statement A is false and statement B is true
c. Both statements A and B are true
d. Statement A is true and statement B is false
Answer:
d. Statement A is true and Statement B is false
Explanation:
Indeed, when using duplex transmission either node can transmit while the other node can receive data from the network. Also, in half-duplex transmission, both the nodes can transmit as well as receive data.
However, in half-duplex transmission, the nodes cannot transmit and receive data at the same time. Hence, this makes Statement B false, while Statement A is true.
What devices do not form part of the main components of a computer but can be attached to function effectively?
Answer:
Peripherals are a generic name for any device external to a computer, but still normally associated with its extended functionality. The purpose of peripherals is to extend and enhance what a computer is capable of doing without modifying the core components of the system. A printer is a good example of a peripheral.
Explanation:
Write a function longer_string() with two string input parameters that returns the string that has more characters in it. If the strings are the same size, return the string that occurs later according to the dictionary order. Use the function in a program that takes two string inputs, and outputs the string that is longer.
Answer:
Here you go :)
Explanation:
Change this to your liking:
def longer_string(s1, s2):
if len(s1) > len(s2):
return s1
elif len(s1) < len(s2):
return s2
else:
return s2
x = input("Enter string 1: ")
y = input("Enter string 2: ")
print(longer_string(x, y))
Because of the internet, travel agents now focus more on computers than they do on customer relationships.
True
False
Answer:
true
Explanation:
there are a lot of easier ways to access clients through computers with the internet.
Where or what website can I download anime's? For free
https://todo-anime.com/
Your first submission for the CIS 210 Course Project should include the following functionality: - Requests the user to input his/her first name - Formats the name to capitalize the first letter and makes all remaining characters lowercase, removing any spaces or special characters - Output the formatted name to the console
Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String name;
System.out.print("First name: ");
name = input.next();
name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();
System.out.print(name);
}
}
Explanation:
This declares name as string
String name;
This prompts the user for first name
System.out.print("First name: ");
This gets the name from the user
name = input.next();
This capitalizes the first letter of name and makes the other letters to be in lowercase
name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();
This prints the formatted name
System.out.print(name);
five advantages of Internet
Answer:
1. Accessible to find information
2. Computer can store information you need
3. Communication world wide to connect with others
4. High tech learning
5. Many entertaining platforms and games
Explanation:
Hope that helps
Write a program to calculate the total price for car wash services. A base car was is $10. A dictionary with each additional service and the corresponding cost has been provided. Two additional services can be selected. A '-' signifies an additional service was not selected. Output all selected services along with the corresponding costs and then the total price for all car wash services.Ex: If the input is:Tire shineWaxthe output is:ZyCar WashBase car wash -- $10Tire shine -- $2Wax -- $3----Total price: $15Ex: If the input is:Rain repellent-the output is:ZyCar WashBase car wash -- $10Rain repellent -- $2----Total price: $12services = { 'Air freshener' : 1 , 'Rain repellent': 2, 'Tire shine' : 2, 'Wax' : 3, 'Vacuum' : 5 }base_wash = 10total = 0service_choice1 = input()service_choice2 = input()''' Type your code here '''
Answer:
Replace
''' Type your code here '''
with the following lines of code:
price1 = services[service_choice1]
price2 = 0
if not (service_choice2 == "-"):
price2 = services[service_choice2]
total = base_wash + price1 + price2
print("Zycar Wash")
print("Base car wash: $"+str(base_wash))
print(service_choice1+str(": $")+str(price1))
print(service_choice2+str(": $")+str(price2))
print("Total price: $"+str(total))
Explanation:
The complete program with explanation is as follows:
The italicized lines were originally part of the question
services = { 'Air freshener' : 1 , 'Rain repellent': 2, 'Tire shine' : 2, 'Wax' : 3, 'Vacuum' : 5 }
base_wash = 10
total = 0
service_choice1 = input()
service_choice2 = input()
This line gets the price of service choice 1
price1 = services[service_choice1]
This line initialzes price of service choice 2 to 0
price2 = 0
If an additional service (i.e. service choice 2) is selected
if not (service_choice2 == "-"):
This line gets the price of service choice 2
price2 = services[service_choice2]
This calculates the total price
total = base_wash + price1 + price2
This prints the header
print("Zycar Wash")
This prints the base car wash
print("Base car wash: $"+str(base_wash))
This prints the service choice 1
print(service_choice1+str(": $")+str(price1))
This prints the service choice 2
print(service_choice2+str(": $")+str(price2))
This prints the total
print("Total price: $"+str(total))
9. Select the correct answer.
Jude has entered into an agreement with his client regarding the use of his images over a span of five years. They have agreed that the images will not be shared with any other clients. Which type of usage has Jude agreed to in this contract between himself and the client?
A.
non-exclusive
B.
exclusive
C.
fair use
D.
copyright
E.
statutory
Answer:
I believe the answer is exclusive but im not 100% sure
Answer:
The answer is choice B. Exclusive.
Explanation:
Your supervisor has asked you to make a presentation to a group of new interns about appropriate digital communication in the workplace. Which of these keywords should you research?
A netiquette
B project management
C emojis
Answer: Netiquette
Explanation:
The keywords that'll be researched is netiquette. Netiquette, is simply made up of the words "net"which and also “etiquette,” and it has to do with appropriate behavior that are used online when communicating with someone. These importance of such rules are to enhance communication skills.
Some of the rules include the use of respectful language, large files should not be emailed but rather compressed, people's privacy should be respected etc
How can we display outputs of DIR one screenful at a time? There are at least two different ways, and either one is acceptable.
Answer:
DIR has a /p option to paginate any output.
dir /p
Will give you one screen length at a time.
I believe you can use that simultaneously with /w if you want to fit more file names on the screen, at the loss of additional data like file size, type, etc.
match each option to the description of the task it accomplishes?
Answer:
did u mean to send a picture
Explanation:
From which of the following locations can you run a single line of the program?
Manual Movement dialog box
RoboCell toolbar
Program toolbar
Run menu
I’m in manufacturing and I don’t like this class it has nothing to do with what I wanna do so can someone help please
Security attacks are classified as either passive or aggressive. True or false
Answer:
false is the answer okkkkkkkkkkkkkkkk
Write an algorithm to show whether a given number is even or odd.
Answer:
int num = Console.ReadInt("Please enter a number");
if(num%2 == 0) {
Console.WriteLine("Number is even");
} else {
Console.WriteLine("Number is odd");
Explanation:
Your goal is to write a JAVA program that will ask the user for a long string and then a substring of that long string. The program then will report information on the long string and the substring. Finally it will prompt the user for a replacement string and show what the long string would be with the substring replaced by the replacement string. Each of the lines below can be produced by using one or more String methods - look to the String method slides on the course website to help you with this project.
A few sample transcripts of your code at work are below - remember that your code should end with a newline as in the textbook examples and should produce these transcripts exactly if given the same input. Portions in bold indicate where the user has input a value.
One run of your program might look like this:
Enter a long string: The quick brown fox jumped over the lazy dog
Enter a substring: jumped
Length of your string: 44
Length of your substring: 6
Starting position of your substring: 20
String before your substring: The quick brown fox
String after your substring: over the lazy dog
Enter a position between 0 and 43: 18
The character at position 18 is x
Enter a replacement string: leaped
Your new string is: The quick brown fox leaped over the lazy dog
Goodbye!
A second run with different user input might look like this:
Enter a long string: Friends, Romans, countrymen, lend me your ears
Enter a substring: try
Length of your string: 46
Length of your substring: 3
Starting position of your substring: 21
String before your substring: Friends, Romans, coun
String after your substring: men, lend me your ears
Enter a position between 0 and 45: 21
The character at position 21 is t
Enter a replacement string: catch
Your new string is: Friends, Romans, councatchmen, lend me your ears
Goodbye!
Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String longstring, substring;
System.out.print("Enter a long string: ");
longstring = input.nextLine();
System.out.print("Enter a substring: ");
substring = input.nextLine();
System.out.println("Length of your string: "+longstring.length());
System.out.println("Length of your substring: "+substring.length());
System.out.println("Starting position of your substring: "+longstring.indexOf(substring));
String before = longstring.substring(0, longstring.indexOf(substring));
System.out.println("String before your substring: "+before);
String after = longstring.substring(longstring.indexOf(substring) + substring.length());
System.out.println("String after your substring: "+after);
System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");
int pos;
pos = input.nextInt();
System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));
System.out.print("Enter a replacement string: ");
String repl;
repl = input.nextLine();
System.out.println("Your new string is: "+longstring.replace(substring, repl));
System.out.println("Goodbye!");
}
}
Explanation:
Because of the length of the explanation; I've added the explanation as an attachment where I used comments to explain the lines
In this exercise we have to use the knowledge of the JAVA language to write the code, so we have to:
The code is in the attached photo.
So to make it easier the JAVA code can be found at:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String longstring, substring;
System.out.print("Enter a long string: ");
longstring = input.nextLine();
System.out.print("Enter a substring: ");
substring = input.nextLine();
System.out.println("Length of your string: "+longstring.length());
System.out.println("Length of your substring: "+substring.length());
System.out.println("Starting position of your substring: "+longstring.indexOf(substring));
String before = longstring.substring(0, longstring.indexOf(substring));
System.out.println("String before your substring: "+before);
String after = longstring.substring(longstring.indexOf(substring) + substring.length());
System.out.println("String after your substring: "+after);
System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");
int pos;
pos = input.nextInt();
System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));
System.out.print("Enter a replacement string: ");
String repl;
repl = input.nextLine();
System.out.println("Your new string is: "+longstring.replace(substring, repl));
System.out.println("Goodbye!");
}
}
See more about JAVA at brainly.com/question/2266606?
Define the meaning of software quality and detail the factors which affects the quality not productivity of a software product?
Answer:
Quality of software may be defined as the need of function and Efficiency. ... A number of factors are given below which gives the effects on quality and production capacity.
Software quality is known to be the method that tells the desirable characteristics of software products.
What are the Software Quality Factors that affects it?The factors that influence software are;
CorrectnessReliabilityEfficiencyUsability, etc.Therefore, Software quality is known to be the method that tells the desirable characteristics of software products.
Learn more about software quality from
https://brainly.com/question/13262395
#SPJ2
Let us say numbers.txt contains the sequence of numbers from 1 to 10000, like this:
1
2
3
4
Each of the following 2 commands should output the following 4 lines. Complete the commands with correct values to make it happen!
4377
4378
4379
4380
head - numbers.txt | tail -
tail - numbers.txt | head -
Answer:
Follows are the solution to this question:
Explanation:
head | tail -n 4380 in the numbers.txt
This will take first 4380 lines head -n 4380
tail -n 4 takes out the last 4 lines
tail -n + 4377.txt | head -n 4 -n
tail -n + 4377 requires all 4377 lines
head -n 4 cuts out first four lines
that's why the final answer is "4380, 4 5624,4".
Type the correct answer in the box. Spell all words correctly.
Graphic designers can compress files in different formats. One of the formats ensures that the quality and details of the image are not lost when the graphic designer saves the file. Which file format is this?
The _______file format ensures that images don’t lose their quality and details when graphic designers save them.
Answer: TIFF
Explanation:
Tag Image File Format (TIFF) is the go to file format when one needs to store their image without worrying about it losing its quality and details. This is why TIFF images do not become smaller when compressed because they aim to save the quality of the work.
One has access to options such as tags and transparency on TIFF and it can be used on Photoshop as well as for things like desktop publishing and faxing.
Answer:
The lossless file format ensures that images don’t lose their quality and details when photographers save them.
Explanation:
Who manages the team’s work during a sprint?
a) Scrum master manages the people so they can complete the work
b) The team manages the work by self organization
c) Product owner manages the work
d) Delivery manger manages the work
Answer:
d) delivery manger manages the work
Explanation:
sana po makatulong ako daghay salamat sayo emo
It's important to understand that even information systems that do not use computers
have a software resource component. State the two (2) types of software resources
with an example for each type to support your answers.
Answer:
yes I am not sure if you have any questions or concerns please visit the plug-in settings to determine how attachments are handled the situation in the measurements of the season my dear friend I am not sure if you can send you a great day to day basis of
Suppose that an intermixed sequence of push and pop operations are performed on a LIFO stack. The pushes push the numbers 0 through 9 in order; the pops print out the return value. For example"push(0); pop(); push(1)" and "push(0); push(1); pop()" are possible, but "push(1); push(0); pop()" is not possible, because 1 and 0 are out of order. Which of the following output sequence(s) could occur? Select all that are possible.
a) 12543 609 8 7 0
b) 01564 37928
c) 6543210789
d) 02416 75983
e) 46 8 75 32 901
Answer:
b) 01564 37928
e) 26 8 75 32 901
Explanation:
Pushes and pulls are the computer operations which enable the user to perform numerical tasks. The input commands are interpreted by the computer software and these tasks are converted into numeric values to generate output.
How does Kelvin inspire other
people?
He shows that it's easy to meet an
important leader of a country
He shows that anyone can succeed in
the music business.
He shows that studying engineering
leads to good jobs.
He shows that hard work and creative
thinking can solve problems.
Answer:
hard work and creative thinking can solve all problomes
Explanation:
Answer:
hard work
Explanation:
Assume that you have 22 slices of pizza and 7 friends that are going to share it (you've already eaten). There's been some arguments among your friends, so you've decided to only give people whole slices. Write a Python expression with the values 22 and 7 that calculates the number of whole slices each person would receive and assigns the result to numberOfWholeSlices.
Answer:
In Python:
numberOfWholeSlices = int(22/7)
print(numberOfWholeSlices )
Explanation:
For each friend to get a whole number of slices, we need to make use of the int function to get the integer result when the number of slices is divided by the number of people.
So, the number of slice is: 22/7
In python, the expression when assigned to numberOfWholeSlices is:
numberOfWholeSlices = int(22/7)
Next, is to print the calculated number of slices
print(numberOfWholeSlices )
Following are the python program to the given question:
Program Explanation:
Defining a variable "numberOfWholeSlices". Inside this variable, it divides the integer value and holds the quotient part, and holds only the integer part by using the int method.In the next step, it uses the print method that prints the quotient value holding variable.Program:
numberOfWholeSlices = int(22/7)#defining a variable "numberOfWholeSlices"
#dividing the integer value and holds the quotient value part and convert the value into integer
print(numberOfWholeSlices )#print the quotient value
'''OR'''
numberOfWholeSlices = 22//7#defining a variable "numberOfWholeSlices" that claculates and hold the quotient value integer part
print(numberOfWholeSlices )#print the quotient value
Output:
Please find the attached file.
Learn more:
brainly.com/question/712334
In an independent software organization, who owns the copyright of the developed software?
O A.
client
OB
software organization
C.
project manager
D.
testing team
OE.
change committee
Answer:
The correct answer is B) The software organization.
Explanation:
An independent software organization is one that specializes in writing or creating software or applications that are eventually sold to the end-users. The End-Users are usually a broad-based market. The users only purchase a right to use the software, not the right to own the software. This means that the rights and ownership of the software remain that of the independent software organization or vendor (ISV).
Examples of applications that an ISV can create include but are not limited to the following list:
Healthcare Management System; Real Estate Management System; Accounting and Finance Management System Gambling Softwares University or School Management Software etc
Examples of Accounting and Finance Management Systems are:
Quickbooks by IntuitFreshbooksSage and Xero
Cheers
Which statement about creating a client request in quickbooks online accountant is false
Answer:
You can add attachments by selecting the + Add document link
The request is not sent to the client's email address unless the default setting is changed.
The request appears in the client's QuickBooks Online company in My Accountant
If you wish to notify your client of your request with a QuickBooks Online-generated email, select Notify client
Explanation:
The highlighted one is correct. Its QBO question.
3. What workplace hazards can be found on picture A?
4-5. Describe the workplace A and B, What are their differences
Answer:
HakdogExplanation:
kase hakdog ka kainin mo tite koWhat is the algorithm to determine the absolute of a number
This was written in python, let me know if it needs to be in another language.
Answer:
Conditionals are slower than plain arithmetic operations, but much, much faster than something as silly as calculating the square root
Explanation:
integer or bitwise op: 1 cycle floating -point add/ sub/mul: 4 cycles . Floating- point div ~ 30 cycles Floating - point exponentiation :~ 60 cycles depending on implementation Conditional branch : avg. 10_ cycles, better if well- predicted , much worse if mispredicted.
help me in computer
no spam i will report wrong answer