Questions
Write a Java program to print the pattern of asterisks shown below. For i=1 * For...

Write a Java program to print the pattern of asterisks shown below.

For i=1

*

For i=2

*

* *

For i=3

*

**

* * *

For i=n

*

* *

* * *

… … …

* * * * * * ……… n

In: Computer Science

Anyone can Give me an information about " Database System " which contains the definition, advantage,...

Anyone can Give me an information about

" Database System "

which contains the definition, advantage, component, disadvantage, applications, language, architected, levels, models, actors and operations.

In: Computer Science

Use C programming to Implement the breadth-first tree traversal. The tasks are: a) Build the tree....

Use C programming to Implement the breadth-first tree traversal. The tasks are:

a) Build the tree.

b) Perform breadth first traversal on the tree that you have built at step

a).

Note: "Please comment the program"

In: Computer Science

How do I implement public class CircularArrayQueue<E> extends AbstractQueue <E> and test the methods with junit?

How do I implement
public class CircularArrayQueue<E> extends AbstractQueue <E> and test the methods with junit?

In: Computer Science

SQL is our language for relational databases - do you think it's an adequate "language" for...

SQL is our language for relational databases - do you think it's an adequate "language" for database creation and manipulation?

Please help answer this.

In: Computer Science

Using double precision floating point arithmetic, write a( MIPS )program that will convert input temperatures in...

Using double precision floating point arithmetic, write a( MIPS )program that will convert input temperatures in Fahrenheit to Celsius. The program should prompt the user for a temperature in Fahrenheit and then print the corresponding temperature in Celsius. The formula for the conversion is:

C = 5/9 * (F – 32)

In: Computer Science

Write the following easy Python functions: 1) Write the function named roundDollars(). The function has one...

Write the following easy Python functions:

1) Write the function named roundDollars(). The function has one input, a String named amountStr which consists of a dollar-formatted amount, such as "$ 1,256.86". The returned value is an int representing the number of rounded "dollars" in the amount, (1257 in the sample shown here). You will need to scrub, format and parse the input, then use arithmetic to determine how many rounded dollars the amount contains.

roundDollars("$ 1,256.86") → 1257

roundDollars("$ 0.42") → 0

roundDollars("$375.00") → 3752

2) Write the function named lineItem() that formats an item on a receipt. The function has two parameters, a String description and a double price. Return a formatted string where description is left-aligned in a column 15 wide and the price is right-aligned in a column 10 wide with two decimals. Thousands should be separated by commas but there should be no dollar sign. For example:

lineItem("Toaster", 24) → "Toaster 24.00"

lineItem("Orange Juice", 3.59) → "Orange Juice 3.59"

lineItem("Carbon Fiber Bike", 1129) → "Carbon Fiber Bi 1,129.00"

