API - Javascript - D3 Test - L2 - 202310
API - Javascript - D3 Test - L2 - 202310
1. Programming: APIs
APIs for your reference:
1) Home Page - Show list of Posts (title, content), from the Posts API, for ever post, Fetch and Show the name of
the User who has created the post
2) when the user clicks the post, show the post details page, user details of the user who has created that post,
and comments of said post
Technologies to Use:
1) A FrontEnd framework of your Choice (React, Vue, Angular, etc...)
2) Use a Router to navigate between pages
3) use a Store to store the data
2) When you highlight on a bar, it expands, but tool tip (% number) goes away
i. Change the code so that the tool tip remains
ii. Change the highlighted colour from green to blue
Iii. Add a Percentile Line with Y2 Axis as Percentile Scale
Iv. Add any other additional features you can think of (indicate what they are)
How to Submit the Assignment: Share this jsfiddle in your name and share the link for your modified codeb
It is not the textbook perfect answer that we are looking for, but the strength of your foundational
understanding, eye for the details, curiosity in your mind and the ability to formulate solutions.
Creating Information Advantage
3. Programming Logic 1
Write a function that accept three positive integers as input and check if they form the sides of a right
triangle. Print YES if they form one, and NO if they do not. The output should be a single line containing
one of these two strings: YES or NO.
4. Programming Logic 2
Write a function which accepts two positive integers M and N as input. There are two cases to
consider:
(1) If M < N, then print M as output.
(2) If M >= N, subtract N from M. Call the difference M1. If M1 >= N, then subtract N from M1
and call the difference M2. Keep doing this operation until you reach a value k, such that, M k < N. You
have to print the value of Mk as output.
a. Test case 1 :
i. Input – M = 10, N = 15
ii. Output : 10
b. Test case 2:
i. Input – M = 15, N = 15
ii. Output : 0
c. Test case 3 :
i. Input – M = 15, N = 10
ii. Output : 5
Write a pseudocode to get all customers whose withdrawals are more than the deposits ove the last 6
months cumulatively. State your assumptions if any and write the program (or a pseudocode). Create
test data as needed.
It is not the textbook perfect answer that we are looking for, but the strength of your foundational
understanding, eye for the details, curiosity in your mind and the ability to formulate solutions.