CP4P_SDLC_Activity_Answers

.docx

School

Seneca College *

*We aren’t endorsed by this school

Course

101

Subject

Mechanical Engineering

Date

Apr 3, 2024

Type

docx

Pages

5

Uploaded by SuperPencil13158 on coursehero.com

CPR101 Activity 9 SDLC, Platforms, Development Environments, Version Control Student Name: Sampreet Klair Student Number: 145031225 Student ID: sklair2
Computer Principles for Programmers APIs, SDLC, Version Control Sampreet Klair 145031225 sklair2 @mySeneca.ca Click or tap here to enter text. Table of Contents 1. (5) What is sent via the API from one system to another? What is sent back? ......................................... 1 2. (5) Use api.agify.io to predict the age of a person using your given name and an ISO country code ........ 1 3. (5) Use the time zone API request at worldtimeapi.org .......................................................................... 1 4. (16) Using the above JSON data from worldtimeapi.org, fill in the JSON key / value pairs relating to the descriptions in the table below ....................................................................................................................... 2 5. (5) How did you confirm that your location timestamp when converted to data/time was the same as the Location date/time in ISO8601 format in the JSON schema? Show your test and the result ...................... 2 SDLC – Software Development Life Cycle ........................................................................................................ 2 Software Version ............................................................................................................................................ 4 Bibliography .................................................................................................................................................. 4 Using Mozilla Firefox is strongly recommended for this Activity because it can transform JSON responses into a human readable format. (Raw Data > "Pretty Print") (#) is points for API and Time Zone questions. 1. (5) What is sent via the API from one system to another? What is sent back? API sends: When one system interacts with another via an API, it sends a request which tells the API what actions to perform. (Emma Burlingame, 2022) Sent back: After the API receives a request, it sends a JSON response back which includes all the responses to the requests made by the API. (Emma Burlingame, 2022) 2. (5) Use api.agify.io to predict the age of a person using your given name and an ISO country code API URL request: https://api.agify.io/?name=amrik&country_id=in JSON response: {"count":34,"name":"amrik","age":59,"country_id":"IN"} 3. (5) Use the time zone API request at worldtimeapi.org API URL request: http://worldtimeapi.org/api/timezone/asia/tokyo JSON response: {"abbreviation":"JST","client_ip":"76.69.130.98","datetime":"2023-07- CPR101 Summer 2023 Week 9 Page 1 of 5
Computer Principles for Programmers APIs, SDLC, Version Control 16T09:48:40.715223+09:00","day_of_week":0,"day_of_year":197,"dst":false,"d st_from":null,"dst_offset":0,"dst_until":null,"raw_offset":32400,"timezone ":"Asia/Tokyo","unixtime":1689468520,"utc_datetime":"2023-07- 16T00:48:40.715223+00:00","utc_offset":"+09:00","week_number":28} 4. (16) Using the above JSON data from worldtimeapi.org, fill in the JSON key / value pairs relating to the descriptions in the table below. See Response Schema JSON key JSON value UTC date/time in ISO8601 format utc_datetime "2023-07-16T00:51:54.687700+00:00" Unix UTC timestamp unixtime 1689476478 Unix UTC to location difference utc_offset "+09:00" Location's daylight-saving time difference dst_offset 0 Location date/time in ISO8601 format offset "2023-07-16T09:51:54.687700+09:00" How do you calculate the location's timestamp from the UTC timestamp using JSON keys? Location Timestamp = UTC Timestamp + Offset for UTC (location timestamp = unixtime + raw_offset) Calculated location timestamp value is: 1689508878 5. (5) How did you confirm that your location timestamp when converted to data/time was the same as the Location date/time in ISO8601 format in the JSON schema? Show your test and the result. To confirm that the location timestamp when converted to data/time was the same as the location date/time in ISO8601 format in the JSON scheme, we can use the formula -> Location timestamp = unix UTC timestamp + UTC time offset * 3600 (number of seconds in an hour). So, we can get the result as -> Location timestamp = 1689476478 + 9 * 3600 = 1689508878. SDLC – Software Development Life Cycle SDLC – Software Development Life Cycle 54 points = 9 points × 6 items, 75+ words each Determine : I would like to apply the SDLC to the workshop 8 part 1, I submitted for my IPC144 course through the matrix server. To become comfortable with the assignment, first of all, I read the introductory CPR101 Summer 2023 Week 9 Page 2 of 5
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help