3) Write the function named change() that returns a list of coins, formatted in String form, returned from a purchase. The function has two parameters, the amountTendered and the purchasePrice, both doubles. Your function calculates the change due, and then formats the number of dollars, quarters (.25), dimes (.10), nickels (.05) and pennies (.01) due. Each number will be an int and it will be formatted in a column 5 wide. (In other words, your output will have exactly 5 columns and your returned String will be 25 characters long.

change(20, 3.89) → ' 16 0 1 0 1'

change(100, 38.12) → ' 61 3 1 0 3'

change(.25,.20) → ' 0 0 0 1 0'

In: Computer Science

You are the Senior Systems Administrator for a community based charity. Your charity is involved in...

You are the Senior Systems Administrator for a community based charity. Your charity is involved

in locating and providing accommodation, mental health services, training and support services to

disadvantaged people in the community.

Your charity currently runs a small data centre that has some 50 x86 64 bit servers running mainly

Windows Server 2008 R2 for desktop services, database and file services. It also has about 10 Red

Hat Enterprise Linux 5 servers for public facing Web pages, services and support.

Your charity is considering joining a community cloud provided by a public cloud vendor in order

to provide a number of applications to all 500 support staff and administrative users. The

community cloud would also be used to store the charity’s 200TB of data. This data contains a

considerable amount of confidential information about the people to whom the charity provides

services. A small number of the charity’s applications are mission critical and the data that those

applications use is both confidential and time sensitive.

The cloud vendor has made a presentation to management that indicates that operational costs

will drop dramatically if the cloud model is adopted. You are asked to assess whether this model is

in the best interests of the business.

Describe the steps that you would take to do a Risk Management assessment of this proposal.

20. Ramgovind, Eloff and Smith proposed in their 2010 paper that an information security analysis

should include the requirements of Identification and authorisation, authorisation,

confidentiality, Integrity, non-repudiation and availability. Discuss whether these

requirements are adequate for a proper security assessment for a proposed move to an IaaS

model for the charity.

21. A potential migration to the Cloud raises many issues around Governance. Discuss the

governance issues that you see arising from a migration of on-premise servers to an IaaS

model.

22. The charity’s board has proposed a move to migrate its servers to an IaaS model. Discuss the

methods that you would propose to the board to assess the SLA of the Cloud Provider. (10

marks)

23. The board has decided, as an initial step, to move the office automation and database servers

to the AWS cloud in order to begin the migration process, and test their strategy. Describe ten

steps that you would include in the plan to migrate these services.

In: Computer Science

C++please add menu choice on main.cpp with these function below. output : Hello! let's play a...

C++please add menu choice on main.cpp with these function below.

output :

Hello! let's play a game

a.Exit

b.Set Player's Names

c.Play in 2 Player Mode

d.Play in 1 Player Mode (vs. Computer)


//////////////////HEADER //////////////////////

#ifndef MYHEADER_H_
#define MYHEADER_H_
#include<iostream>
#include<iomanip>
#include<cstdlib>

using namespace std;

const int NUM_ROWS = 3;
const int NUM_COLS = 3;

int sum;

void OutputInstruct()
{
   cout << "\nPlay the game\n"<<endl;
}

/******************************************************************************
* InitBoard
* This function initializes each spot in the board to a space ' '.
* RETURNS: Board initialized with all spaces
*****************************************************************************/

void InitBoard(char board[][3]) // tic tac toe board – OUT
{
   for(int i = 0; i <= NUM_ROWS; i++)
       for(int j = 0; j <= 3; j++)
           board[i][j] = ' ';
}

/******************************************************************************
* DisplayBoard
* This function outputs the tic tac toe board including the tokens
* played in the proper format (as described below).

   1        2        3
1[1][1]. [1][2]. [1][3]
2[2][1]. [2][2]. [2][3]
3[3][1]. [3][2]. [3][3]

* RETURNS: nothing
* Outputs the current state of the board
*****************************************************************************/

void DisplayBoard(const char board[][3]) // tic tac toe board
{
   cout << setw(10) << "1" << setw(8) << "2" << setw(9) << "3\n";
   for (int i=0; i < 3; i++)
   {
       cout << setw(7)<< "[" << i+1 << "][1] | " << "[" << i+1;
       cout << "][2] | " << "[" << i+1 << "][3]" << endl;
       cout << setw(14)<< "|" << setw(9) << "|" << endl;

       for (int j = 0; j < 3; j++)
       {
           switch(j)
           {
               case 0: cout << i + 1 << setw(9) << board[i][j];
               cout << setw(4) << "|";
               break;

               case 1: cout << setw(4) << board[i][j];
               cout << setw(5) << "|";
               break;

               case 2: cout << setw(4) << board[i][j] << endl;
               break;

               default: cout <<"ERROR!\n\n";
           }
       }

       cout << setw(14)<< "|" << setw(10) << "|\n";
       if (i != 2)
       {
       cout << setw(32) << "--------------------------\n";
       }
   }
   cout << endl << endl;
}

/******************************************************************************
* GetPlayers
* This function prompts the user and gets the input for the players’ names.
* player1 contains the name of the player that is using the X token.
* player2 contains the name of the player that is using the O token.
*
* RETURNS: the token opposite of the one in which it receives.
*****************************************************************************/

void GetPlayers(string& player1, string& player2)
{
   cout << "\nEnter the name of player 1(X) : ";
   getline (cin, player1);
   cout << "Enter the name of player 2(O) : ";
   getline (cin, player2);
}

void GetAndCheckInp(char board[][3], char token, string player1, string player2)
{
   int row;
   int col;
   bool valid;

   do
   {
       if (token == 'X')
       {
           cout << player1 << "'s turn What's your play? : "<<endl;

           cout << "Row? : "<<endl;
           cin >> row;

           cout << "Column? : "<<endl;
           cin >> col;
       }

       else if (token == 'O')
       {
           cout << player2 << "'s turn: What's your play?"<<endl;

           cout << "Row? : "<<endl;
           cin >> row;

           cout << "Column? : "<<endl;
           cin >> col;
       }

       row--;
       col--;

       if ((row > NUM_ROWS || row < 0) || (col > 3 || col < 0))
       {
           valid = false;
           cout << "Please chose a space on the board." << endl;
       }

       else if (board[row][col] != ' ')
       {
           valid = false;
           cout << "That space is already taken, choose another"<<endl;
       }

       else
       {
           valid = true;
           board[row][col] = token;
           sum++;
       }

   } while (!valid);
}

/******************************************************************************
* SwitchToken
*
* RETURNS: the token opposite of the one in which it receives.
*****************************************************************************/

char SwitchToken(char token) // current player’s token ('X' or 'O') - IN
{
   if (toupper(token) == 'X')
   {
       token = 'O';
   }

   else if (toupper(token) == 'O')
   {
       token = 'X';
   }

   return token;
}

/******************************************************************************
* CheckWin
* This function checks to see if either player has won.
* RETURNS the character value of the player that won or T if it was a tie
* or N if no won
*****************************************************************************/

char CheckWin(const char board[][3]) // tic tac toe board - IN
{
   char win = ' ';

   // Checks for three same value horizental
   for (int i = 0; i < 3; i++)
       if (board[i][0] == board[i][1] && board[i][1] == board[i][2]) return board[i][0];

   // Checks for three same value vertical
   for (int i = 0; i < 3; i++)
       if (board[0][i] == board[1][i] && board[1][i] == board[2][i]) return board[0][i];

   // Checks for three same value diagnal
   if ((board[0][0] == board[1][1] && board[1][1] == board[2][2]) || (board[0][2] == board[1][1] && board[1][1] == board[2][0]))
       return board[1][1];

   // Checks if there is any square left
   for (int i = 0; i < 3; i++)
       for (int j = 0; j < 3; j++)
           if (board[i][j] == ' ')
               return ' ';

   // returns draw
   return 'T';
}

/******************************************************************************
* OutputWinner
*
* RETURNS: nothing
* Displays the winner’s name
*****************************************************************************/

void OutputWinner(char whoWon, string player1, string player2)
{
   if (whoWon == 'X')
   {
       cout << player1 << " has won the game"<<endl;
   }

   else if (whoWon == 'O')
   {
       cout << player2 << " has won the game"<<endl;;
   }

   else if (whoWon == 'T')
   {
       cout << player1 << " and " << player2 << " have tied"<<endl;;
   }
}

#endif

>>>>>>>>>>>>>Main program >>>>>>>>>>>>>>>>>>>>>>>

#include "myheader.h"

int main()
{
   const int NUM_ROWS = 3;
   const int NUM_COLS = 3;

   // Variables
   string player1;
   string player2;

   GetPlayers(player1, player2);

   bool again;

   do
   {
       // Variables
       bool won;
       char board[NUM_ROWS][NUM_COLS];
       char token;
       char input;

       won = false;
       again = true;

       InitBoard(board);
       OutputInstruct();

       token = 'O';

       while(!won)
       {
           token = SwitchToken(token);
           GetAndCheckInp(board, token, player1, player2);

           if (CheckWin(board) != ' ')
           {
               won = true;
           }

           DisplayBoard(board);
       }

       OutputWinner(CheckWin(board), player1, player2);

       //asking user to play again
       cout<<"\nPlay again? (Y/N) : ";
       cin>>input;

       again = toupper(input)=='Y';

   } while(again);

   return 0;
}

In: Computer Science

Write java statements that compare objects, obj1 and obj2, using the getClass() method.

Write java statements that compare objects, obj1 and obj2, using the getClass() method.

In: Computer Science

Given the following C function prototype which accepts an integer argument, complete the implementation of the...

Given the following C function prototype which accepts an integer argument, complete the implementation of the function in C language to return the number of 1’s in the binary representation of the number passed.

For example if the number is (011100011 ) then the function should return 5 as the number of 1s. Please remember that an integer is 32 bits long.

USE the following function int countOnes(int number)

Write a full c program that has the header required and will accept the user entry.

In: Computer Science

1. (a)Can you configure your browser to open multiple simultaneous connections to a Web site? (b)What...

1. (a)Can you configure your browser to open multiple simultaneous connections to a Web site? (b)What are the advantages and disadvantages of having a large number of simultaneous TCP connections?

In: Computer Science

HW4: Practicing function definition and invocation. File access is also implemented. 1) Define a function "converT()"...

