Questions
*In C++ language please* Create a table that converts temperatures from Celsius to Fahrenheit Ask the...

*In C++ language please*

Create a table that converts temperatures from Celsius to Fahrenheit

Ask the user if they would like to know today's temperatures

  • When "yes":
    • Ask or their name -Generate a random number: use the length of their name (nameLngth) to set the seed
      • Use the length of their name (nameLngth) as the starting point, and 99 as the ending point for a range of Celsius temperatures
      • Output the range of Celsius temperatures alongside the Fahrenheit temperature conversions in a table
  • When "no":
    • Output "Goodbye userName "

Hint: Run in submit mode to see the desired outputs before getting started

Celsius to Fahrenheit : Fahrenheit = Celsius *180.0 /100 + 32

Also based on the new Fahrenheit temperature output the appropriate statement below:

  • When the number is less than 55: "carry a hat and gloves"
  • When the number is less than 75: "carry a jacket"
  • When the number is less than 100: "shorts it is"

In: Computer Science

​​​​​1) Write a program that defines a structure that represents a point. Your point structure should...

​​​​​1) Write a program that defines a structure that represents a point. Your point structure should contain members for the X and Y value. Write a function called distance that takes two points as parameters and returns the distance between them. Your program should define & print two points and display the distance between them.

Copy your structure without formatting:
Copy your distance function without formatting:

2) Write a C program that contains an array that contains the following value: {10, 3.24, “Exercise”}. Print the values. (Hint: void pointers can point to any type.) Sample output:
./a
things[0] = 0x6000003a0: 10
things[1] = 0x6000003c0: 0.00
things[2] = 0x6000003e0: Exercise

Copy the part of your code where you declare the array without formatting:

Copy the part of your code where you fill the array without formatting:

-----------------------------------------------------------------------------------------------------------------------------------------

Please include comments and why you did what you did!!

In: Computer Science

Homework Discussion (250 Words): (Selling Cyber in Your Organisation) Please outline what angles you might take...

Homework Discussion (250 Words): (Selling Cyber in Your Organisation)

Please outline what angles you might take to convince your senior leadership to invest in a program. Use your organization as an example. Use the lens of Financial, Regulatory, Reputational, and Privacy considerations (or feel free to choose your own considerations if they are applicable). Feel free to draw from the readings.

P.S: The organization name is: KISI

Company Type: IoT Security Company


In: Computer Science

Could you modify the code make output arranged into 5x5, like this: 1 2 3 4...

Could you modify the code make output arranged into 5x5, like this:

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

21 22 23 24 25

The code is:

import java.util.*;

public class RandomGen {

public static void main(String[] args) {
int[][] ArrayRand = new int [5][5];
Random rand = new Random();
int sum = 0;
System.out.println("The generated random matris is: ");
  
for(int i = 0; i < ArrayRand.length;i++){
for(int j = 0; j < ArrayRand[i].length;j++){
ArrayRand[i][j] = rand.nextInt(100)+1;
System.out.print(" "+ ArrayRand[i][j]);
sum += ArrayRand[i][j];
}
}
System.out.println("\nThe sum is: "+ sum);
System.out.println();
}
  
}

In: Computer Science

The mean pay in 2008 Bh CEOsat the 500 biggest U.S. companies was 12.8 million dollars.””...

The mean pay in 2008 Bh CEOsat the 500 biggest U.S. companies was 12.8 million dollars.”” Public outcry and stockholder complaints have forced compensation committees to reconsider senior executive salaries. A random sample of CEOs was obtained, and the total pay (in millions of dollars) for each is given in the following table.

10.1 4.3 13.8 5.1 13.0 21.2 4.5 10.5 17.6 10.1 6.5 9.9 13.3 20.4

Is there any evidence to suggest that the mean pay for CEOs has decreased? Use a = 0.05 and assume normality.

In: Math

