problems 1 and 3 matlab problems 1 and 3 matlab problems 4 7 consider the matrix a 3 5153490

Problems 1 and 3 MATLAB

Problems 4 7 .Consider the matrix A= 3 Request the matrix from the user with the input command. With the find command, use a

Problems 1 and 3 MATLAB

Problems 4 7 .Consider the matrix A= 3 Request the matrix from the user with the input command. With the find command, use a print command to print these results to the 4 6 8 2 Command Window: a) Programmatically count how many elements of the matrix A are equal to 4 b) Programmatically count how many elements of the matrix A are less than 5 or greater than 7. . In Lecture 04 we discussed the merits of the atan2 command. Create a programmer-defined function atan3 that mimics the functionality of atan2. Remember that the form of the function atan2 is atan2 (y, x) . The quadrant correction is to add r to the result of the inverse tangent calculation if 0; no correction is made to the result of the inverse tangent calculation if okay if your result is off by a perlod, or 2T) 0. Note that atan2 returns a valueE-, ]. though your atan3 function need not constrain the result to that interval (i.e. it is In a script, test your atan3 function against the built-in atan2 function. . The function f (x) = ln{z) is defined over the real numbers (p) for E (0, 00) (though MATLAB will report ]n(0) as-Inf).Use an if selection structure to check if the inputted f() according to these three cases: value of Is In the domain is not in the domain of f(r) (ie. if E (-o, 0, use the error command to print an error message to the Command Window Case 1: If the inputted Case 2: If the inputted is on the domain (0, 1), use the warning command to print a warning to the Command Window stating that the value of f()will be less than O. , oo) then calculate and print to the Command Window the value of f(). Case 3: If the inputted is in the domain Hint: What are the branches in this selection structure? Identify them first, then begin to program the cases. E [0.5] then is defined within (or “belongs to”) that range of NB: The symbol E is a mathematical symbol that can be interpreted in English as “is an element of” For example, if numbers. You will likely recall from calculus that parentheses indicate a specific interval does not include the end-point (a so-called “open interval”), while brackets indicate that the nterval does include the end point (a so-called “closed interval”)

compare and contrast financial and managerial accounting 750 1250 word paper compare 3739958

Compare and contrast financial and managerial accounting

750-1250 word paper: compare and contrast financial/:view description

Assignment Instructions

Write a 750 – 1250 word paper on the following topic:

Compare and contrast financial and managerial accounting. Provide one specific, real-life example of how either financial accounting helps external stakeholders make informed decisions or how managerial accounting helps managers to improve operational and financial performance.

In need of 3 external references

Books in syllabus:

Bainbridge, S. (2007). The complete guide to sarbanes-oxley: Understanding how sarbanes-oxley affects your business (chapter 7).

Hermanson, R. H., Edwards, J. D., & Maher, M. W. (2013). Accounting principles: A business perspective, financial accounting (chapters 1—8). (8th ed.). Textbook Equity, Inc.

Hermanson, R. H., Edwards, J. D., & Maher, M. W. (2013). Accounting principles: A business perspective, financial accounting (chapters 9—18). (8th ed.). Textbook Equity, Inc.

Added to cart

this is my java program and i want the final favorites list to print out the user 39 5188387

This is my JAVA program and I want the final favorites list to print out the user's rankings in order…. the txt file is a list of movies:

Spider Man

Iron Man

The Avengers

import java.io.File;

import java.io.FileNotFoundException;

import java.io.PrintWriter;

import java.util.ArrayList;

import java.util.Scanner;

import java.util.Collections;

public class program {

   public static void main(String[] args) {

       // TODO Auto-generated method stub

       ArrayList fileOfMovies = new ArrayList<>();

       //calls from original file

       ArrayList movieList = new ArrayList<>();

       //add and remove from list

       ArrayList rankings = new ArrayList<>();

       //array list for rankings

       ArrayList comments = new ArrayList<>();

       //array list for comments

       int choice = 0;

       Scanner keyboard = new Scanner(System.in);

       try {

           Scanner fileReader = new Scanner(new File(“favorites.txt”));

           while(fileReader.hasNextLine())

           {

               String movieDetail = fileReader.nextLine();

               if(!movieDetail.equals(“”))

               fileOfMovies.add(movieDetail);

               String tokens[] = movieDetail.split(“|”);

               movieList.add(tokens[0].trim());

               rankings.add(tokens[0].trim());

               comments.add(tokens[0].trim());

           }

           fileReader.close();

           //print all favorites to “Show what&#39;s coming”

           System.out.println(“List of movies : “);

           System.out.print(“—————n”);

           for(String string: movieList)

               System.out.println(string);

           String fav;

           while(true)

           {

               System.out.print(“—————n”);

               int enteredChoice = 0;

               Scanner myChoiceScan = new Scanner(System.in);

               boolean choiceError = false;

               String choiceString = “”;

              

               do {

                   try {

              

               System.out.print(“Please select one of the following:”);

               System.out.print(“n1. Add a favoriten2. Remove a favoriten3. Add ratings and commentsnEnter your choice: “);

               choiceString = myChoiceScan.next();

               enteredChoice = Integer.parseInt(choiceString.trim());

               choiceError = false;

                   } catch (Exception e) {

                       System.out.println(“Your entry: “” + choiceString + “” is invalid…Please try again”);

          choiceError = true; //Uh-Oh…We have a problem.

                   }

               } while (choiceError == true);

               //if(enteredChoice != 1 && enteredChoice != 2)

               //   break;

              

              

               if(enteredChoice == 1)

               {

                   System.out.print(“nEnter a favorite: “);

                   fav = keyboard.nextLine();

                   while(fav.length()

                   fav+= ” “;

                   movieList.add(fav);

                   rankings.add(” “);

                   comments.add(” “);

                   fileOfMovies.add(fav);

                   System.out.println(“Added favorite: ” + fav);

               }

               else if(enteredChoice ==2)

               {

                   System.out.print(“nEnter a favorite: “);

                   fav = keyboard.nextLine();

                   boolean check = false;

                   for(int i=0; i

                   {

                       if(movieList.get(i).contains(fav))

                       {

                           movieList.remove(i);

                           rankings.remove(i);

                           comments.remove(i);

                           fileOfMovies.remove(i);

                           check = true;

                           System.out.println(“Movie removed successfully!”);

                       }

                   }

                   if(!check)

                       System.out.println(“Entered movie does not exist.”);

               }

               else if(enteredChoice == 3) {

                   boolean valid=true;

                   for(int i=0; i

                       System.out.println(“Favorite: ” + movieList.get(i));

                       System.out.print(“Rank this movie 1 through ” + movieList.size() +”n”);

                       String rating = keyboard.nextLine();

                       try {

                           int r =Integer.parseInt(rating);

                           valid=true;

                       }

                       catch(Exception e) {

                           System.out.println(“Enter a valid rating value”);

                           –i;

                           valid=false;

                       }

                       if(valid == true) {

                           while(rating.length()

                               rating += ” “;

                           System.out.print(“Enter your comment: “);

                           String comment = keyboard.nextLine();

                           rankings.set(i, ” ” + rating);

                           comments.set(i, “” + comment);

                       }

                   }

               Collections.sort(fileOfMovies);

                   for(int i=0; i

                       fileOfMovies.set(i, movieList.get(i) + “|” + rankings.get(i) + “|” + comments.get(i));

                   PrintWriter writer = new PrintWriter(new File(“favorites.txt”));

                   System.out.println(“nFinal favorite listn”);

                   for(String string: fileOfMovies)

                   {

                       writer.write(string + “n”);

                       System.out.println(string);

                   }

                   writer.close();

break;

               }

           }

       }

       catch(Exception e) {

       }

   }

}

activity 1 a student structure in this activity you have to implement two functions 5149619

Activity 1: A Student Structure

In this activity you have to implement two functions to assist in the construction and printing of a student structure. The factory function createStudent() takes the appropriate parameters, allocates memory to hold a new student and sets each field of the student appropriately. In the case of strings, malloc is used to create enough space and the string is then copied. The birthdate is handled specially: it parses the date string and creates a struct tm, which is a “time” structure defined by the time library (time.h). Ultimately, a pointer to the new student structure is returned. You also need to implement the printStudent() function that takes a student (by reference) and prints it out to the standard output. We have also provided two fully implemented functions (createEmptyStudent and studentToString) for you to examine and understand how they work.

Instructions

1.Download the studentDemo.c source file

2.Implement the two functions: createStudent() and printStudent()

3.Change the values in the main function to your name, NUID, and birth date.

4.Compile and run the program.

5.Examine the following two implemented functions: createEmptyStudent() and studentToString().

6.Use them in your main function.

7.Show your program to a lab instructor.

Refer back to this program in Activity 2 as needed.

studentDemo.c

#include
#include
#include
#include

typedef struct {
char *firstName;
char *lastName;
int nuid;
struct tm birthDate;
} Student;

Student * createStudent(const char * firstName, const char *lastName, int nuid, const char * birthDate_str);
void printStudent(Student * student);

int main(void) {

Student *me = createStudent(“Richard”, “Feynman”, 140602, “07-30-1980”);
printStudent(me);

}

/**
* A “factory” function to create a new student structure initialized with the given values
* Strings are deep copied.
* You must use the “strptime” function defined in the file to copy the “birthDate_str” from the argument to the “birthDate” struct component of the Student struct
*/
Student * createStudent(const char * firstName, const char *lastName, int nuid, const char * birthDate_str) {

  
return student;
}

/*
* A factory function to display a student first name, last name, nuid and birth date
*/

void printStudent(Student * student) {
  
}

/**
* A “factory” function to create a new student structure with everything initialized to
* default values (null or zero)
*/
Student * createEmptyStudent() {
Student * student = (Student *) malloc(sizeof(Student) * 1);
student->firstName = NULL;
student->lastName = NULL;
student->nuid = 0;
return student;
}

char *studentToString(Student *student) {
//create a temporary string that is “large enough”
char *tmp = (char *) malloc(sizeof(char) * 2000);
  
//format the student into the temporary string
sprintf(tmp, “%s, %s (%08d, %d-%d-%d)n”, student->lastName, student->firstName, student->nuid, (student->birthDate.tm_year+1900), (student->birthDate.tm_mon+1), student->birthDate.tm_mday);
  
//create the final string that is the exact size needed
char *result = (char *) malloc(sizeof(char) * (strlen(tmp)+1));
  
//free up the temporary string
free(tmp);
  
//return the result
return result;
}

at january 1 2017 jaina company a public company reported the following property pla 4137738

At January 1, 2017, Jaina Company, a public company, reported the following property, plant, and equipment accounts:

Accumulated depreciation-buildings…………..$12,100,000

Accumulated depreciation-equipment…………..15,000,000

Building……………………………………………28,500,000

Equipment…………………………………………48,000,000

Land………………………………………………..4,000,000

Jaina uses straight-line depreciation for buildings and equipment, and its fiscal year end is December 31. The buildings are estimated to have a 50-year life and no residual value; the equipment is estimated to have a 10-year useful life and no residual value. Interest on all notes is payable or collectible at maturity on the anniversary date of the issue.

During 2017, the following selected transactions occurred:

Apr. 1 Purchased land for S1.9 million. Paid 5475,000 cash and issued a 10-year, 6% note for the balance.

May 1 Sold equipment that cost 5750,000 when purchased on January 1, 2010. The equipment was sold for $350,000 cash.

June I Sold land purchased on June 1, 1996, for 51.2 million. Received 5380,000 cash and accepted a 6% note for the balance. The land cost $300,000.

July 1 Purchased equipment for $l million on account, terms n160.

Dec. 31 Retired equipment that cost 5470,000 when purchased on December 31, 2010.

Instructions

(a) Record the above transactions.

(b) Record any adjusting entries required at December 31, 2017, and update account balances. (c) Preparetheproperty,plant,andequipmentsectionofJaina’sbalancesheetatDecember31,2017.

Taking It Further

Why do most companies use the cost model instead of the revaluation model to account for property, plant, and equipment?

At January 1 2017 Jaina Company a public company reported

evaluate the importance of testing during systems development to identify problems e 3745022

Evaluate the importance of testing during systems development to identify problems

• Evaluate the importance of during systems development to identify problems
• Analyze security, disaster preparedness, and concerns
• Recognize how to ensure data quality through validation
• Demonstrate the ability to select an appropriate decision analysis method for analyzing
structured decisions and creating process specifications
• Demonstrate understanding of the overall course concepts

 

 

 

……………………Answer preview……………………………….

The appropriate documentation technique or approach for the system that I would recommend and will be used for system implementation is the use of flow chart technique. A flow chart is a diagram that shows and represents a process or an activity, which shows the different kinds and types of procedures and steps illustrated and connected by arrows……………………………………..

APA

1351 words

Get instant access to the full solution from  by clicking the purchase button below

Added to cart

please help create the c program above on yellow paper the second image is the class 5153192

textbook 2. Implement the class MaxHeap from figure 5.19 in section 5.5 p.180 in your textbook. Use this imple- mentation to create a priority queue based on the MaxHeap class according to specifications on question 5.5 p.200 in the textbook troo Gi 27.190-191 in section 5.6 in your

media%2Fc21%2Fc212e649-7c99-4ad7-a458-ec

Please help create the C++ program above on yellow paper. The second image is the class MaxHeap that is mentioned in the problem. Please create comments in the program to explain each part and have the answer typed. Please also provide screenshots of the output testing the following data: 12, 22, 32, 45, 99, 8, 44, 65, 20, 72, 80, 68, 57, 55, 7.

textbook 2. Implement the class MaxHeap from figure 5.19 in section 5.5 p.180 in your textbook. Use this imple- mentation to create a priority queue based on the MaxHeap class according to specifications on question 5.5 p.200 in the textbook troo Gi 27.190-191 in section 5.6 in your

the first two cells are programmed to run without errors post suitable codes that wo 5151439

The first two cells are programmed to run without errors. Post suitable codes that would run without errors in the cells 1.1, 1.2, 1.3 and 1.4 based on all the descriptions below. This is a Python exercise to be solved in JupyterLab from Anaconda. The template file with the data set can not be attached here but give it a shot of what you think would work based on the instructions.

# KNN Exercise The aim of this exercise is to implement a simple kNN algorithm and apply to the Iris data set. We first need

### 1.2 Find the K nearest neighbours Now that all the distances are known, it is possible to identify the K nearest neighbou

Instructions:

Now the vector x is the test point and the matrix X is the training set (data matrix). The true label of the test point (whic1.4 Create the myKNN function These steps need to be put together in a function. Call it myKNN and definite it using the foll

# KNN Exercise The aim of this exercise is to implement a simple kNN algorithm and apply to the Iris data set. We first need to set up all packages and import the data. [1]: import sklearn.datasets as datasets import numpy as np iris datasets.load_iris) N, D = iris.data. shape ## 1. Implement nearest neighbours The first part is to develop the algorithm. We do this in few steps and then put the result into a function so we can apply this regularly. We first define the training data and the test data point that we use. [2]: # Let the first sample be the test point x=iris.data[0,:] ttest-iris. target[O] # And the rest is the training data X=iris.data[1:N,:] t-iris.target[1:N] Ntr, Dtr = X. shape ### 1.1 Calculate distance The first part of the algoritm is to calculate the distance from the test set to all the points in the training set. [ ]: # calculate distances ### 1.2 Find the K nearest neighbours Now that all the distances are known, it is possible to identify the K nearest neighbours. You can either implement this yourself or use utilities from Numpy. Create a K dimensional vector (you can call it knearest) that contains the indices of the K nearest neighbours. [ ]: # find knearest ### 1.3 Find out the labels and vote Now that the K nearest neighbours have been identified, we need to figure out their labels and find which label has majority [ ]: # calculate klabels, find which Label has majority ### 1.4 Create the myKNN function Now put this all together in a function and apply [ ]: def myKNN(x,x,t,k): #xriris.data[0, :), X=iris.data[1:N, :), t=iris. target[1:N] have already been defined K=5 guess-myKNN(X,X,t,K) print(guess) Is your guess right? How do you know? Now the vector x is the test point and the matrix X is the training set (data matrix). The true label of the test point (which is not known when the algorithm is in use) is ttest and the labels of the training set ist. Implement the kNN algorithm using the following steps: 1.1 Calculate the distance Implement a distance calculation so that we get the distance between the test point to all the points in the training set. Use the Euclidean distance: dn = 123–1(x; – ztrain n)2 where ztrain n is the n-th vector in the training set. The outcome of this step is a vector containing all dn 1.2 Identify the K nearest neighbours Now that all the distances are known, it is possible to identify the nearest neighbours. You can either implement this yourself or use utilities from Numpy. Create a K dimensional vector (you can call it knearest) that contains the indices of the K nearest neighbours. 1.3 Find the labels and vote Use the indices of the nearest neighbours to find their labels (in the target vector). Let&#39;s call this vector klabels. 1.4 Create the myKNN function These steps need to be put together in a function. Call it myKNN and definite it using the following (put your code where the… are): def myKNN(X,X,t,k): The function should take as inputs: 1. A test point x 2. The training set data matrix X, 3. The training set target values (labels)t, 4. The number of nearest neighbours K. It should return a single value, the index of the class which is the algorithm&#39;s guess. You should therefore be able to call your function (and print the answer) with: K=5 guess-myKNN(X,X,t,k) print(guess) Is your guess right? How do you know?

music answer preview get my mojo working by muddy waters and his band begins 3751587

Music

………………………….Answer Preview………………………………
 Get my Mojo Working by Muddy Waters and his band begins with the instruments including the guitars, keyboard, bass guitar, blue sharp and drums. Notably, the song follows the typical AAB blues format as highlighted by the fundamental structure of 12-bar rules in the three sections. According to the 12-bar rules, the first and second lines are identical both in terms of lyrics and melody. Similarly, the lyrics and melody of the song deploy a similar pattern in the three verses. Considerably, the last line in the respective verses functions as the refrain. ……………………………………

APA345 Words Added to cart

1 the sql where clause 1 limits the column data that are returned2 limits the row da 5123652

1. The SQL WHERE clause 1. Limits the column data that are returned2. Limits the row data that are returned 3. Both 1 and 2 arecorrect 4. Neither 1 nor 2 are correct 2. Which is the correctorder of keywords for SQL SELECT statements? 1. SELECT, FROM, WHERE2. FROM, WHERE, SELECT 3 . WHERE, FROM, SELECT 4. SELECT, WHERE,FROM 3. In an SQL SELECT statement querying a single table, * means1. All columns of the table are to be returned 2. All recordsmeeting the full criteria are to be returned 3. All records withpartial criteria met are to be returned 4. None of the above 4. SQLcan be used to 1. Create database structures 2. Read databasestructures 3. Update database structures 4. All of the above . . .