HW4: Practicing function definition and invocation. File access is also implemented. 1) Define a function "converT()" that can take a file name, reads line by line to convert temperatures, and returns line by line. Each line in a file begins with a temperature in number {integer or floating point}, followed by one of the temperature unit {"F", "f", "C", "c"}. If "F" or "f", convert the temperature to Celsius. If "C" or "c", convert the temperature to Fahrenheit. The format of returning value is a converted temperature followed by the converted temperature unit. For example, if a line is 45 F Then, the function returns 7.22 C 2) A file name is given by users. Assume that the file name is in fully-qualified-path. With this file name, the function is invoked. For example, it runs as follows: Enter file name: C:\\Users\\jyoon\\Desktop\\tempFile.data 45.00° in F is 7.22° in C 23.00° in c is 73.40° in F 11.00° in C is 51.80° in F 76.00° in F is 24.44° in C 88.00° in F is 31.11° in C 12.00° in F is -11.11° in C 1.00° in C is 33.80° in F Note that the file tempFile.data in the C:\Users\jyoon\Desktop directory contains 45 F 23 c 11 C 76 F 88 F 12 F 1 C SUBMIT: 1) Your source coding file. The file shows each every statement as shown the steps above, so the execution of the file shows the all print statements. 2) Screenshot(s) that may show the integrity of your work