C Practice 1: 1) Write a forward declaration for the following C function int triple_it (int...

C Practice 1:

1) Write a forward declaration for the following C function
int triple_it (int x) {
return (x * 3);
}

2) What is C syntax to declare two variables, one called num of integer type and another called farray which is an array of 10 floating point numbers?

3) Write a C function array_max(int a[], int len) that takes an integer array & its length as its parameters and returns the largest value in the array.

4) Write a C function letter_count(char a[], int len) that takes a string & length as a parameter and returns the number of letters (both uppercase and lowercase) in the string. Keep in mind that characters in C are integers, so you can do comparisons such as ((c >= 'A') && (c <= 'Z')) to check if a character is an uppercase character.

5) Write a function called printThem(int count) which print the numbers from 1 to n with the following conditions:
- In place of multiples of 3 print three.
- In place of multiples of 5, print five.
- If a number is divisible by both 3 and 5 print fifteen.
- Do not print multiples of 7 (even if a multiple of 3)
Display 15 numbers per line. Include sample output for n=50

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please include comments!

In: Computer Science

Python DESCRIPTION Write a program that will read an array of integers from a file and...

Python

DESCRIPTION

Write a program that will read an array of integers from a file and do the following:

Task 1: Revert the array in N/2 complexity time

(i.e., number of steps)

.

Task 2: Find the maximum and minimum element of the array.

INPUT OUTPUT

Read the array of integers from a file named “

inputHW1.txt

”. To do this, you can use code snippet

from the “

file.py

” file. This file is provided in

Canvas. Copy the “

read

” function from this file and

paste it to your program file. Then, if you call the read function like the following:

numbers = read()

# The following "read" function reads values from a file named "inputHW1.txt" and

returns the values in an array.

def read():

file = open("inputHW1.txt", "r")

line = file.readline()

values = []

for value in line.split(' '):

values.append(int(value))

return values

the integers will be read from file and loaded in the numbers array.

Now, print the reverted arra

y, minimum element and maximum element of the array.

For example, if the input array is: 1 4 9 11 8 3 2 5 10

the following will be printed on the screen:

Reverted array: 10 5 2 3 8 11 9 4 1

Maximum element: 11

Minimum element: 1

In: Computer Science

For this assignment, you will need any computer running PowerShell v5 or later. Your answer should...

For this assignment, you will need any computer running PowerShell v5 or later. Your answer should only include the function or the script files that generate the results.

  1. For this question, your challenge is to create a PowerShell function that accesses all the log files stored under C:\Windows\System32\winevt\Logs. The function should display only those event logs whose size is more than 1MB. Sort the result by LastWriteTime in descending order.

In: Computer Science

C Write a function int sort(int** arr, int n) that takes as input an array of...

C

Write a function int sort(int** arr, int n) that takes as input an array of int pointers, multiplies the ints the pointers point to by -1, and then sorts the array such that the values pointed to by the pointers are in decreasing order. For example, if the array is size 10 the pointer at index 0 will point to the largest value after multiplying by -1 and the pointer at index 9 will point to the smallest value after multiplying by -1. If the input is invalid the function should return 1. Otherwise, the function should return 0. Note- a pointer to the array size is passed to the function, NOT the actual size.

int sort(int** arr, int n)

(input is a double pointer)

In: Computer Science

Consider a project to supply Detroit with 40,000 tons of machine screws annually for automobile production....

Consider a project to supply Detroit with 40,000 tons of machine screws annually for automobile production. You will need an initial $5,600,000 investment in threading equipment to get the project started; the project will last for 6 years. The accounting department estimates that annual fixed costs will be $600,000 and that variable costs should be $250 per ton. Further, the accounting department will depreciate the initial fixed asset investment straight-line to zero over the 6-year project life and estimate a salvage value of $450,000 after dismantling costs. The marketing department estimates that the automakers will let the contract at a selling price of $340 per ton. The engineering department estimates you will need an initial net working capital investment of $560,000. You require a return of 13 percent and face a marginal tax rate of 24 percent on this project. Suppose you’re confident about your own projections, but you’re a little unsure about Detroit’s actual machine screw requirements. a. What is the sensitivity of the project OCF to changes in the quantity supplied? What about the sensitivity of NPV to changes in quantity supplied? c. Given the sensitivity number you calculated, is there some minimum level of output below which you wouldn’t want to operate? Show step by step

In: Finance

It is required to develop an application in Java to perform some operations of a bank....

It is required to develop an application in Java to perform some operations of a bank. The application will have the following classes:

  1. Class called Person having following data fields (private):

firstName (String), lastName(String), gender(char), cpr(long), mobile(String) and following methods:

  1. Constructor having 5 parameters to initialize all data fields,
  2. Set and get methods for all data fields,
  3. toString method to return String equivalent of all data fields,

  1. Abstract class called Account having following data fields(protected):

accountHolder(Person), ccountNum(long), balance(double)and following methods:

  1. Constructor having 3 parameters for all 3 data fields including an object of type Person.
  2. Get methods for all three data fields.
  3. Abstract method updateBalance to update balance according to parameter.
  4. Abstract method withdraw to withdraw money from the account and update balance.
  5. Abstract method deposit to deposit money in the account and update balance.
  6. method to return String equivalent of all data fields by calling toString method of class Person.

  1. Class called Savingsccount that inherit the properties of abstract class Account having following additional data field:

interestRate(double) and following methods:

  1. Constructor having 4 parameters for all data fields including that of class Account.
  2. Set and get methods for interestRate.
  3. Implementation of method updateBalance.
  4. Implementation of method withdraw.
  5. Implementation of method deposit.
  6. Overloaded toString method to return String equivalent of all data fields.
  1. Write a class called Bank having only main method to test all functionalities of the application.

In: Computer Science

You have been asked by your boss to determine whether it is necessary to show earnings...

You have been asked by your boss to determine whether it is necessary to show earnings per share (EPS) on the financial statements when the company is not public and not governed by the Securities & Exchange Commission (SEC). What will you tell your boss? (US GAAP ISSUE) AN ASC NUMBER MUST BE USED AS A CITATION REFERENCE EACH GAAP ASSIGNMENT WILL HAVE THE FOLLOWING FORMAT: PROBLEM TO BE RESEARCHED: What is the question being asked? SOURCES FOR RESEARCH: (EX. FASB TEXT PAGE, GAAP GUIDE, ETC.) A CITATION MUST BE IDENTIFIED (i.e. U.S. GAAP (ASC) ACCOUNTING STANDARDS CODIFICATION TOPIC 111-11 FOR EXAMPLE) Where did you get you answer? III. CONCLUSION – What is your answer?

In: Accounting

For this assignment, you will need any computer running PowerShell v5 or later. Your answer should...

For this assignment, you will need any computer running PowerShell v5 or later. Your answer should only include the function or the script files that generate the results.

  1. The Get-ChildItem cmdlet is very useful in obtaining files and directory information. Your challenge is to create a PowerShell function that displays all ‘.exe’ and ‘.dll’ files stored under C:\Windows\System32, whose size is more than 5 MB. Group the files based on their extension and store the list into a text file.

In: Computer Science

10. How appropriate is it to share personal information with the world? 11. What are the...

10. How appropriate is it to share personal information with the world?

11. What are the possible barriers for you to share confidential details online personally?

In: Operations Management

What are some ways that Donald Trump can improve his leadership skills using the three out...

What are some ways that Donald Trump can improve his leadership skills using the three out of 5 following leadership concepts?

-Charismatic Leadership

- Servant Leadership

- The strategic management process

- Transformational leadership

- The five conflict management styles

In total I need to write 2 double spaced pages, so any amount of ideas or thoughts will be appreciated!!

In: Operations Management