Questions
Please code in C#-Visual Studio Tasks The program needs to contain the following A comment header...

Please code in C#-Visual Studio

Tasks

  1. The program needs to contain the following
    1. A comment header containing your name and a brief description of the program
    2. Output prompting the user for the following inputs:
      1. Name as a string
      2. Length of a rectangle as a double
      3. Width of a rectangle as a double
      4. Length of a square as an int
    3. After accepting user input, the program outputs the following:
      1. User name
      2. Area of a rectangle with dimensions matching the inputs
        • Area of a rectangle = Length * Width
      3. Perimeter of a rectangle with dimensions matching the inputs
        • Perimeter of a rectangle = (2 * length) + (2 * Width)
      4. Area of a square with dimensions matching the inputs
        • Area of a square = Length * Length
      5. Perimeter of a square with dimensions matching the inputs
        • Area of a square = 4 * length
    4. Press enter to continue”
    5. ConsolRead(); at the end of your code
  2. Upload the completed .cs file onto the Assignment 2 submission folder. To access the .cs file:
    1. Right click on your program tab
    2. Click “Open containing folder”
    3. The file you are working on will be there with a .cs extention, upload the .cs file

Feedback rubric

Value

Problem

Points

1

No comment header

10

2

Variable type mismatch

2 per variable

3

Areas and perimeters do not match inputs

20

4

Program crashes or does not compile

20

5

No .cs file uploaded

30

L

Late

20

In: Computer Science

Write a C++ program that asks the user to enter a series of single-digit numbers with...

Write a C++ program that asks the user to enter a series of
single-digit numbers with nothing separating them. Read the input
as a C-string or a string object. The program should display the
sum of all the single-digit numbers in the string. For example, if
the user enters 2514, the program should display 12, which is the
sum of 2, 5, 1, and 4. The program should also display the highest
and lowest digits in the string.

It is recommended that you include a function such as int charToInt(char)

The charToInt function
accepts a char and returns the char's value as an integer digit. If
the char is not a digit, the function returns 0.

Remember to use proper formatting and code documentation.

Sample screen output (user input is in bold) :

Enter a series of digits with no spaces between them.
1 2 3 4 5
Incorrect input....?

Enter a series of digits with no spaces between them.
1234 4321
Incorrect input....?

Enter a series of digits with no spaces between them.
1234 srjc
Incorrect input....?

Enter a series of digits with no spaces between them.
srjc 1234
Incorrect input....?

Enter a series of digits with no spaces between them.
987654321
The sum of those digits is 45
The highest digit is 9
The lowest digit is 1

Process returned 0 (0x0)   execution time : 71.074 s
Press any key to continue.

In: Computer Science

Our class is a team of young lawyers, project managers, engineers, and congressional aides who are...

Our class is a team of young lawyers, project managers, engineers, and congressional aides who are all part of the process of helping get this project off the ground. In fact, according to the first letter of your last name, you are the following team: 0-S: Engineer on the GFC team

Somebody sent a secret copy of the report to you at your home address. It has no information in it at all, except for the report showing the proof of the increase in accidents and deaths. The report shows, on its face, that the CE, CLC, CPM, and your Congressional Representative have seen copies of this report. On the front there are these words typed in red: They knew — they buried this. Please save the world! Each of you feel a very loyal tie to your boss and your company/country. You all have mortgages, and families to feed. It is likely if you blow the whistle on this report, you will lose your job and your livelihood. You're not even sure who wrote the study in your envelope or who actually sent it to you. Initial Post Instructions For the initial post, address all of the following: Utilizing your profession's code of ethics, what would be your first step? Who would you talk to first? Would you go to the press? Would you go to your boss? Should you do anything at all?

In: Psychology

HW_6d - Write a struct object to a binary file. Create a new C++ project and...

HW_6d - Write a struct object to a binary file.

  1. Create a new C++ project and name it as:   Cats

  1. Create a Source.cpp file.

  1. Declare a struct named Cat. (in the Source.cpp file, or in a separate header file)

  1. Each Cat object has a name and age.
  • The name data member is a c_string.
  • The age data member is an integer.

  1. Ask the user to enter 3 cats.

  1. Use a while loop to read the information about one cat entered by the user, and write it to a

          binary file named: critters.bin

  • Only one Cat object needs to be declared, because the same object can be used for

     each cat.

  • Use the write() function to write the data to a binary file.
  • The while loop should only execute 3 iterations.

  1. Once the file has been written, the following message should be displayed:

      Record written to file.      (see output)

  1. Turn in a screen print of the binary file, as shown below, along with your code and output.