In: Computer Science

Consider the following SQL script. QUESTION: Which best completes the following statement(Select 3): Table SELECT TABLE...

Consider the following SQL script.

QUESTION: Which best completes the following statement(Select 3):

Table SELECT TABLE NAME is in SELECT NORMAL FORM and is SELECT FORM TYPE

***Note: The answer choices are at the bottom

Assume also that even if there are some issues you cannot resolve them. Report on the current state of the database based on the code that you have been provided.

CREATE TABLE ASSIGNMENT (
ASSIGN_NUM int,
ASSIGN_DATE datetime,
PROJ_NUM varchar(3),
EMP_NUM varchar(3),
ASSIGN_HOURS float(8),
ASSIGN_CHG_HOUR numeric(5,2),
ASSIGN_CHARGE numeric(5,2)
);
INSERT INTO ASSIGNMENT VALUES('1001','2018-3-4','15','103','2.6','84.5','219.7');
INSERT INTO ASSIGNMENT VALUES('1002','2018-3-4','18','118','1.4','18.36','25.7');
INSERT INTO ASSIGNMENT VALUES('1003','2018-3-5','15','101','3.6','105','378');
INSERT INTO ASSIGNMENT VALUES('1004','2018-3-5','22','113','2.5','48.1','120.25');
INSERT INTO ASSIGNMENT VALUES('1005','2018-3-5','15','103','1.9','84.5','160.55');
INSERT INTO ASSIGNMENT VALUES('1006','2018-3-5','25','115','4.2','96.75','406.35');
INSERT INTO ASSIGNMENT VALUES('1007','2018-3-5','22','105','5.2','105','546');
INSERT INTO ASSIGNMENT VALUES('1008','2018-3-5','25','101','1.7','105','178.5');
INSERT INTO ASSIGNMENT VALUES('1009','2018-3-5','15','105','2','105','210');
INSERT INTO ASSIGNMENT VALUES('1010','2018-3-6','15','102','3.8','96.75','367.65');
INSERT INTO ASSIGNMENT VALUES('1011','2018-3-6','22','104','2.6','96.75','251.55');
INSERT INTO ASSIGNMENT VALUES('1012','2018-3-6','15','101','2.3','105','241.5');
INSERT INTO ASSIGNMENT VALUES('1013','2018-3-6','25','114','1.8','48.1','86.58');
INSERT INTO ASSIGNMENT VALUES('1014','2018-3-6','22','111','4','26.87','107.48');
INSERT INTO ASSIGNMENT VALUES('1015','2018-3-6','25','114','3.4','48.1','163.54');
INSERT INTO ASSIGNMENT VALUES('1016','2018-3-6','18','112','1.2','45.95','55.14');
INSERT INTO ASSIGNMENT VALUES('1017','2018-3-6','18','118','2','18.36','36.72');
INSERT INTO ASSIGNMENT VALUES('1018','2018-3-6','18','104','2.6','96.75','251.55');
INSERT INTO ASSIGNMENT VALUES('1019','2018-3-6','15','103','3','84.5','253.5');
INSERT INTO ASSIGNMENT VALUES('1020','2018-3-7','22','105','2.7','105','283.5');
INSERT INTO ASSIGNMENT VALUES('1021','2018-3-8','25','108','4.2','96.75','406.35');
INSERT INTO ASSIGNMENT VALUES('1022','2018-3-7','25','114','5.8','48.1','278.98');
INSERT INTO ASSIGNMENT VALUES('1023','2018-3-7','22','106','2.4','35.75','85.8');

/* -- */


CREATE TABLE DATA_ORG(
PROJ_NUM varchar(3),
PROJ_NAME varchar(25),
EMP_NUM varchar(3),
EMP_NAME varchar(25),
JOB_CLASS varchar(25),
CHG_HOUR numeric(5,2),
HOURS float(8)
);
INSERT INTO DATA_ORG_1NF VALUES('15','Evergreen','103','June E. Arbough','Elect. Engineer','84.5','23.8');
INSERT INTO DATA_ORG_1NF VALUES('15','Evergreen','101','John G. News','Database Designer','105','19.4');
INSERT INTO DATA_ORG_1NF VALUES('15','Evergreen','105','Alice K. Johnson *','Database Designer','105','35.7');
INSERT INTO DATA_ORG_1NF VALUES('15','Evergreen','106','William Smithfield','Programmer','35.75','12.6');
INSERT INTO DATA_ORG_1NF VALUES('15','Evergreen','102','David H. Senior','Systems Analyst','96.75','23.8');
INSERT INTO DATA_ORG_1NF VALUES('18','Amber Wave','114','Annelise Jones','Applications Designer','48.1','24.6');
INSERT INTO DATA_ORG_1NF VALUES('18','Amber Wave','118','James J. Frommer','General Support','18.36','45.3');
INSERT INTO DATA_ORG_1NF VALUES('18','Amber Wave','104','Anne K. Ramoras *','Systems Analyst','96.75','32.4');
INSERT INTO DATA_ORG_1NF VALUES('18','Amber Wave','112','Darlene M. Smithson','DSS Analyst','45.95','44');
INSERT INTO DATA_ORG_1NF VALUES('22','Rolling Tide','105','Alice K. Johnson','Database Designer','105','64.7');
INSERT INTO DATA_ORG_1NF VALUES('22','Rolling Tide','104','Anne K. Ramoras','Systems Analyst','96.75','48.4');
INSERT INTO DATA_ORG_1NF VALUES('22','Rolling Tide','113','Delbert K. Joenbrood *','Applications Designer','48.1','23.6');
INSERT INTO DATA_ORG_1NF VALUES('22','Rolling Tide','111','Geoff B. Wabash','Clerical Support','26.87','22');
INSERT INTO DATA_ORG_1NF VALUES('22','Rolling Tide','106','William Smithfield','Programmer','35.75','12.8');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','107','Maria D. Alonzo','Programmer','35.75','24.6');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','115','Travis B. Bawangi','Systems Analyst','96.75','45.8');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','101','John G. News *','Database Designer','105','56.3');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','114','Annelise Jones','Applications Designer','48.1','33.1');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','108','Ralph B. Washington','Systems Analyst','96.75','23.6');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','118','James J. Frommer','General Support','18.36','30.5');
INSERT INTO DATA_ORG_1NF VALUES('25','Starflight','112','Darlene M. Smithson','DSS Analyst','45.95','41.4');

/* -- */

CREATE TABLE EMPLOYEE (
EMP_NUM varchar(3),
EMP_LNAME varchar(15),
EMP_FNAME varchar(15),
EMP_INITIAL varchar(1),
EMP_HIREDATE datetime,
JOB_CODE varchar(3)
);
INSERT INTO EMPLOYEE VALUES('101','News','John','G','2000-11-8','502');
INSERT INTO EMPLOYEE VALUES('102','Senior','David','H','1989-7-12','501');
INSERT INTO EMPLOYEE VALUES('103','Arbough','June','E','1997-12-1','503');
INSERT INTO EMPLOYEE VALUES('104','Ramoras','Anne','K','1988-11-15','501');
INSERT INTO EMPLOYEE VALUES('105','Johnson','Alice','K','1994-2-1','502');
INSERT INTO EMPLOYEE VALUES('106','Smithfield','William','','2005-6-22','500');
INSERT INTO EMPLOYEE VALUES('107','Alonzo','Maria','D','1994-10-10','500');
INSERT INTO EMPLOYEE VALUES('108','Washington','Ralph','B','1989-8-22','501');
INSERT INTO EMPLOYEE VALUES('109','Smith','Larry','W','1999-7-18','501');
INSERT INTO EMPLOYEE VALUES('110','Olenko','Gerald','A','1996-12-11','505');
INSERT INTO EMPLOYEE VALUES('111','Wabash','Geoff','B','1989-4-4','506');
INSERT INTO EMPLOYEE VALUES('112','Smithson','Darlene','M','1995-10-23','507');
INSERT INTO EMPLOYEE VALUES('113','Joenbrood','Delbert','K','1994-11-15','508');
INSERT INTO EMPLOYEE VALUES('114','Jones','Annelise','','1991-8-20','508');
INSERT INTO EMPLOYEE VALUES('115','Bawangi','Travis','B','1990-1-25','501');
INSERT INTO EMPLOYEE VALUES('116','Pratt','Gerald','L','1995-3-5','510');
INSERT INTO EMPLOYEE VALUES('117','Williamson','Angie','H','1994-6-19','509');
INSERT INTO EMPLOYEE VALUES('118','Frommer','James','J','2006-1-4','510');


/* -- */

CREATE TABLE JOB (
JOB_CODE varchar(3),
JOB_DESCRIPTION varchar(25),
JOB_CHG_HOUR numeric(5,2)
);
INSERT INTO JOB VALUES('500','Programmer','35.75');
INSERT INTO JOB VALUES('501','Systems Analyst','96.75');
INSERT INTO JOB VALUES('502','Database Designer','105');
INSERT INTO JOB VALUES('503','Electrical Engineer','84.5');
INSERT INTO JOB VALUES('504','Mechanical Engineer','67.9');
INSERT INTO JOB VALUES('505','Civil Engineer','55.78');
INSERT INTO JOB VALUES('506','Clerical Support','26.87');
INSERT INTO JOB VALUES('507','DSS Analyst','45.95');
INSERT INTO JOB VALUES('508','Applications Designer','48.1');
INSERT INTO JOB VALUES('509','Bio Technician','34.55');
INSERT INTO JOB VALUES('510','General Support','18.36');

/* -- */


CREATE TABLE PROJECT (
PROJ_NUM varchar(3),
PROJ_NAME varchar(25),
EMP_NUM varchar(3)
);
INSERT INTO PROJECT VALUES('15','Evergreen','105');
INSERT INTO PROJECT VALUES('18','Amber Wave','104');
INSERT INTO PROJECT VALUES('22','Rolling Tide','113');
INSERT INTO PROJECT VALUES('25','Starflight','101');

Answer Choices:  

ASSIGNMENT

DATA_ORG

EMPLOYEE  

JOB

PROJECT

1NF   

2NF

3NF

BCNF  

Normalized

Intentionally Denormalized

In: Computer Science

/**Programming in C**/ Write a appendArray() function, whose parameters include two one-dimensional arrays of integers, arr1[]...

/**Programming in C**/

Write a appendArray() function, whose parameters include two one-dimensional arrays of integers, arr1[] and arr2[], with sizes size1 and size2, respectively. The function should append all of arr2 to the end of arr1 and return the updated size of arr1. int appendArray(int arr1[], int arr2[], int size1, int size2){

}

Are there any restrictions to the usability of your function when called from main() that should be included with the description of the function in the comments?

In: Computer Science