NodeJS Web Application Answers

Questions: 10

Answers by our Experts: 8

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a PHP page, with the standard HTML <head>,



<title> and <body> tags.





Save your file with the .php extension.





Inside the <body> tag, create a PHP section and create



several variables regarding on the student information example



Student_FirstName, Student_MiddleName, Student_Lastname, address, course, year, and motto will show as a text in the browser.




Given an

app.js file and a database file twitterClone.db consisting of five tables user, follower, tweet, reply, and like.Write APIs to perform operations on the tables

user, follower, tweet, reply, and like containing the following columns,User Table

ColumnTypeuser_idINTEGERnameTEXTusernameTEXTpasswordTEXTgenderTEXT

Follower Table

ColumnTypefollower_idINTEGERfollower_user_idINTEGERfollowing_user_idINTEGER

Here, if user1 follows user2 then,

follower_user_id is the user ID of user1 and following_user_id is the user ID of user2.Tweet Table

ColumnTypetweet_idINTEGERtweetTEXTuser_idINTEGERdate_timeDATETIME

Reply Table

ColumnTypereply_idINTEGERtweet_idINTEGERreplyTEXTuser_idINTEGERdate_timeDATETIME

Like Table

ColumnTypelike_idINTEGERtweet_idINTEGERuser_idINTEGERdate_timeDATETIME

Sample Valid User Credentials



{

"username":"JoeBiden",

"password":"biden@123"

}


  • API 1
  • API 2
  • Authentication with JWT Token
  • API 3
  • API 4
  • API 5
  • API 6
  • API 7
  • API 8
  • API 9
  • API 10
  • API 11

Properties Of Relation (Cover Transitive, Reflective and Symmetric)

a. Embed Transitive, Reflective, and Symmetric rules into the program.

b. Write a program that read set of element and its relation. Your input data will be read from text file/console/GUI with the format below:

Input (Example): {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}

You need to create a GUI application to process your input and output.

c. Determine the properties of relation (reflexive, symmetric, transitive.....). For example the above set and relation will produce:

Output: The set properties is REFLEXIVE, SYMMETRIC, AND TRANSITIVE.

d. Your program also need to be able to generate the Transitive, Symmetric and Closure for the set and relation.

(This example is for guidance only. The actual data is necessary according to your case.


Twitter

Twitter

Given an app.js file and a database file twitterClone.db consisting of five tables user, follower, tweet, reply, and like.


Write APIs to perform operations on the tables user, follower, tweet, reply, and like containing the following columns,


User Table


Column Type

user_id INTEGER

name TEXT

username TEXT

password TEXT

gender TEXT

Follower Table


Column Type

follower_id INTEGER

follower_user_id INTEGER

following_user_id INTEGER

Here, if user1 follows user2 then,


follower_user_id is the user ID of user1 and following_user_id is the user ID of user2.




Column Type

tweet_id INTEGER

tweet TEXT

user_id INTEGER

date_time DATETIME

Reply Table


Column Type

reply_id INTEGER

tweet_id INTEGER

reply TEXT

user_id INTEGER

date_time DATETIME

Like Table


Column Type

like_id INTEGER

tweet_id INTEGER

user_id INTEGER

date_time DATETIME

Sample Valid User Credentials

API 1

API 2

Authentication with JWT Token

API 3

API 4

API 5

API 6

API 7

API 8

API 9

API 10

API 11


a) Using the Google Meet platform as a practical example, discuss how it would be categorized under this course and discussing its different components and their purposes


Twitter

The above url contains Twitter Question and following things

https://github.com/Harinadh93/Twitter.git


We want code in app.js file and app.http file

We want exact output


Twitter

Twitter

Given an

app.js file and a database file twitterClone.db consisting of five tables user, follower, tweet, reply, and like.Write APIs to perform operations on the tables

user, follower, tweet, reply, and like containing the following columns,User Table

ColumnTypeuser_idINTEGERnameTEXTusernameTEXTpasswordTEXTgenderTEXT

Follower Table

ColumnTypefollower_idINTEGERfollower_user_idINTEGERfollowing_user_idINTEGER

Here, if user1 follows user2 then,

follower_user_id is the user ID of user1 and following_user_id is the user ID of user2.Tweet Table

ColumnTypetweet_idINTEGERtweetTEXTuser_idINTEGERdate_timeDATETIME

Reply Table

ColumnTypereply_idINTEGERtweet_idINTEGERreplyTEXTuser_idINTEGERdate_timeDATETIME

Like Table

ColumnTypelike_idINTEGERtweet_idINTEGERuser_idINTEGERdate_timeDATETIME

Sample Valid User Credentials



{

"username":"JoeBiden",

"password":"biden@123"

}


  • API 1
  • API 2
  • Authentication with JWT Token
  • API 3
  • API 4
  • API 5
  • API 6
  • API 7
  • API 8
  • API 9
  • API 10
  • API 11

Time Converter

In this assignment, let's build a Time Converter by applying the concepts we learned till now.

Refer to the below image.


Instructions:

  • The HTML input element for entering the number of hours should have the id hoursInput
  • The HTML input element for entering the number of minutes should have the id minutesInput
  • Add HTML label elements for HTML input elements with ids hoursInput and minutesInput
  • The HTML button element should have the id convertBtn
  • The HTML p element to display the converted time in seconds should have the id timeInSeconds
  • The HTML p element to display the error message should have the id errorMsg

By following the above instructions, achieve the given functionality.

  • When values are entered in HTML input elements with ids hoursInput and minutesInput, the HTML button with id convertBtn is clicked





Final Value with Appreciation

Given principal amount

principal as an input, time period in years time and appreciation percentage apprPercentage as optional inputs, write a JS function to return the final value finalValue with the given appreciation percentage and time period. The default values for time and apprPercentage are 2 and 5 respectively.

Quick Tip

The formula to calculate the final value with appreciation is,

finalValue = principal * (1 + time * appreciation / 100)

Input

  • The first line of input contains a number principal
  • The second line (optional) of input contains a number time
  • The third line (optional) of input contains a number apprPercentage

Output

  • The output should be a single line containing the finalValue
NOTE:you cannot use external JS libraries like CSV2JSON. You can use built in libraries like lodash, fs, streams, etc.

Convert the CSVs that have the data you need http://files.grouplens.org/datasets/movielens/ ml-latest-small.zip, not ml-latest.zip (files needed: ratings.csv, movies.csv) Convert files into JSON. Your program will execute without command line input. It should convert files that exist in the same directory.

Be mindful that your csv conversion will have to work with very big files (the large dataset)
Create a JSON file containing only the information you need (user id, movie id, movie title, rating)

Make a command line app that given a user id, outputs the best 10 recommendations and their proposed ratings using the K nearest neighbor euclidean distance algorithms.

Note: I (student) have code that I've made attempting both of these but both have failed miserably. If you'd like to see those and just correct them let me know and I'll be happy to post them up (or send them)
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS