MSC Halifax Community College Java Programming & JSON Processing Homework The objective of Assignment 4 is to integrate networking capabilities into the co

MSC Halifax Community College Java Programming & JSON Processing Homework The objective of Assignment 4 is to integrate networking capabilities into the courseregistration app that you developed for assignment 3. The app will communicate with a servervia HTTP connection. You will also practice AsyncTask, JSON processing, and using an externallibrary. CS364 Assignment 4
The objective of Assignment 4 is to integrate networking capabilities into the course
registration app that you developed for assignment 3. The app will communicate with a server
via HTTP connection. You will also practice AsyncTask, JSON processing, and using an external
library.
For more information about HTTP methods, please check
https://www.restapitutorial.com/lessons/httpmethods.html
Your app will fetch data from a server or post data onto a server as an HTTP client by sending
HTTP (GET) request or HTTP (POST) request. The task are as below.
1. Fetch data: fetch detailed information of all courses from the server.
Instead of hard coding all the courses in your code, you will fetch the courses from a server:
http://35.203.95.76:8809/course-details/
(using HTTP GET method). If the fetch is
successful, it will receive details of the courses in the following format:
[
{
“coursename”: “Introduction to Coding”,
“term”: “2nd term”,
“courseDescription”: “NAN”,
“courseNumber”: “CS128”,
“condition”: “”,
“prerequitiesOne”: “”,
“prerequitiesTwo”: “”,
“seletionStatus”: false,
“imageUrl”: “https://XXXXXXX.png”
},
….
{
“coursename”: “Theory of Computing”,
“term”: “1st term”,
“courseDescription”: “NAN”,
“courseNumber”: “CS356”,
“condition”: “2”,
“prerequitiesOne”: “CS255”,
“prerequitiesTwo”: “CS277”,
“seletionStatus”: false,
“imageUrl”: “https://XXXXXXX.png”
},

]
The app then parses the data, initiates the storage, and displays the list of courses. Note that
we assume there are at most two prerequisites for each course.
Note: the interpretation for
“Condition” = “1” indicates OR condition for the two prerequisites;
“Condition” = “2” indicates AND condition for the two prerequisites;
Probably your previous APP can only deal with one prerequisite. If this is the case, for the few
courses that have different prerequisites than what you had before, you can ignore the extra
prerequisites and set the prerequisite to what you had before.
Add an image to each course in the recyclerview (that shows the list of all courses). You may
use the image with the link indicated by “imageUrl” provided in the fetched data (just some
random images) or use some images from the network that are more relevant (for example, the
textbook images).
To do this, you can use Picasso Library. More information can be found
at: https://square.github.io/picasso/.
2. Add code to upload the registered courses onto the server
You will use the HTTP POST method for this task. The server is at:
http://35.203.95.76:8809/register/
The server can accept a JSON string with the following keys. Set RequestProperty for the HTTP
connection as below.
JSONObject obj = new JSONObject();
obj.put(“student_id”,”yourSID”);
obj.put(“name”,”yourName”);
obj.put(“email”,”yourEmail: x20xxxxx@stfx.ca”);
obj.put(“course”,”Data Science, Data Communication and Networking”);
//course names separated by comma
connection.setRequestMethod(“POST”);
connection.setConnectTimeout(2000);
connection.setDoInput(true);
connection.setRequestProperty(“Content-Type”, “application/json”);
connection.setRequestProperty(“Accept”, “application/json”);
To check if the registration info is successfully uploaded to the server, get the response code
from the server. In your report, show the screenshot of the response code that was displayed.
Unfortunately, you cannot request your registered courses from the server. Thus, you will still
use local persistent storage for the registered course.

Purchase answer to see full
attachment

Don't use plagiarized sources. Get Your Custom Essay on
MSC Halifax Community College Java Programming & JSON Processing Homework The objective of Assignment 4 is to integrate networking capabilities into the co
Just from $13/Page
Order Essay
Homework On Time
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional academic writers

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.

Admissions

Admission help & business writing

You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.

Reviews

Editing your paper

Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.

Reviews

Revising your paper

Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers