Coding and Math Week Tasks

week 5 n.w
1 / 22
Embed
Share

Dive into a week of coding and math with tasks covering order of operations, array methods, matrix multiplication, and more. Get homework hints and a bonus question to test your skills!

  • Coding
  • Math
  • Homework
  • Operations
  • Array

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. WEEK 5

  2. TODAYS PLAN Homework Quiz Tutor Tasks Order of Operations Array Operations Matrix and Vector Multiplication

  3. HOMEWORK

  4. HOMEWORK Please refrain from using Umlauts and in your Programs Causes all kinds of issues

  5. HOMEWORK Any Questions?

  6. TUTOR TASKS

  7. QUIZ

  8. BONUS QUESTION Int I = 5; Int J = 2; System.out.println(I/J);

  9. BONUS QUESTION ANSWER Int I = 5; Int J = 2; System.out.println(I/J); 2

  10. ORDER OF OPERATIONS

  11. ORDER OF OPERATIONS RELEVANT

  12. ORDER OF OPERATIONS TASKS 2 + 3 * 4 - 6 6 * 7 % 4 (18 - 7) * (7.2 % 5.2) "34" + 2 * 4

  13. ORDER OF OPERATIONS TASKS (18 - 7) * (7.2 % 5.2) 18.0 - 7 * 9 % 10 4 / 2 * 9 / 4 813 % 100 / 3 + 2.4 "34" + 2 + 4 (double) 3 + 5 * 4 + 3 + Integer.parseInt("1") + 8

  14. CUSTOM ARRAY METHODS

  15. CUSTOM ARRAY METHODS public static void print(int[] array) Prints Array in format: {1, 2, 3, 4, 5} public static int[] invert(int[] array) {0, 1, 2, 3} becomes {3, 2, 1, 0}

  16. CUSTOM ARRAY METHODS public static int[] cut(int[] array, int length) cut(new int[] {1, 2, 3}, 2) becomes {1, 2} cut(new int[] {1, 2, 3}, 5) becomes {1, 2, 3, 0, 0} public static int[] linearize(int[][] array) linearize(new int[][] {{1, 3}, {25}, {7, 4, 6, 9}}) becomes {1, 3, 25, 7, 4, 6, 9}

  17. MATRIX AND VECTOR OPERATIONS

  18. MATRIX AND VECTOR OPERATIONS We shall assume that all Matrix Inputs are correct

  19. MATRIX AND VECTOR OPERATIONS public static int vecVecMul(int[] a, int[] b)

  20. MATRIX AND VECTOR OPERATIONS public static int[] matVecMul(int[][] a, int[]b)

  21. MATRIX AND VECTOR OPERATIONS public static int[][] transpose(int[][] a)

  22. MATRIX AND VECTOR OPERATIONS public static int[][] matMatMult(int[][] a, int[][]b)

Related


More Related Content