Create two parallel arrays that represent a standard deck of 52 playing cards. One array is numeric and holds the values 1 through 13 (representing Ace, 2 through 10, Jack, Queen, and King). The other array is a string array that holds suits (Clubs, Diamonds, Hearts, and Spades).

Create the arrays so that all 52 cards are represented. Then, create a War card game that randomly selects two cards (one for the
player and one for the computer) and declares a winner or a tie based on the numeric value of the two cards. The game should last for 26 rounds and use a full deck with no repeated cards. For this game, assume that the lowest card is the Ace.

Display the values of the player’s and computer’s cards, compare their values, and determine the winner. When all the cards in the deck are exhausted, display a count of the number of times the player wins, the number of times the computer
wins, and the number of ties.

hints:
1) Start by creating an array of all 52 playing cards.
2) Select a random number for the deck position of the player’s first card and assign the card at that array position to the player.
3) Move every higher-positioned card in the deck “down” one to fill in the gap. In other words, if the player’s first random number is 49, select the card at position 49 (both the numeric value and the string), move the card that was in position 50 to position 49, and move the card that was in position 51 to position 50. Only 51 cards remain in the deck after the player’s first card is dealt, so the available-card array is smaller by one. In the same way, randomly select a card for the computer and “remove” the card from the deck.

Answers

Answer 1

Using the knowledge in computational language in python it is possible to write a code that Create the arrays so that all 52 cards are represented.

Writting the code:

import random

def result(playercards,computercards):

if playercards > computercards:

return 1

elif playercards < computercards:

return 2

else:

return 0 #both are equal

def play(cards):

print("-------------------------------------------")

print("Starting game")

playerwins=0

computerwins=0

ties=0

j=0

r=1

while(j<52):

print("**********************************")

print("Starting Round ",r)

playercards=cards[j]

print("playercard :",cards[j])

print("computercard :",cards[j+1])

computercards=cards[j+1]

res=result(playercards,computercards)

if res==0:

print("It is a tie")

ties+=1

elif res==1:

print("Player won")

playerwins+=1

else:

print("Computer won")

computerwins+=1

r=r+1

j=j+2

print("###########################################")

print("Final result")

print("Total Player wins :",playerwins)

print("Total Computer wins",computerwins)

print("Total ties ",ties)

print("Showing cards before shuffling")

cards=list(range(1,14))*4

print(cards)

random.shuffle(cards)

print("Shuffling cards\nDone")

play(cards)

See more about python at brainly.com/question/12975450

#SPJ1

Create Two Parallel Arrays That Represent A Standard Deck Of 52 Playing Cards. One Array Is Numeric And

Related Questions

Please help! AP CSP problem.

Answers

Answer:

a is the correct answer ok

How many subnets and host per subnet are available from network 192.168.43.0 255.255.255.224?

Answers

It is to be noted that from network 192.168.43.0 255.255.255.224 the number of subnets and hosts available are 8 and 32 respectively. Out of the 32 hosts only 30 are usually usable.

What is a host in networking?

A computer or other device linked to a computer network is referred to as a network host. A host can function as a server, providing information resources, services, and programs to network users or other hosts. At least one network address is assigned to each host.

A computer network is a collection of computers that share resources that are located on or provided by network nodes. To interact with one another, the computers employ standard communication protocols across digital linkages.

So with regard to the above answer, note that by entering the data into an online IPv4 subnet calculator, we are able to arrive at the total number of:

8 subnets; and 30 hosts available for 192.168.43.0 (IP Address) and 255.255.255.224 (Subnet)

Learn more about Subnets:
https://brainly.com/question/15055849
#SPJ1

highlight the function of the system sofyware in the computer system​

Answers

System software manages the computer itself. It runs in the background, maintaining the basic functions of the computer so that users can run higher-level application software to perform specific tasks. Essentially, system software serves as a foundation for application software to run on.

What is a System software?

System software is the most important type of software required to manage the computer system's resources.

Internally, system software runs and interacts with application software and hardware. Furthermore, it serves as a link between a hardware device and the end user.

System software runs in the background and manages all aspects of the computer's operation. Low-Level Software is so named because it runs at the most basic level of a computer and is usually written in a low-level language. When we install the operating system on one device, it is automatically installed on another.

System software contributes to the creation of the user interface and allows the operating system to communicate with the computer hardware in a computer system​.

To learn more about System software, visit: https://brainly.com/question/13738259

#SPJ9

You are starting a new data project. What is one of the best sources to help you begin? in excel
a, Technical Documentation
b, Queries
c, The database
d, Existing reports

Answers

Technical Documentation is one of the best sources to help you begin in excel. Thus, option A is correct.

What is excel?

Excel is a software tool for creating and distributing spreadsheets, built by Microsoft.

Data analysts and some other customers could make that information simple to examine as content is loaded or altered by grouping items employing tools like Excel.


Technical documentation is a catch-all word for the various types of data produced to explain the performance, use, or construction of a given good, platform, or application.

Therefore, option A is the correct option.

Learn more about excel, here:

https://brainly.com/question/3441128

#SPJ1

Sammy’s Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrella to tourists. Modify your Application as follows: Using Python

Modify the getinput() function that accepts the user information so that it prompts for a customer name, first name and last name. Store in two separate variables.
Add data validation to the account number so that only a 4 character string is allowed. The first character must be an A. You will need to use a while loop here because you do not know how many times the user will enter an invalid Account Number. You will have two conditions for the while loop: while the length of the account number variable does not equal 4 or while the account number variables does not start with the letter "A".
Add a phone number input to the getinput(). Make sure that the phone number is 7 digits. Use a while loop that keeps asking the user to enter the phone number until it is seven digits.
Return all values from the getinput() function -- there will be 5 of them.
Modify the main() function so that the line that calls the getinput() function stores all 5 returned values in separate variables.
Modify the main() function so that the values returned from the getinput() function are passed to the calculatefotal() function.
Modify the header of the calculatetotal() function so that is accepts 5 parameters ( the account number, the number of minutes, the first name, the last name , and the telephone number.
Modify the function that calculates the total and displays all the information, so that it displays the Contract Number, first and last names, and the Phone Number. The Phone Number should be displayed in the ###-#### format. You can the slice function to do this.




Includes comments at the top to identify file name, project and a brief description.

For further documentation, include comment for each section of code.

Sample Run:

ACCOUNT NUMBER:, A234 (program keeps prompting until a 4 character, starting with an A

Name Sally Douglass

123 – 4567 (formatted in the module that displays the result)

Minutes rented: 115
Whole hours rented: 1
Minutes remaining: 55
Rental cost: $ 80



Coupon good for 10% Off!
This is my original code base on the instruction how do I add the new code to the case

# Main function calls other functions
def main():
display()
a,x=getinput()
calculatetotal(x,a)
# function to display logo
def display():
#Display the Sammy’s logo
print("-------------------------------------------------------------")
print("+ +")
print("+ “SAMMY’S MAKES IT FUN IN THE SUN +")
print("+ +")
print("+ +")
print("-------------------------------------------------------------")
# function to receive input from user
def getinput():
# Request the minutes rented and store in variable
contract_number = (input("Enter the account number"))
rented_minutes = int(input("Enter the number of minutes it took to rent: "))
while (rented_minutes<60 or rented_minutes>7200):
rented_minutes = int(input("Try again"))
return rented_minutes,contract_number
# function to calculate hours, minutes remaining and cost
def calculatetotal(acc,mins):
# Calculate number of whole hours
whole_hours = mins//60
# Calculate the number of minutes remaining
remaining_min = mins % 60
# Calculate the cost as hours * 40 + minutes remaining times 1
#Calculation from smallest to greater by getting the smallest number
cost = whole_hours*40+ min(remaining_min*1, 40)
# >Display minutes, whole hours, minutes remaining, and cost with labels
# Print all values
print(("ACCOUNT NUMBER:"),acc)
print("Minutes Rented:",mins)
print("Whole Hours:",whole_hours)
print("Minutes Remaining:",remaining_min)

Answers

Answer:

figure it out

Explanation:

What should be entered to make the loop below print

55

60

65

x = 50

while (x < 65):

x = x + ____

print (x)

Answers

What should be entered to make the loop below print the output 55, 60, 65 is "5". Hence the complete code is:

x = 50

while (x < 65):

x = x + 5

print (x)

What is a loop in coding?

A loop is a set of instructions in computer programming that is repeatedly repeated until a given condition is met. Typically, a process is performed, such as retrieving and modifying data, and then a condition is verified, such as whether a counter has reached a predetermined number.

Loops are control structures that are used to repeat a segment of code a certain number of times or until a specific condition is fulfilled.

Learn more about loop:
https://brainly.com/question/14390367
#SPJ1

How do I do this coding project?

Answers

import java.util.*;

class prog

{

public useProperGrammar( String text)

{

int i;

char ch;

String p;

for(i=0;i<text.length();i++)

{

ch = text.charAt(i);

if(ch=='2')

{

p = text.replace('2','to');

}

}

System.out.println("Corrected text:" +p);

}

}

Please compile it before putting to use since I haven't done any compiling work.

Using the knowledge of the computational language in JAVA  it is possible to write a code that write a functions that countain a string using the function signature.

Writting the code:

import java.util.*;

class prog

{

public useProperGrammar( String text)

{

int i;

char ch;

String p;

for(i=0;i<text.length();i++)

{

ch = text.charAt(i);

if(ch=='2')

{

p = text.replace('2','to');

}

}

System.out.println("Corrected text:" +p);

}

}

See more about JAVA at brainly.com/question/18502436

#SPJ1

Knowledge Review 3
Which of the following are characteristics of the core capabilities? (Select all that apply.)

Answers

Are distinct critical elements necessary to meet the National Preparedness goal.Are essential for the execution of each mission area: Prevention, Protection, Mitigation, Response, and Recovery.Provide a common language for preparedness across the whole community.

The above three are the characteristics of core capabilities.

What is National Response Framework?

The National Response Framework (NRF) is a guide to how the nation responds to all types of disasters and emergencies.

What are the main components of the National Response Framework?

Response doctrine is comprised of five key principles:

engaged partnershiptiered responsescalable, flexible, and adaptable operational capabilitiesunity of effort through the unified commandreadiness to act.

To know more about NRF:

https://brainly.com/question/13107467

#SPJ13

Match each benefit of participating in a professional network to the appropriate scenario.

1. building the professional network

2. preparing for interviews

3. upgrading knowledge

A. Miriam joins a group for employees of the company where she is interning.

B. Imelda reads about new technologies in the computer programming industry.

C. Rolf researches a company on a professional networking website.

Answers

Professional network                                 Scenario

1                                                                       A

2                                                                      C

3                                                                      B

How to categorize professional networks with the scenario?

Scenario: A. Miriam joins a group of employees of the company where she is interning.

Professional network: 1. building the professional network

Scenario: C. Rolf researches a company on a professional networking website.

Professional network: 3. upgrading knowledge

Scenario: B.  Imelda reads about new technologies in the computer programming industry.

Professional network: 2. preparing for interviews

Hence based on the appropriate scenario I have matched accordingly

To know more information on professional networks and related things, please follow the link below:

https://brainly.com/question/2083119

#SPJ1

This is related to coding. I just have no idea how to do this coding project.

Answers

class brainly

{

public String repeatString(String str, int n)

{

for(n=1;n<=3;n++)

{

System.out.print(str);

}

}

}

Using the knowledge of the computational language in JAVA it is possible to write a code that write a method that takes a string and a int and return to the string.

Writting the code:

public String repeatString(String str, int n)

{

 String text = "";

 

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

     {

       text = text + str;

     }

     

   return text;

}

See more about JAVA at brainly.com/question/18502436

#SPJ1

How is trust built?
Select all the correct options and click Submit.
Trust is built incrementally.
Trust is earned behaviorally.
Trust is built by spending a lot of time with people.
Trust is built by being pleasant and polite.

Answers

The trust is built by the following options:

Trust is built incrementally.Trust is earned behaviorally.Trust is built by spending a lot of time with people.

How trust is built?

Trust is built by spending much time with the people you are in contact with you have to observe the behavioral characteristics and notice the behavior accordingly. Most important characteristics to build trust: Honesty, Integrity, Transparency etc. Hence to conclude along with certain observance and characteristics trust is built. Consistency often leads to trust. We have the most faith in people who are always there for us, in good and bad times. Showing someone you're there to assist them on a regular basis is a great way to build trust.

To know more about trust please follow the link below:

https://brainly.com/question/11875869

#SPJ1

model sees communication occurring in five key parts
19. The
20
means the systematic application of scientific or other organized knowledge to practical task
21. The model that shows our communication is influenced by environmental, cultural and personal
factors
22. Shannon Weaver model was proposed in the year
23. Fourth generation computers used
24. Auto Gasoline pump is an example of a
25.
26.
27.
28.
29.
30. A server may run several
31. The first mechanical computer designed by Charles Babbage uses,
32.
33. The first generation of computer uses
34
computer
computer are mainly used in the fields of science and engineering
provides us with necessary diversion
available for educational purposes other than the teacher
are the means of communication
is when two persons communicate with each other.
controls educational technology in every way.
is the order in which the content should be taught for the best teaming within a grade?
is a distortion in a message which affects the flow of communication
refers to the facilities used for motion pictures, television, computer, sounds?
35.
36. Aristotle model proposed in the year
37. The first computer designed by Charles Babbage was called
38. Communication result in sharing of
and
39. A Supercomputer is the very
40.
41. A typical modern computer uses
42
and
is the operation of data per giving instruction
type of computer for processing data
chips
computer are used in scientific calculations, for nation defense and radar systems
43. The person who is responsible in the integration of technology in classroom instruction is-
44. A server run several
45. These are types in the classifications of the computer according to size, Except
46 Second generation computers used.
47.
48. The acronomy SNS stands for
is used to send individual or group messages
49. These are example of Barriers in communication, Except
50. Computer cannot do anything without a
PRI

Answers

Model sees comunication key parts so its 15 x because it sayd on the text

6.6 code practice question 2? 4 adjacent circles one

Answers

We have to create a program that draws an image of concentric circles with the help of canvas  and frame using python.

Codding strucute of the given problem:

import simplegui

def draw_handler(canvas):

  canvas.draw_circle((200, 130), 90, 5, "Green")

  canvas.draw_circle((200, 130), 70, 5, "Green")

  canvas.draw_circle((200, 130), 50, 5, "Green")

  canvas.draw_circle((200, 130), 30, 5, "Green")

  canvas.draw_circle((200, 130), 10, 5, "Green")

frame = simplegui.create_frame('Circle', 600, 600)

frame.set_canvas_background("White")

frame.set_draw_handler(draw_handler)

frame.start()

To know more about Python, visit: https://brainly.com/question/26497128

#SPJ1

4. Answer the following. a. Write the steps to create new presentation from Blank Presentation. How​

Answers

Create new presentation from a Blank Presentation using  PowerPoint by following these steps:

Launch PowerPoint.Select New from the left pane.

Select an option:

Choose Blank Presentation to start from scratch when creating a presentation.Choose one of the templates to use a ready-made design.To see PowerPoint tips, click Take a Tour, and then click Create.

With PowerPoint on your PC or on any device, you can:

Make a presentation from scratch or from a template.Text, images, art, and videos can all be added.Using PowerPoint Designer, choose a professional design.Include transitions, animations, and movement.Save your presentations to OneDrive so you can access them from your computer, tablet, or phone.Share and collaborate with others, no matter where they are.

To learn more about powerpoint presentations, visit: https://brainly.com/question/23714390

#SPJ9

Consider this program on the picture attached:

(a) In what programming language is this program implemented?
(b) Why is this program correct? In other words, how does it work?
(c) In what way is the program poorly designed?

Answers

Answer:

a) Javascript

b) The program works because it iterates through an array and logs each array element into the console

c) It is poorly designed because depending on the array element value, the program will have to wait that many milliseconds before it logs and move on to the next element. This isn't good because the program may take a long time to execute if the array contains elements with large values.

how do you think the internet and social media will impact global communities in the next five years?

Answers

I do think that the internet and social media will impact global communities in the next five years as it will bring about huge growth in the nations economy and also more improvement in the healthcare system.

What is social media, and how does it affect the neighborhood?

In actuality, social media can be advantageous for society. People may connect and their relationships may become deeper as a result. Student learning and development are also encouraged by social media. Additionally, it can help firms grow their clientele and increase their revenue.

Therefore, Future communication will be based on the framework established by what is currently referred to as social media, but it will look very different. By 2033, the amount of data that will be accessible to everyone as well as its ability to influence decisions will have undergone the most significant change.

Learn more about social media  from

https://brainly.com/question/3653791

#SPJ1

Q: Define the following terms:
(i) Computer
(ii) Program
(iii) Data

Answers

i) an electronic device for storing and processing data according to instructions given to it in a variable program. -computer
ii) A collection of instructions that performs a specific task when executed by a computer. - program
iii) Data is a collection of numbers gathered to give some information. - data

*IN JAVA*

Write a program whose inputs are four integers, and whose outputs are the maximum and the minimum of the four values.

