Write a mongodb query to display all the restaurants

Assignment Help Other Subject
Reference no: EM132481859

CST4070 Individual Assignment

NoSQL databases, formative assignment.

General information

You are required to solve the tasks illustrated below. Each task should be accompanied by:

A short introduction where you describe the problem and your high level solution.

Your step-by-step process supported by your original code. Each block of code needs to be accompanied by a short explanatory text.
Eventually, if necessary, conclude each task with brief summary of what you have done.

As individual submission, you need to export your individual R Notebook (or Python Jupyter Notebook, at your choice) into a PDF file. Your submission needs to be a single PDF file.

Your submission needs to be unique

When solving your tasks, you need to make your submission and comments unique.

Assignment Task

Follow the lab instructions to install MongoDB into your (virtual or local) environment. Once you have MongoDB installed and running, install mongolite library in R or Pymongo library in Python at your choice. Use either R or Python to execute the following tasks:

Part 1. Unzip the file restaurants.zip and extract the content. Import the file into a MongoDB collection called restaurants .

Part 2. Write a MongoDB query to display all the restaurants from the borough .

Part 3. Determine the minimum and the maximum score achieved by any restaurant.

Part 4. Visualise the frequency distribution of the average scores achieved by any restaurant.

Part 5. Select all the restaurants and save them into csv (comma separated value) table. The structure of the table needs to be: name, borough, average_score, where average_score contains the average numerical score of each corresponding restaurant.

Attachment:- formative assignment - FormativeMongoDB.rar

Reference no: EM132481859

Questions Cloud

Develop a draft of your research paper using the components : Develop a draft of your research paper using the components that you have developed in the course so far. Make use of your sentence outline and annotated.
How much Mira will recognize a gain : On January 2, 2019, Mira sells her stock to Cheryl Bazley for $25,000,000. As a result of the sale, how much Mira will recognize a gain
How would you use the least square method : Describe in one page or less, how would you use 'the least square method' to find the cube function that approximate the time series the best.
What is the effect on Rush Company capital structure : Rush Company has 1000 shares of stock outstanding. Its paid-in-capital is $700,000. What is the effect on Rush Company capital structure
Write a mongodb query to display all the restaurants : Write a MongoDB query to display all the restaurants from the borough and Determine the minimum and the maximum score achieved by any restaurant
Difference between perpetual and periodic inventory systems : Discuss and Explain the difference between the Perpetual and Periodic inventory systems and let us know why anyone would use Periodic inventory
Discuss criminal law and civil law : This week we discuss criminal law and civil law, commonly referred to as tort law. What is the difference between criminal law and tort law?
Can you explain what each parameter is : Elliptic Curve requires these parameters (P, a, b, G, n, h). Can you explain what each parameter is? You will need to research your answers.
How does your position affect your stance : How does your position affect your stance on controversial bioethical issues, such as abortion, designer babies, and stem cell research? The response nust be.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd