Questions
A text file called coit20245.txt consists of N lines each containing a name and a family...

A text file called coit20245.txt consists of N lines each containing a name and a family name as follows. N is largest digit of your student id number. Example of coit20245.txt file: Daniel Atkinson Rob Jackson Brian Lara Write a main() method that reads the rows of coit20245.txt and counts the lines which starts with a first letter of your name. You are to provide class comments that describe what the application does. You are also to provide comments that describe what each significant block of code does.

In: Computer Science

goal of this function will be to add an element to an already existing array in...

goal of this function will be to add an element to an already existing array in C/C++.

bool add(structure dir[], int& size, const char nm[], const char ph[]){

//code here

}

add = function name

structure = structure with two fields

{

char name[20];

char phone[13];

}

int& size = # of entries in dir

nm = name that's going to be added

ph = phone that's going to be added.

return true if entry was successfully added, false if there's no more room.

if entry was added, size will reflect the new number of entries in dir.

In: Computer Science

To do a Case Analysis for the following (Background, Problem, Alternative course of action, Evaluating the...

To do a Case Analysis for the following (Background, Problem, Alternative course of action, Evaluating the alternatives, Recommendation, conclusion)

Shantou Real Lingerie Manufacturing Company (Shan- tou) is incorporated in China. Shantou manufactures and exports garments to the United States. Native Group International, Inc. (Native), is a corporation organized under the laws of New York engaged in the business of selling intimate wear to the wholesale and retail market. Between May and November 2013, Native placed dozens of orders with Shantou for lingerie. Following each order, Shantou issued a sales confirmation to Native, which referenced the cost, quantity, and type of goods ordered. These confirmations were signed by a representative of Native. Thereafter, Shantou manufactured the goods in accordance with the requested specifications. Between October 2013 and February 2014, Shantou delivered the goods specified in the confirmations to Native through five separate shipments. Shantou also included in each of the five shipments an invoice, indicating the total balance due, as well as the price, quantity, and type of products shipped. Native accepted each shipment, retained the goods delivered, and never claimed a set-off or credit. The total amount invoiced for the five shipments was $437,562.20. Native made payments totaling $165,522.80, leaving an unpaid balance of $272,040.40. The commu- nications between Shantou and Native were silent with respect to the governing law. Native claimed that there was no written contract between the parties when Shan- tou subsequently filed a lawsuit against Native for the unpaid balance. What law should govern the terms of the parties’ arrangement? Is a written agreement necessary in this case? What are the terms of the parties’ agreement if any? Shantou Real Lingerie Manufacturing Co. v. Native Group International, Ltd., 2016 WL 4532911

In: Economics

Part 1: Create a character array and save your first and last name in it

PROGRAMMING IN C:

Part 1:

Create a character array and save your first and last name in it

Note: You can assign the name directly or you can use the scanf function.

  1. Display your name on the screen.

  2. Display the address (memory location) in hexadecimal notation of the array. (hint: use %p)

  3. Use a for loop to display each letter of your name on a separate line.

Part 2:

Create a one dimensional array and initialize it with 10 integers of your choice.

Create a function and pass the array elements to that function. The function will calculate the average value of the 10 integers and display the result on the screen.

Part 3:

Create a one dimensional array that contains five integers (10, 20, 30, 40 and 50).

Display the elements of the array on screen

Swap the first element (10) with the last element (50) and then display the elements of the array on the screen (after swapping).

In: Computer Science

Zachary Company started year 1 with $345,000 in its cash and common stock accounts. During year...

Zachary Company started year 1 with $345,000 in its cash and common stock accounts. During year 1, Zachary paid $258,750 cash for employee compensation and $79,350 cash for materials.

Required

Determine the total amount of assets and the amount of expense shown on the year 1 financial statements assuming Zachary used the labor and materials to make 1,500 chairs. Further, assume that Zachary sold 1,200 of the chairs it made. State the name(s) of the expense account(s) shown on the income statement.

Determine the total amount of assets and the amount of expense shown on the year 1 financial statements assuming Zachary used the labor and materials to provide dental cleaning services to 500 patients. State the name(s) of the expense account(s) shown on the income statement.

Total assets
Total expenses
Name of the expense
Total assets
Total expenses
Name of the expense

In: Accounting

Please name and discuss an activity that is legal that you wish was illegal. Why do...

Please name and discuss an activity that is legal that you wish was illegal. Why do you wish this activity was illegal?

Why did you name THIS activity over all other possible choices?

Please name and discuss an activity that it illegal, that you would like to make legal.

Why?

Why do you wish this activity was legal?

Why did you choose this activity over all other possible choices?

Please name an activity that is illegal, that you wish to remain illegal, but you would like to see more law enforcement resources applied to prevent or deter this activity.

Why did you choose this activity over all other possible choices?  

What, exactly, is a "black market"?

Please discuss an example of a black market that is new and original

In the "gas lines" example, what are the four alternative forms of allocation?

In: Economics

ENCORE HYDRAULICS DEPARTMENT STAFFING REPORT DEPT NO: 100                          DEPT NAME:    Administ

ENCORE HYDRAULICS DEPARTMENT STAFFING REPORT

DEPT NO: 100                          DEPT NAME:    Administration              

MANAGER: Simon Semple        EMP NO: 48                             LOCATION: 1991 Leslie, Toronto

EMP NAME                              EMP NO                       POSITION CODE     POSITION

Nadia Betz                                22                                            C                      Clerk

Raoul Radniski                         12                                            A                      Accountant

John Smith                               14                                            S                      Supervisor

Raj Singh                                 31                                            C                      Clerk

DEPT NO: 200                          DEPT NAME:    Hydraulics                   

MANAGER: A. Martinez            EMP NO: 16                             LOCATION:      1241 Main St, Ajax

EMP NAME                              EMP NO                       POSITION CODE          POSITION

Lee Goldman                            25                                            E                      Engineer

Paul Prentiss                            15                                            E                      Engineer

Leah Zeltserman                       36                                            EA                    Engineering Assistant

Mark Wong                               8                                              S                      Supervisor

Normalize above user view. Document all steps including UNF, 1NF, Dependencies, 2NF, and 3NF.

In: Computer Science

Write a java program that does the following: a) The user will enter data such as...

Write a java program that does the following:

a)

The user will enter data such as client name and client balance. The user can stop inputting data by entering "stop". The program should store the user inputs as a data member of an array. The type of this array is a class named ClientData.

Below the output should be displayed by the program. The parts in bold are inputs from the user and not hard coded in the program

Client Name: Aaron

Client Balance: 100

Client Name: Barry

Client Balance: 200

Client Name: stop

b) The program will then ask the user to choose a function: Average or Sort or Stop. The program should ask the user "Please choose the next function: Average"

c) The Average program will call another method called BalanceAverage that will display the average of the Client's Balances. The program should output "The average client balance is : 100"

In: Computer Science

I keep getting this error "LetterDemo.cs(21,14): error CS1519: Unexpected symbol `string' in class, struct, or interface...

I keep getting this error "LetterDemo.cs(21,14): error CS1519: Unexpected symbol `string' in class, struct, or interface member declaration"

Can someone please help me.

Here is my code:

using static System.Console;

class LetterDemo

{

   static void Main()

   {

     Letter letter1 = new Letter();

     CertifiedLetter letter2 = new CertifiedLetter();

     letter1.Name = "Electric Company";

     letter1.Date = "02/14/18";

     letter2.Name = "Howe and Morris, LLC";

     letter2.Date = "04/01/2019";

     letter2.TrackingNumber = "i2YD45";

     WriteLine(letter1.ToString());

     WriteLine(letter2.ToString() +

      " Tracking number: " + letter2.TrackingNumber);

   }

}

class Letter

{

  pubic string Name {get; set;}

  pubic string Date {get; set;}

  public new string ToString()

  {

    return(GetType() + " To: " + Name + " Date mailed : " + Date);

  }

}

class CertifiedLetter : Letter

{

  public string TrackingNumber {get; set;}

}



In: Computer Science

The accompanying 2 files (boynames.txt and girlnames.txt) contain the results of a recent census of boy...

The accompanying 2 files (boynames.txt and girlnames.txt) contain the results of a recent census of boy and girl births in the last year. Each record of the files contain a given name and the number of new born children receiving that name. E.g.,

          Matthew 23567          or            Alison 17658

Each name is separated from the number by a blank space.

There are also some common names given to both boys and girls, e.g., Riley. They will appear in both the boy file and the girl file.

Write a PHP script that finds answers to the following questions.

  1. How many names are common to both boys and girls?
  2. List the common names with how many boys and how many girls have that name. Use an HTML table to display this data.
  3. How many total boys and how many total girls were born last year according to the census?

In: Computer Science