Ex: If the input is:

12 18 4 9
the output is:

Maximum is 18
Minimum is 4
The program must define and call the following two methods. Define a method named maxNumber that takes four integer parameters and returns an integer representing the maximum of the four integers. Define a method named minNumber that takes four integer parameters and returns an integer representing the minimum of the four integers.
public static int maxNumber(int num1, int num2, int num3, int num4)
public static int minNumber(int num1, int num2, int num3, int num4)

import java.util.Scanner;

public class LabProgram {

/* Define your method here */

public static void main(String[] args) {
/* Type your code here. */
}
}

Answers

The program whose inputs are four integers is illustrated:

#include <iostream>

using namespace std;

int MaxNumber(int a,int b,int c,int d){

int max=a;

if (b > max) {

max = b;}

if(c>max){

max=c;

}

if(d>max){

max=d;

}

return max;

}

int MinNumber(int a,int b,int c,int d){

int min=a;

if(b<min){

min=b;

}

if(c<min){

min=c;

}

if(d<min){

min=d;

}

return min;

}

int main(void){

int a,b,c,d;

cin>>a>>b>>c>>d;

cout<<"Maximum is "<<MaxNumber(a,b,c,d)<<endl;

cout<<"Minimum is "<<MinNumber(a,b,c,d)<<endl;

}

What is Java?

Java is a general-purpose, category, object-oriented programming language with low implementation dependencies.

Java is a popular object-oriented programming language and software platform that powers billions of devices such as notebook computers, mobile devices, gaming consoles, medical devices, and many more. Java's rules and syntax are based on the C and C++ programming languages.

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1

Downloading what appears to be a legitimate app, a user installs malware which contains keylogging software. What type of breach is the downloading of malware?
CIA Traid -
explain

Answers

Downloading what appears to be a legitimate app, a user installs malware which contains keylogging software. The type of breach that this downloading of malware is  called option B: integrity.

What is CIA Traid about?

The CIA triad, also known as confidentiality, integrity, and availability, is a concept created to direct information security policies inside a company. To avoid confusion with the Central Intelligence Agency, the approach is sometimes frequently referred to as the AIC triad (availability, integrity, and confidentiality).

Note that In the event of a cyber breach, the CIA triad offers organizations a clear and thorough checklist to assess their incident response strategy. The CIA trio is particularly crucial for identifying vulnerability sources and aiding in the investigation of what went wrong once a network has been infiltrated.

Learn more about malware from

https://brainly.com/question/399317
#SPJ1

See full question below

Downloading what appears to be a legitimate app, a user installs malware which contains keylogging software. What type of breach is the downloading of malware?

answer choices

Confidentiality

Integrity

Can someone help me out with a code. Code's in python write a function that returns the longest common prefix of two strings. For example, the longest
common prefix of distance and disinfection is dis. The header of the method is:
def prefix(s1, s2)
If the two strings have no common prefix, the method returns an empty string.
Write a main function that prompts the user to enter two strings and displays their common
prefix.
here's what I have currently but its not working.
def longestCommonPrefix(self, arr):

arr.sort(reverse = False)
print(arr)
n= len(arr)
str1 = arr[0]
str2 = arr[n-1]

n1 = len(str1)
n2 = len(str2)
result = ""
j = 0
i = 0

while(i <= n1 - 1 and j <= n2 - 1):
if (str1[i] != str2[j]):
break
result += (str1[i])

i += 1
j += 1

return (result)

Answers

Just 10 lines of code.

from functools import reduce

list = []

def compare():

   calc = [reduce(lambda a, b: a if a == b else None, x) for x in zip(*list)] + [None]

   return list[0][:calc.index(None)]

   

list.append(input("Enter the first string: "))

list.append(input("Enter the second string: "))

print(compare())


You are reorganizing the drive on your computer. You move several files to a new folder located on the same partition. When you move the files to the new folder,
what happens to their permissions?

Answers

Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.

What is a VPN, and why do businesses use them?An encrypted connection between user devices and one or more servers is established by a virtual private network (VPN), a service that provides Internet security. A VPN can safely link a user to the internal network of a business or to the Internet at large. Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.  The ultimate objective in both situations is to keep web traffic, especially traffic with proprietary data, off the public Internet.

To Learn more about VPN refer to:

https://brainly.com/question/16632709

#SPJ9

Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.

What is a VPN, and why do businesses use them?An encrypted connection between user devices and one or more servers is established by a virtual private network (VPN), a service that provides Internet security.A VPN can safely link a user to the internal network of a business or to the Internet at large.Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.  The ultimate objective in both situations is to keep web traffic, especially traffic with proprietary data, off the public Internet.

To Learn more about VPN refer to:

brainly.com/question/16632709

#SPJ9

What hardware component is the main brain of the computer system that is responsible for all the activities of the processor stage of the IPOS cycle

Answers

Answer:

It is the Central Processing Unit (CPU)

Which string method returns true if the character is an uppercase letter?
letter =input("Enter a letter: ")
Oisupper(letter)
Oletter.isUpper()
Oletter.isupper()
OisUpper(letter)

Answers

Answer:

Oletter.isupper()

Explanation:

isupper is all lowercase and it is a method that belongs to a string, so it is letter.isupper()

Answer: letter.isupper()

Explanation:              


Why is the I/O subsystem called a subsystem?

Answers

The I/O subsystem manages all peripheral device communication with the central processor. Hardware such as disc drives, tape drives, and printers are examples of peripheral devices.

What is an IO subsystem?

The I/O subsystem manages all peripheral device communication with the central processor. Hardware such as disc drives, tape drives, and printers are examples of peripheral devices.

Between input handlers and input devices (such as a keyboard, mouse, joystick, and so on), the Input subsystem serves as an abstraction layer. The input devices provide input events by capturing inputs from user activities or from external sources. For instance, pressing a key causes an input event.

The kernel, an I/O subsystem based on the hardware and device-driver infrastructure, offers a number of functions including scheduling, caching, spooling, device reservation, and error handling. Additionally, the I/O subsystem is in charge of safeguarding itself against rogue programmes and malevolent users.

To learn more about i/o sub system refer to:

https://brainly.com/question/4274507

#SPJ1

The I/O subsystem manages all peripheral device communication with the central processor. Hardware such as disc drives, tape drives, and printers are examples of peripheral devices.

What is an IO subsystem?The I/O subsystem manages all peripheral device communication with the central processor. Hardware such as disc drives, tape drives, and printers are examples of peripheral devices.Between input handlers and input devices (such as a keyboard, mouse, joystick, and so on), the Input subsystem serves as an abstraction layer. The input devices provide input events by capturing inputs from user activities or from external sources. For instance, pressing a key causes an input event.The kernel, an I/O subsystem based on the hardware and device-driver infrastructure, offers a number of functions including scheduling, caching, spooling, device reservation, and error handling. Additionally, the I/O subsystem is in charge of safeguarding itself against rogue programmers and malevolent users.

To learn more about  I/O subsystem refer to:

https://brainly.com/question/20331489

#SPJ1

Give some examples of when either breaking the rules or following the rules lead to greater good

Answers

Answer:

Sometimes breaking a rule can lead to a positive outcome, especially if the rule prevents the positive. But on the other hand, following the rules, can also lead to the greater good, if the rule doesn't prevent the good from happening.

Explanation:

Write a simple computer program that asks a user to input their name and email address, and then displays a message that tells the person that you will be contacting them using the email address they entered.

Answers

name = input("Enter your name: ")

email = input("Enter you e-mail: ")

print("Hi",name,"we can contact you via your e-mail address which is",email)

C++ Perform the task specified by each of the following statements:

a) Write the function header for function zero that takes a long integer array parameter bigIntegers and does not return a value.

b) Write the function prototype for the function in part (a).

c) Write the function header for the function add1AndSum that takes an integer array parameter oneTooSmall and returns an integer.

d) Write the function prototype for the function described in part (c).

Answers

Using the knowledge in computational language in C++ it is possible to write the code that write the function header for function zero that takes a long integer array parameter bigIntegers and does not return a value.

Writting the code:

a) void zero (long bigIntegers[], int size) //function header

{

//Body of function

}

b) void zero (long [], int); //function prototype

c) int add1AndSum (int oneTooSmall[], int size)//function header

{

//Body of function

}

d) int add1AndSum (int [], int); //function prototype

See more about C++ at brainly.com/question/29225072

#SPJ1

SMCS School has hired you to set up an Internet connection within the school premises. The Internet connection will be utilized by both the junior and senior sections of the school situated in two different buildings on the same campus. Which of the following types of networks will you install in this scenario?

Answers

The network that will be install in the school premises and will be utilized by both the junior and senior sections of the school situated in two different buildings on the same campus is CAN (Campus Area Network).

Different Type of Networks:

Option 1 : MAN

Metropolitan Area Network is used to set up an Internet connection within the city.

So, this is the wrong option.

Option 2: WAN

Wide Area Network is used to setup an internet connection over a state, province or country.

So, this is the wrong option.

Option 3: CAN

Campus area network is used to setup internet connection within a limited geographical area like school campus, university campus etc. Given scenario is, the Internet connection will be utilized by both the junior and senior sections of the school situated in two different buildings on the same campus. When internet connection is to be used within the campus i.e., between two or three buildings then campus Area Network must be used there.

So, this is the Correct answer.

Option 4: LAN

Local Area Network is used to setup internet connection over the smallest area such as one school building, college buliding but not within the overall campus.

So, this is the wrong option.

To know more about network, visit: https://brainly.com/question/1167985

#SPJ1

Which is true about a gas? Choose the correct answer. Responses It changes to a liquid when it heats up. It changes to a liquid when it heats up. It takes up a definite amount of space. It takes up a definite amount of space. It takes up a definite amount of space but does not have a definite shape. It takes up a definite amount of space but does not have a definite shape. It does not take up a definite amount of space and does not have a definite shape. It does not take up a definite amount of space and does not have a definite shape.

Answers

A gas does not take up a definite amount of space and does not have a definite shape.

What are the properties of a gas?

There are four basic states of matter, with gas being one of them. A pure gas can be composed of single atoms, elemental molecules derived from a single type of atom, or complex molecules derived from a combination of atoms. There are many different pure gases in a gas mixture like air.

Three characteristics distinguish gas from liquids or solids they come from:

(1) they are easily compressed,

(2) they expand to fill their containers, and

(3) they take up a lot more area than solids or liquids.

To learn more about gas, use the link given
https://brainly.com/question/25649765
#SPJ9

which country did poker originate from?

Answers

Poque, a game that dates back to 1441 and that was supposedly invented in Strasbourg, seems to be the first early evidence of the French origin of the game. Poque in particular used a 52-card deck

France/French

Other Questions
when an investment trust fund makes an unsolicited distribution to a government that is participating in an investment pool, which account should be debited Evaluate the extent to which Reform Movements during the Market Revolution helped shape Americas democratic identity if a company plans to sell 48,000 units of product but sells 60,000, the most appropriate comparison of the cost data associated with the sales will be by a budget based on a shift to the left of a supply curve is caused by: question 8 options: a) a technological improvement in production. b) an increase in the number of buyers. c) an increase in the cost of an input. d) an increase in the number of sellers. What are antibiotics? please answer calculate the density of a solid substance if a cube measuring 2.02 cm on one side has a mass of 101 g. In what visual ways does the creator of this graphic novel build suspense for the battle with the dragon? Be sure to provide evidence in your answer. Also, use proper grammar and mechanics. Brooke is learning about electronic devices that use electric current to encode information. She learns that when a person speaks into the microphone of a telephone, the sound wave generated by the persons voice is changed into an electronic signal. This electronic signal is then transmitted to another telephone where it is converted back to a sound wave so the other person can hear the voice. The sound wave is encoded by varying the voltage of the electronic signal. Brooke learns that the voltage can be changed in two ways, resulting in two types of electronic signals: analog and digital. Figure 1 and Figure 2 represent these two types of signals. Identify the type of signal represented by each figure. Explain your reasoning. in which section of the movement does haydn seem to be playing with the listener's expectations the most? Ver en espaol Duncan works 6 1 2 hours per week tutoring other students in math. Each week, he puts 1 5 of his earnings from tutoring aside to save up for a new bike. If Duncan earns $14.50 per hour, how much money does he save each week? $ item 3 george jefferson established a trust fund that will provide $221,500 per year in scholarships. the trust fund earns an annual return of 3.8 percent. how much money did mr. jefferson contribute to the fund assuming that only income is distributed? A middle school principal is signing the diplomas of the school's graduating eighth graders. She previously signed 37 diplomas. Now, she is signing more diplomas at a rate of 0.5 per second.Write an equation that shows how the total number of diplomas signed, y, depends on the number of seconds the principal spends signing them, x.y= what are the similarities and differences you observe between the anatomy of the sheep brain and the anatomy of the human brain? what structures were you able to visualize over the course of the dissection? from a group of 12 students, we want to select a random sample of 5 students to serve on a university committee. how many combinations of random samples of 5 students can be selected? How do the basic characteristics of free enterprise support the idea that the united states is a land of opportunity?. n (x) = 4x + 4; n(x) = 16X = Nmero 5 five pls help me Select the correct answer. The energy entering this system is equal to the energy leaving the system. Based on the law of conservation of energy, how many units of energy are entering the system? Illustration of squared labeled system. The arrows on the right side line of the square and the bottom line of the square are pointing out with energy values 10 and 5 units. The arrow on the top line with question mark is facing into the square. A. 5 units B. 10 units C. 15 units D. 20 units a 10-kg object is on a table, the coefficient of static and kinetic friction between the object and the table is 0.4 and 0.2, respectively. calculate the frictional force applied on the object if a horizontal force of 50n is applied on the object? (free-fall acceleration g Use the following sequence to complete the parts: 8, 5, 2, -1,...Is this arithmetic or geometric? (Type A or G)What are the NEXT 3 terms?What is the equation? t(n) =What would be the 100th term?n+Is-345 a part of the sequence? (Type Y or N)