/* OUTPUT

Enter 3 cat records.

Enter information about a cat:

NAME: Tom

AGE: 5

Enter information about a cat:

NAME: Fluffy

AGE: 3

Enter information about a cat:

NAME: Sweet Pea

AGE: 2

Record written to file.

Press any key to continue . . . */

Please make the code based on C++, and make a description for each code.

In: Computer Science

Discuss how you would expect the financing choices of the following firms to differ and explain...

Discuss how you would expect the financing choices of the following firms to differ and explain the reasons for the differences. (Include international and Caribbean examples where possible) ( for example internal or external, traditional non traditional, bank loan angel investors, personal saving etc)
i. A venture that is considered a family firm, compared to a non-family firm.
ii. A venture that belongs to the food industry that is a sole trading firm, compared to a partnership firm.
iii. An early-stage research and development venture, compared to an established venture that is generating revenue.
iv. A venture with revenues that are growing very rapidly and must expand its working capital base to match, compared to a venture with revenues that are growing at the inflation rate.
v. A venture that is highly profitable and growing, compared to a venture that is growing at a similar rate but has not yet achieved profitability.
vi. A venture that is being undertaken by an entrepreneur who has a significant track record of new venture successes, compared to a venture that is being undertaken by an entrepreneur with no previous new venture experience.
Source: Smith, J., Smith, R. L., Smith, R., & Bliss, R. (2011). Entrepreneurial finance: strategy, valuation, and deal structure. Stanford University Press.
This essay must be between 1500 to 2000 words. The paper should consist of an introduction, body, and conclusion, be doubled-spaced and follow APA 6th edition referencing style.

In: Finance

In 1997, a disagreement arose between Livent Inc. and its auditor, Deloitte and Touche (Deloitte). Livent,...

In 1997, a disagreement arose between Livent Inc. and its auditor, Deloitte and Touche (Deloitte). Livent, which operated several theaters for live stage production, had sold the naming rights to one of its theaters to AT&T for $12.5 million. The agreement was oral, and one of the theaters was under construction. The auditors for Deloitte believed that only a portion of the deal should be included in revenue, but Livent wanted to book the entire $12.5 million. Livent retained Ernst & Young (EY) to provide an opinion on the transaction. EYs report indicated that all $12.5 million could be recorded as revenue. Deloitte hired Price Waterhouse (currently PricewaterhouseCoopers) to review the transaction. Price Waterhouse agreed with EY and Livent, and Deloitte allowed Livent to book the $12.5 million. In 1998, Livent issued a series of press releases indicating the discovery of significant account irregularities and, later in 1998, Livent declared bankruptcy.


Required:


Exhibiting professional competence and due professional care are part of the general standards set forth in the AICPA Code of Professional Conduct. Comment on the decision to engage public accounting firm competitors EY and Price Waterhouse concerning the disagreement over the accounting treatment of the $12.5 million transaction. Do you believe that hiring a competitor firm is sufficient to meet due professional care standard even though the company eventually declares bankruptcy?

In: Accounting

There are at least five (probably more) places in the attached C# program code that could...

There are at least five (probably more) places in the attached C# program code that could be optimized. Find at least five things in the Program.cs file that can be changed to make the program as efficient as possible.

  1. List five problems you found with the code (Put your list either in comments within the code or in a separate Word or text document), and then optimize the code in the attached code below to make it as efficient as possible. The program output must not be affected by your changes. To the user it should still do everything it did before your changes provided the user enters valid data.

using System;

namespace COMS_340_L4A
{
class Program
{
static void Main(string[] args)
{
Console.Write("How many doughnuts do you need for the first convention? ");
int.TryParse(Console.ReadLine(), out int total1);

Console.Write("How many doughnuts do you need for the second convention? ");
int.TryParse(Console.ReadLine(), out int total2);

int totalDonuts = Calculator.CalculateSum(new int[] { total1, total2 });

Console.WriteLine($"{ totalDonuts } doughnuts is { Calculator.ConvertToDozen(totalDonuts)} dozen.");
Console.WriteLine("Press Enter to quit...");
Console.ReadLine();
}
}

static class Calculator
{
static int DOZEN = 12;

public static int CalculateSum(int[] args)
{
int return_value = 0;
foreach (int i in args)
{
return_value += i;
}
return return_value;
}

public static int ConvertToDozen(int total)
{
int dozen = DOZEN;
return total / dozen;
}
}
}

In: Computer Science

Response 3 and Response 4 are different so please leave a space or big area between...

Response 3 and Response 4 are different so please leave a space or big area between both answers thank you

Response 3:

Questions

What are some things that you believe should be private? List at least three and briefly explain why for each item. Also for each, do you think that technology increases or decreases privacy? Briefly discuss how it does so for each item.

How important is privacy? Is it as important as freedom of speech, freedom of the press, freedom of assembly, etc? Why or why not?

Should privacy be protected? Why or why not? Who should be responsible for providing protection for privacy?

Response 4

Questions

Do the same standards apply to us? You probably have an address book database containing addresses, phone numbers, and perhaps birthdays of your friends.

What restrictions do you think there should be on how you collect and use such information? Should you need permission for each use? Should you provide an opt-in or opt-out choice for the people in your address book? Should you be required to remove anyone who asks to be removed? How reasonable are these requirements for individuals?

So there should be two different responses please lable them response 3 & 4 and leave space between. This is computer digital  ethics class

In: Computer Science

C++ please Instructions Download and modify the Lab5.cpp program. Currently the program will read the contents...

C++ please

Instructions

Download and modify the Lab5.cpp program.

Currently the program will read the contents of a file and display each line in the file to the screen. It will also display the line number followed by a colon. You will need to change the program so that it only display 24 lines from the file and waits for the user to press the enter key to continue.

Do not use the system(“pause”) statement.

Download Source Lab 5 File:

#include <iostream>

#include <string>

#include <iomanip>

#include <fstream>

using namespace std;

int main()

{

ifstream file; // File stream object

string name; // To hold the file name

string inputLine; // To hold a line of input

int lines = 0; // Line counter

int lineNum = 1; // Line number to display

// Get the file name.

cout << "Enter the file name: ";

getline(cin, name);

// Open the file.

file.open(name);

// Test for errors.

if (!file)

{

// There was an error so display an error

// message and end the program.

cout << "Error opening " << name << endl;

}

else

{

// Read the contents of the file and display

// each line with a line number.

while (!file.eof())

{

// Get a line from the file.

getline(file, inputLine, '\n');

// Display the line.

cout << setw(3) << right << lineNum

<< ":" << inputLine << endl;

// Update the line display counter for the

// next line.

lineNum++;

// Update the total line counter.

lines++;

}

// Close the file.

file.close();

}

return 0;

}

In: Computer Science

1.Generally, the main purpose of a company's public relations effort is to Multiple Choice get positive...

1.Generally, the main purpose of a company's public relations effort is to

Multiple Choice

  • get positive coverage by the press.

  • educate customers about their product.

  • establish itself as a "thought leader" in the field.

  • encourage word-of-mouth pass-along.

  • solve customer problems

2. Which of the following statements is true about Facebook?

Multiple Choice

  • It is especially effective among younger adults than older adults.

  • It provides a free online photo and video sharing service geared to mobile phones.

  • It is growing faster than all other social media platforms.

  • It allows registered users to send out short messages called tweets.

  • It uses an algorithm to decide what content is placed in the user's newsfeed.

3.Solar City wants to build awareness of its residential roof-top solar cells. It needs to explain to consumers how their product is installed, how it works, and how customers pay for it. Which of the following media types should it select to achieve these goals?

Multiple Choice

  • educational web pages

  • branded apps

  • Instagram page

  • e-mail newsletters

  • reminder advertising

4. When a company is able to get its customers to quickly spread a message far and wide, it is referred to as

Multiple Choice

  • viral promotion.

  • search engine optimization.

  • a high bounce rate

  • a branded service.

  • owned media.

In: Operations Management