Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC309 Lecture 06

CSC309 Lecture 06

Software Engineering II
Code Review I
(202301)

Javier Gonzalez-Sanchez

January 22, 2023
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs CSC 309 Software Engineering II Lecture 06: Connecting Services

    Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  2. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    5 Version 02 :: update our constructor
  3. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    6 Unique From: CMU/SEI Linda Northrop
  4. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    7 Reuse From: CMU/SEI Linda Northrop
  5. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    10 Maven Directories A build automation tool used
  6. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    12 Reuse From: CMU/SEI Linda Northrop
  7. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    13 What if …? Box Name1 Name2 Cat Car What is Tower of Hanoi? _
  8. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    14 What if …? Box Name 1 Name 2 Cat Car What is a Flowchart diagram? _
  9. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    15 What if …? Box Name 1 Name 2 Cat Car What is a Flowchart diagram? _
  10. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    18 We need keys String key = "XYZabc123259#$%#$Fcaskjhdux_2342445Calp";
  11. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    19 1.Go to the Bing Maps Dev Center website (https://www.bingmapsportal.com/). 2.Sign in using your Microsoft account or create a new account if you don't have one. 3.Click on "My Account" and select "Create or view keys" from the drop-down menu. 4.Click on "Create a new key.” 5.Select the type of key you want to create (e.g., Basic). 6.Enter a name for your key and click on "Create.” 7.Your new API key will be displayed on the "Keys" page. Copy the key to use in your code. Bing Maps
  12. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    20 We need a Network Connection String mapUrl = "https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/" + location + "?zoomLevel=10&mapSize=200,200&key=” + apiKey; URL mapImageUrl = new URL(mapUrl); URLConnection connection = mapImageUrl.openConnection(); InputStream inputStream = connection.getInputStream();
  13. jgs

  14. jgs CSC 309 Software Engineering II Lab 09: Work in

    your Sprint Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  15. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    35 Let’s Work Step 01 Make It Work https://github.com/javiergs/TowerOfHanoi/tree/main/version-02
  16. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    36 Let’s Work Step 02 - Can you add some kind of menu to select from among a number of cities? - Then click on some button and get the map for that city. - It can be on the same Hanoi APP, or you can start a new empty one.
  17. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    37 Let’s Work References: GitHub with HanoiTowers version 2: https://github.com/javiergs/TowerOfHanoi/tree/main/version-02 About Ciirdinates: https://support.google.com/maps/answer/18539?hl=en&co=GENIE.Pla tform%3DDesktop
  18. jgs CSC 309 Software Engineering II Javier Gonzalez-Sanchez, Ph.D. [email protected]

    Winter 2023 Copyright. These slides can only be used as study material for the class CSC308 at Cal Poly. They cannot be distributed or used for another purpose.