Answer:
underscore hope that helps
Explanation:
Answer:
second one
Explanation:
DSL full form in computer
please give me answer fast
Answer:
Digital subscriber line
what's exactly the difference between "Library" and "Framework" ?
Create a console-based computerized game of War named WarCardGameConsole in the Final Project Part 1 folder. This is C#
1. Use an array of 52 integers to store unique values for each card.
2. Write a method named FillDeck() that places 52 unique values into this array.
3. Write another method named SelectCard() that you call twice on each deal to randomly
select a unique card for each player, with no repetition of cards in 26 deals.
4. To pause the play between each dealt hand, use a call to ReadLine().
5. At the end of a play of the game of the 26 deals:
a. display the Computer’s and Player’s final scores
b. display who won the game
c. record the results in a text file (see step 6)
d. give the player the choice of stopping or playing again.
6. Record the results of each game in a text file:
a. The text file should be saved as FirstNameLastName Results.txt in your project
folder. The file will automatically save in WarCardGameConsole\bin\Debug folder.
b. At the beginning of your program you should check to see if your file exists;
If not, your program will create it
If it does exist, you program will open it.
c. At the of a play of the game you will record the results
d. When the player indicates they want to stop playing, the program should close the
file.
7. Your program must have meaningful comments, including your name.
Answer:
Here is a console-based C# program for the card game War:
Explanation:
using System;
using System.IO;
namespace WarCardGameConsole
{
class WarCardGame
{
// Array to hold 52 cards
int[] deck = new int[52];
// Player and computer scores
int playerScore;
int computerScore;
// File to record results
StreamWriter results;
// Fill deck with cards
void FillDeck()
{
// Add cards to deck
for (int i = 0; i < deck.Length; i++)
{
deck[i] = i;
}
}
// Select random card
int SelectCard()
{
// Generate random index
Random rand = new Random();
int index = rand.Next(deck.Length);
// Remove selected card from deck
int card = deck[index];
deck[index] = deck[deck.Length - 1];
Array.Resize(ref deck, deck.Length - 1);
// Return selected card
return card;
}
// Play one round of war
void PlayRound()
{
// Select cards for player and computer
int playerCard = SelectCard();
int computerCard = SelectCard();
// Display cards
Console.WriteLine($"Player card: {playerCard} Computer card: {computerCard}");
// Check who has higher card
if (playerCard > computerCard)
{
playerScore++;
Console.WriteLine("Player wins this round!");
}
else if (computerCard > playerCard)
{
computerScore++;
Console.WriteLine("Computer wins this round!");
}
else
{
Console.WriteLine("Tie! No points awarded.");
}
// Pause before next round
Console.WriteLine("Press any key to continue...");
Console.ReadKey();
}
void PlayGame()
{
// Fill deck with cards
FillDeck();
// Play 26 rounds
for (int i = 0; i < 26; i++)
{
PlayRound();
}
// Display final scores
Console.WriteLine($"Player final score: {playerScore}");
Console.WriteLine($"Computer final score: {computerScore}");
// Determine winner
if (playerScore > computerScore)
{
Console.WriteLine("Player wins the game!");
}
else if (computerScore > playerScore)
{
Console.WriteLine("Computer wins the game!");
}
else
{
Console.WriteLine("Tie game!");
}
// Record results in file
results.WriteLine($"{DateTime.Now} - {playerScore} to {computerScore}");
// Play again?
Console.Write("Play again? (Y/N) ");
string input = Console.ReadLine();
if (input.ToUpper() == "Y")
{
// Restart game
playerScore = 0;
computerScore = 0;
PlayGame();
}
else
{
// Close file and exit
results.Close();
Environment.Exit(0);
}
}
static void Main(string[] args)
{
// Create game object
WarCardGame game = new WarCardGame();
// Check if results file exists
if (!File.Exists("JohnDoe Results.txt"))
{
// Create file
game.results = File.CreateText("JohnDoe Results.txt");
}
else
{
// Open existing file
game.results = File.AppendText("JohnDoe Results.txt");
}
// Play game
game.PlayGame();
}
}
}
In order to average together values that match two different conditions in different ranges, an excel user should use the ____ function.
Answer: Excel Average functions
Explanation: it gets the work done.
Answer:
excel average
Explanation:
What is the difference between conceptual architecture view and module architecture view?
Answer:
The conceptual architecture view provides a high-level map of how the system performs what it's meant to do, and the module architecture view demonstrates how the software's major parts are translated to modules and subsystems.
Explanation:
Which of the following are downlink transport channels?
a. BCH.
b. PCH.
C. RACH.
d. UL-SCH.
e. DL-SCH.
Using the Multiple-Alternative IFTHENELSE Control structure write the pseudocode to solve the following problem to prepare a contract labor report for heavy equipment operators: The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and calculated pay. Journeyman employees receive $20.00 per hour. Apprentices receive $15.00 per hour. Casual Labor receives $10.00 per hour.
Answer:
The pseudo-code to this question can be defined as follows:
Explanation:
START //start process
//set all the given value
SET Pay to 0 //use pay variable that sets a value 0
SET Journeyman_Pay_Rate to 20//use Journeyman_Pay_Rate variable to sets the value 20
SET Apprentices_Pay_Rate to 15//use Apprentices_Pay_Rate variable to sets the value 15
SET Casual_Pay_Rate to 10//use Casual_Pay_Rate variable to set the value 10
READ name//input value
READ job//input value
READ hours//input value
READ code//input value
IF code is 'J' THEN//use if to check code is 'j'
COMPUTE pay AS hours * JOURNEYMAN_PAY_RATE//calculate the value
IF code is 'A' THEN//use if to check code is 'A'
COMPUTE pay AS hours * APPRENTICES_PAY_RATE//calculate the value
IF code is 'C' THEN//use if to check code is 'C'
COMPUTE pay AS hours * CASUAL_PAY_RATE//calculate the value
END//end conditions
PRINT name//print value
PRINT job//print value
PRINT code//print value
PRINT Pay//print value
END//end process
Create a new Java program called Flip. Write code that creates and populates an array of size 25 with random numbers between 1-50. Print the original array. Print array in reverse.
i need the solution to this task please anyone
Answer:
.
Explanation:
Add the beginning comments at the top of the program.
In the first part of your program, create a for loop that runs three times:
Inside the for loop, prompt the user for an integer
Prompt the user for another integer
Call the function compare (you are going to create this function next)
Pass the variables that you used for the integer inputs from above
Create a function called compare (remember the function definition should go at the top of the program) and use two variables in the parameters of the function:
Inside of the function, create an if / elif / else structure that compares the two values passed into the function
If one value is less than the other, output that to the user (Ex: 2 is less than 4)
Elif the other value is less than the other output something similar (Ex: 4 is less than 9)
Else, output that they are equal to each other
That is it for the first part of the program.
Next, create an empty list called names.
Create a loop that runs 6 times:
Inside of the for loop, prompt the user for a name
Append the name to the list
Outside of the for loop, prompt the user for how many people they would like to vote off the island.
Call the function eliminate and pass the variable you used from step 7 to it.
Also, this function will return a value, so store this back function call back to a new variable.
Create a function called eliminate and create a variable to use as the parameter:
Inside the function, randomly shuffle (use the shuffle() method) all the values in the list (you will need to import random at the top of the program)
Then using a for loop, loop it as many times as the value that was passed to the function:
Inside the for loop, remove one name from the list (use the pop() method)
Outside the for loop, but still inside the function, return the list of remaining people
Underneath where you left off in step 8, print the remaining people that are left: those that did not get voted off the island.
WILL GIVE BRAINIEST!
Answer:
#################
# Python Practice
#################
# Part 1
# ------------------------------------------------------
run_compare = 3
ran_compare = 0
while run_compare != ran_compare:
num1 = int(input('Please input the first number: '))
num2 = int(input('Please input the second number: '))
def compare(number1, number2):
if number1 < number2:
print(f'{num1} is less than {num2}')
elif number1 > number2:
print(f'{num1} is greater to {num2}')
else:
print(f'{num1} is equal than {num2}')
compare(num1, num2)
ran_compare += 1
# ------------------------------------------------------
# Part 2
run_name = 6
ran_name = 0
names = []
# ------------------------------------------------------
while run_name != ran_name:
name = input(str('Please insert a name: '))
names.append(name)
print(names)
ran_name += 1
# ------------------------------------------------------
give me a second im going to resolve the last part but this is what i have so far
Following are the program to the given question:
Program Explanation:
Import random package as r.Defining a method "compare" that takes two variable "n1,n2" inside the parameter.In the next step, a conditional statement is declaed that checks the parameter value and prints its value. Defining a method "eliminate" that takes two variable "n, names" inside the parameter.It calls the shuffle method, and define a for loop that removes names value and return its value.In the next step, a for loop is defined inside this two variable "i1, i2" is declared that inputs value and calls the comapre value.In the next line, an empty list "names" is declared inside this a for loop is defined that inputs name value and calls the "eliminate" method and print its calculated value.Program:
import random as r#import package random
def compare(n1, n2):#defining a method compare that takes two parameters
if n1<n2:#defining if block that checks n1 value less than n2 value
print("{} is less than {}".format(n1, n2))#print value with the message
elif n2<n1:#defining if block that checks n2 value less than n1 value
print("{} is less than {}".format(n2, n1))#print value with the message
else:#defining else block
print("{} and {} are equal".format(n1, n2))#print value with the message
def eliminate(n, names):#defining a method eliminate that takes two parameters
r.shuffle(names)#calling the shuffle method
for i in range(n):#defining a for loop that checks n values
names.pop()#calling pop method to remove value
return names #return a names value
for i in range(3):#defining a for loop that inputs value
i1 = int(input("Enter an integer: "))#defining i1 value to input value
i2 = int(input("Enter another integer: "))#defining i2 value to input value
compare(i1, i2)#calling the compare method
print()#using print to break line
names= [] #defining an empty list
for i in range(6) :#defining a loop that inputs name value
name = input("Enter name: ")#defining name variable that inputs value
names.append(name)#calling append method
n = int(input("\nHow many people you would like to vote off the island: "))#defining n variable that input value
new_names = eliminate(n, names)#defining new_names that calling eliminate method
print("\nRemaining people that did not get voted off the island:")#print message
if(len(new_names) != 0):#defining if block that checks new_names length not equal to 0
for name in new_names:#defining a for loop that checks name is in new_names
print(name)#print name value
else:#defining else block
print("None")#print message None
Output:
Please find the attached file.
Learn more:
brainly.com/question/21922031
Consider a system which has a memory access time of 300 nsec. An average page fault takes around 10 millisecond to get serviced. If the page fault occurs with a probability of 4% in the system, then find out the effective memory access time of that system. If somehow, you manage to reduce the probability of page fault to 2%, then by how much the system performance improves as compared to the previous case?
Answer 72 ncs is the answer im pretty sure
red + blue =
Red + green =
Magenta - blue =
Yellow - green =
Cyan - blue =
Answer:
red + blue is green
red + green is blue
What does it mean to declare a function versus call a function?
1.in 3 sentences explain briefly what are the examples of the advantage of using multimedia approach in a slide presentation brainly
Multimedia Presentations is very essential in making slide presentation because:
it makes the presentation colorfulIt is often purpose driven andIt challenges one and all listeners to think creativelySome advantages of Multimedia includes
Oresentations made are concise, rich and makes one to develop confidence in language skills.They captivate audience to visualize what is been taught.Multimedia agent includes video podcasts, audio slideshows etc. The use of the multimedia in presentation is also very good and user-friendly. It doesn't take much energy out of the user, in the sense that you can sit and watch the presentation,
Conclusively, It uses a lot of the presenters senses while making use of multimedia such as hearing, seeing and talking.
Learn more from
https://brainly.com/question/19286999
What is the value of the variable result after these lines of code are executed?
>>> a = 0
>>> b = 2
>>> c = 7
>>> result = a * b - c / a
Answer:
Explanation:
there is no value of the variable. the program breaks because of division by zero. it tries to divide by zero in the "/ a" part.
Describe a lossless file compression technique that can be done on text file or image file
Answer:
In contrast to lossy compression algorithms like JPEG, which lose some data each time data is compressed and decompressed, a lossless compression algorithm ensures that no data is lost during the compression or decompression of the file.
Discuss what is dominance relationship
Answer:
dominance is a relationship between two alleles of a particular allele of a gene and their associated phenotypes.
The concept of dominance has recently attracted much interest in the context of skyline computation. Given an N dimensional data set s a point p is said to dominate q, I'd p is better than q in atheist one dimension and equal to or better than it remaining dimensions.
Write a program that determines the change to be dispensed from a vending machine.
An item in the machine can cost between 25 cents and 1 dollar, in 5-cent increments
(25, 30, 35, . . . , 90, 95, or 100), and the machine accepts only a single
dollar bill to pay for the item.
- int variable itemPrice
- int variables quarters, dimes, nickels
- Scanner object
Program accepts itemPrice, which is a price for the item you would like to purchase.
Positive behaviour:
Please follow the example:
-If the Item price was entered 95: need to display message: Your change is 0 quarters, 0 dimes, and 1 nickels.
-If the Item price was entered 60: need to display message: Your change is 1 quarters, 1 dimes, and 1 nickels.
Note: Implement a program that calculates the minimum number of coins required to give a user change.
Negative behaviour:
If itemPrice is less than 25 or more than 100 cents, then display error message:
Invalid price!
If itemPrice is not divisible by 5, then also display error message:
Invalid price!
use (itemPrice % 5 == 0) expression to find it is divisible by 5.
The program that determines the change to be dispensed from a vending machine is illustrated below
How to depict the program?
import java.util.Scanner; //to accept input from user
public class Main { //class name
public static void main(String[] args) { //start of main function
Scanner input =new Scanner(System.in); // creates Scanner class object
int amount, quarters, dimes, nickels, pennies,change; //declare variables
System.out.println("Enter the price of the(from 25 cents to a dollar, in 5-cent increments): "); //prompts user to enter the price
amount=input.nextInt(); //reads amount from user
change= 100-amount; //computes change
System.out.println("You bought an item for " + amount+" cents and gave me a dollar, so your change is :");
quarters=change/25; //computes quarters
change=change%25; //computes quarter remaining
if(quarters == 1) // if quarter is equal to 1
System.out.println(quarters+ " quarter"); //prints quarter value in singular
else if (quarters>1) // if value of quarters is greater than 1
System.out.println(quarters+" quarters"); //prints plural quarters value
dimes=change/10; //computes dime
if(dimes == 1) // if value of dime is equal to 1
System.out.println(dimes+ " dime"); //prints single value of dimes
else if (dimes>1) //if value of dimes is greater than 1
System.out.println(dimes+" dimes"); //prints plural value of dimes
change=change%10; //computes dimes remaining
nickels=change/5; //computes nickels
if(nickels == 1) //if value of nickels is equal to 1
System.out.println(nickels+ " nickel"); //prints single value of nickels
else if (nickels>1) //if value of nickels is greater than 1
System.out.println(nickels+" nickels"); //prints plural value of nickels
change=change%5; //computes nickels remaining
pennies=change; //computes pennies
if(pennies == 1) //if value of pennies is equal to 1
System.out.println(pennies+ " penny"); //prints single value of pennies
else if (pennies>1) //if value of pennies is greater than 1
System.out.println(pennies+" pennies"); } } //prints plural value of pennies
Learn more about program on:
https://brainly.com/question/1538272
#SPJ1
What are the global, international or cultural implications for a Network Architect?
What skills will you need or how might you interact daily with people from other countries?
As a network architect, one of the main global, international, or cultural implications is the need to understand and work with a variety of different technologies and protocols that may be used in different regions of the world
What skills are needed?In order to be successful in this role, you will likely need to have strong communication skills, as well as the ability to work effectively with people from different cultures.
You may also need to have a strong understanding of different languages or be able to work with translation tools and services.
Additionally, you may need to be comfortable with traveling and working in different countries, and be able to adapt to different working environments and cultures
Read more about Network Architect here:
https://brainly.com/question/2879305
#SPJ1
Can some one help me right a 3 paragraph sentace on iPhone and androids specs it has too be 7 sentaces each paragraph
Answer:
iPhone
The iPhone has come a long way since its first model, the iPhone 3G. Now, the current iPhone 11 Pro Max comes with a 6.5-inch Super Retina XDR OLED display, a triple-camera system, and up to 512GB of storage. It has a powerful A13 Bionic chip with a neural engine and is powered by a 3,969 mAh battery. With its dual-SIM support and 5G capability, the iPhone is a great choice for those who want the latest and greatest in mobile technology.
Android
Android phones come in a wide range of specs and sizes, so there’s something for everyone. The current top-of-the-line Android phone is the Samsung Galaxy S20 Ultra 5G, which boasts a 6.9-inch Dynamic AMOLED display, a triple-camera system, and up to 512GB of storage. It has a Qualcomm Snapdragon 865 processor and is powered by a 5,000 mAh battery. With its dual-SIM support and 5G capability, the Android phone offers a great mix of performance and features.
Comparison
When it comes to specs, the iPhone and Android phones offer a comparable experience. Both come with powerful processors and large displays, as well as dual-SIM support and 5G capability. The main differences are in design and the camera systems. The iPhone has a unique design and a triple-camera system, while Android phones come in a variety of shapes and sizes, and often feature four or more cameras. The choice ultimately comes down to personal preference.
Does anyone know how to fix this error of " the media could not be loaded, either because the server or network failed or because the format is not supported " in the playback of web videos ?
Answer:
Restart your WiFi!
Explanation:
It happened to me I did that and it fixed it
What is one reason to create a study check list
You can start Remote Desktop Connection from a command prompt by running mstsc.exe. Which option can be used with this command to prevent Remote Desktop Connection from saving information to the local computer?
Answer:
You can start Remote Desktop Connection from a command prompt by running mstsc.exe. Which option can be used with this command to prevent Remote ...
"
in this activity, you will write your response and share it in this discussion forum. Al students will share and have the opportunity to learn from each other. Everyone is expected to be positive and respectful, with comments that help all leamers write effectively. You are required to provide
a positive and respectful comment on one of your classmate's posts
For your discussion assignment, follow this format
Tople Sentence: With growing online social media presence cyberbullying is at an all-time high because.....
Concrete detail Cyberbullying has steadily been on the rise because
Commentary: Looking at some of my (or include the name of the famous person that you chose) most recent social media posts I can see how one could misinterpret my posting because
Concluding Sentence: To help lower the growth rate of cyberbullying, we can
Respond to Classmate: Read other students posts and respond to at least one other student Your response needs to include a specific comment
You did a great job of pointing out how social media's lack of responsibility and anonymity contribute to cyberbullying. It's critical to keep in mind the effect our comments may have on other people.
What do you call a lesson where small groups of students have a quick conversation to develop ideas, respond to questions, etc.?Brainstorming. Students are tasked with coming up with ideas or concepts during a brainstorming session, which is a great tool for coming up with original solutions to problems.
How do you give your students engaging subject matter?Look for images and infographics that engagingly explain your subject. Create a story using all of your topics and the photographs, and you'll never forget it. Create a list of the crucial questions.
To know more about social media's visit:-
https://brainly.com/question/14610174
#SPJ1
Develop a Java program that deals with greatest common dominators GCDs of positive integers. GCD of two positive integers is the is the largest positive integer that divides each of those two integers. The program works with the following specifications: a. Write a java method getGCD takes as parameter two integers and returns their greatest common divisor. The GCD could be computed for any two positive numbers. If the one of the two integers (or both) is negative the method should return -1. a. In the main method, • the program reads from the user the number of pairs of integers to get GCD of each pair. • According to the number of pairs, the program prompts the user to enter pairs of integers and saves these numbers in 2 single-dimensional arrays; the first array firstNumbersArray is for the first numbers in the entered pairs, and the second array secondNumbersArray is for the second numbers in the entered pairs. • The program should get the GCD of each pair by calling the method getGCD repeatedly and save the produced GCDs in a third single-dimensional array called GCDsArray. • The program should count the number of positive pairs that it could compute their GCD. • Finally, the program should print all the entered pairs with their GCD and the ratio of the pairs with positive GCDs compared to all entered pairs.
Answer:
i dont even know
Explanation:
Why does the, the, the does the, the does when you does the do the when during coding HTML?
Answer:
huh this makes no sense
Explanation:
lol
You have had several employees call the help desk where you work, complaining that they are not able to reach the www.widgets.com server. To help troubleshoot this issue, you decide to run a variety of commands. which of the following commands is most likely to return the ip address of the desired server?- ping www.widgets.com- tracert www.widgets.com- nslookup www.widgets.com
The nslookup command is most likely to return the IP address of the desired server.
What is IP address?An IP address is a one-of-a-kind identifier for a device on the internet or a local network. IP is an abbreviation for "Internet Protocol," which is a set of rules that governs the format of data sent over the internet or a local network.
The nslookup command is a network administration tool for obtaining domain name or IP address mapping information from the Domain Name System (DNS).
It can look up the IP address associated with a domain name, which is required to connect to the server.
Thus, The answer is nslookup.
For more details regarding IP address, visit:
https://brainly.com/question/16011753
#SPJ1
Concentrate strings
Write code that concatenates the character strings in str1 and str2, separated by a space, and assigns the result to a variable named joined. Assume that both string variables have been initialized.
Two Letters in Word
Given a character string stored in a variable called word, write code that concatenates the fifth character of the word to the third character from the end of the word, and assigns that string to a variable named two_letters. Assume that word already has a value and is at least five characters long.
Set the Number of Cards if Necessary
Write code that sets the value of the variable num_cards to seven if its current value is less than seven. Otherwise, don't change the value. Assume that nuncards already has an initial value.
Answer:
In Python:
(a) Concatenate strings:
joined = str1+" "+str2
(b) Two Letters in Word :
two_letters = word[4]+word[-3]
(c) Set Numbers in Card
if num_cards < 7:
num_cards = 7
Explanation:
The code segments were written in Python
All variables were assumed to have been initialized
Solving (a): Concatenate strings:
To do this, we make use of + operator.
So, the concatenation of str1 and str2 with space in between is
str1+" "+str2
When assigned to variable joined, it becomes
joined = str1+" "+str2
Solving (b): Two Letters in Word :
The character at the 5th position is represented with index 4 i.e. word[4]
To access a character from the end, we make use of - sign. So, the third character from the end is word[-3]
Concatenate them using + operator.
So, we have:
two_letters = word[4]+word[-3]
Solving (c): Set Numbers in Card
Here, we make use of the if condtion.
First, check if num_cards is less than 7(i.e. num_cards < 7)
If true, assign num_cards to 7
So, we have:
if num_cards < 7:
num_cards = 7
1timesinfinityequals
Answer:
1timesinfinity=1timesinfinity
any time your multiply a number buy one... its its self
Explanation:
Answer
1-time infinity is infinity and if infinity is multiplied with a negative it would be infinity and 0 multiplied by infinity will be........ Well none actually knows
What is the best way to describe eNotes?
A.it is a tool students can use to take notes during an online lesson
B.it provides access to an extensive back up system on the nternet
C.It allows students to clip a portion from a webpage for later use.
D.It is a tool for storing images and recordings in one location.
Answer:
A.it is a tool students can use to take notes during an online lesson
Explanation:
ENotes is a tool used to take notes, particularly targeted towards online learners. Note-taking generally help students to possess a far better understanding of what they learn. It also helps the scholars to enhance their writing skills. There are many sophisticated and straightforward note-taking tools available on the market.Answer:
(A) It is a tool students can use to take notes during an online lesson.
Explanation: