Coursera - Computer Science: Programming With A Purpose

Week 1: hello, world - integers and booleans.

Jul 1, 2020

Write a program RightTriangle that takes three integer command-line arguments and determines whether they constitute the side lengths of some right triangle.

computer science programming with a purpose coursera assignment answers

The following two conditions are necessary and sufficient:

  • Each integer must be positive.
  • The sum of the squares of two of the integers must equal the square of the third integer.

Note: the above description is copied from Coursera and converted to markdown for convenience

Link To: Java Source Code

computer science programming with a purpose coursera assignment answers

Computer Science: Programming with a Purpose

computer science programming with a purpose coursera assignment answers

  • From www.coursera.org
  • Free Access
  • Fee-based Certificate
  • 10 Sequences
  • Introductive Level

computer science programming with a purpose coursera assignment answers

Their employees are learning daily with

Course details, prerequisite, instructors.

Robert Sedgewick William O. Baker *39 Professor of Computer Science Computer Science

Kevin Wayne Senior Lecturer Computer Science

Coursera is a digital company offering massive open online course founded by computer teachers Andrew Ng and Daphne Koller Stanford University, located in Mountain View, California. 

Coursera works with top universities and organizations to make some of their courses available online, and offers courses in many subjects, including: physics, engineering, humanities, medicine, biology, social sciences, mathematics, business, computer science, digital marketing, data science, and other subjects.

Get certified in

  • JEE Main 2024
  • MHT CET 2024
  • JEE Advanced 2024
  • BITSAT 2024
  • View All Engineering Exams
  • Colleges Accepting B.Tech Applications
  • Top Engineering Colleges in India
  • Engineering Colleges in India
  • Engineering Colleges in Tamil Nadu
  • Engineering Colleges Accepting JEE Main
  • Top IITs in India
  • Top NITs in India
  • Top IIITs in India
  • JEE Main College Predictor
  • JEE Main Rank Predictor
  • MHT CET College Predictor
  • AP EAMCET College Predictor
  • GATE College Predictor
  • KCET College Predictor
  • JEE Advanced College Predictor
  • View All College Predictors
  • JEE Main Question Paper
  • JEE Main Cutoff
  • JEE Main Answer Key
  • JEE Main Result
  • Download E-Books and Sample Papers
  • Compare Colleges
  • B.Tech College Applications
  • JEE Advanced Registration
  • MAH MBA CET Exam
  • View All Management Exams

Colleges & Courses

  • MBA College Admissions
  • MBA Colleges in India
  • Top IIMs Colleges in India
  • Top Online MBA Colleges in India
  • MBA Colleges Accepting XAT Score
  • BBA Colleges in India
  • XAT College Predictor 2024
  • SNAP College Predictor
  • NMAT College Predictor
  • MAT College Predictor 2024
  • CMAT College Predictor 2024
  • CAT Percentile Predictor 2023
  • CAT 2023 College Predictor
  • CMAT 2024 Registration
  • TS ICET 2024 Registration
  • CMAT Exam Date 2024
  • MAH MBA CET Cutoff 2024
  • Download Helpful Ebooks
  • List of Popular Branches
  • QnA - Get answers to your doubts
  • IIM Fees Structure
  • AIIMS Nursing
  • Top Medical Colleges in India
  • Top Medical Colleges in India accepting NEET Score
  • Medical Colleges accepting NEET
  • List of Medical Colleges in India
  • List of AIIMS Colleges In India
  • Medical Colleges in Maharashtra
  • Medical Colleges in India Accepting NEET PG
  • NEET College Predictor
  • NEET PG College Predictor
  • NEET MDS College Predictor
  • DNB CET College Predictor
  • DNB PDCET College Predictor
  • NEET Application Form 2024
  • NEET PG Application Form 2024
  • NEET Cut off
  • NEET Online Preparation
  • Download Helpful E-books
  • LSAT India 2024
  • Colleges Accepting Admissions
  • Top Law Colleges in India
  • Law College Accepting CLAT Score
  • List of Law Colleges in India
  • Top Law Colleges in Delhi
  • Top Law Collages in Indore
  • Top Law Colleges in Chandigarh
  • Top Law Collages in Lucknow

Predictors & E-Books

  • CLAT College Predictor
  • MHCET Law ( 5 Year L.L.B) College Predictor
  • AILET College Predictor
  • Sample Papers
  • Compare Law Collages
  • Careers360 Youtube Channel
  • CLAT Syllabus 2025
  • CLAT Previous Year Question Paper
  • AIBE 18 Result 2023
  • NID DAT Exam
  • Pearl Academy Exam

Animation Courses

  • Animation Courses in India
  • Animation Courses in Bangalore
  • Animation Courses in Mumbai
  • Animation Courses in Pune
  • Animation Courses in Chennai
  • Animation Courses in Hyderabad
  • Design Colleges in India
  • Fashion Design Colleges in Bangalore
  • Fashion Design Colleges in Mumbai
  • Fashion Design Colleges in Pune
  • Fashion Design Colleges in Delhi
  • Fashion Design Colleges in Hyderabad
  • Fashion Design Colleges in India
  • Top Design Colleges in India
  • Free Sample Papers
  • Free Design E-books
  • List of Branches
  • Careers360 Youtube channel
  • NIFT College Predictor
  • UCEED College Predictor
  • NID DAT College Predictor
  • IPU CET BJMC
  • JMI Mass Communication Entrance Exam
  • IIMC Entrance Exam
  • Media & Journalism colleges in Delhi
  • Media & Journalism colleges in Bangalore
  • Media & Journalism colleges in Mumbai
  • List of Media & Journalism Colleges in India
  • Free Ebooks
  • CA Intermediate
  • CA Foundation
  • CS Executive
  • CS Professional
  • Difference between CA and CS
  • Difference between CA and CMA
  • CA Full form
  • CMA Full form
  • CS Full form
  • CA Salary In India

Top Courses & Careers

  • Bachelor of Commerce (B.Com)
  • Master of Commerce (M.Com)
  • Company Secretary
  • Cost Accountant
  • Charted Accountant
  • Credit Manager
  • Financial Advisor
  • Top Commerce Colleges in India
  • Top Government Commerce Colleges in India
  • Top Private Commerce Colleges in India
  • Top M.Com Colleges in Mumbai
  • Top B.Com Colleges in India
  • IT Colleges in Tamil Nadu
  • IT Colleges in Uttar Pradesh
  • MCA Colleges in India
  • BCA Colleges in India

Quick Links

  • Information Technology Courses
  • Programming Courses
  • Web Development Courses
  • Data Analytics Courses
  • Big Data Analytics Courses
  • RUHS Pharmacy Admission Test
  • Top Pharmacy Colleges in India
  • Pharmacy Colleges in Pune
  • Pharmacy Colleges in Mumbai
  • Colleges Accepting GPAT Score
  • Pharmacy Colleges in Lucknow
  • List of Pharmacy Colleges in Nagpur
  • GPAT Result
  • GPAT 2024 Admit Card
  • GPAT Question Papers
  • NCHMCT JEE 2024
  • Mah BHMCT CET
  • Top Hotel Management Colleges in Delhi
  • Top Hotel Management Colleges in Hyderabad
  • Top Hotel Management Colleges in Mumbai
  • Top Hotel Management Colleges in Tamil Nadu
  • Top Hotel Management Colleges in Maharashtra
  • B.Sc Hotel Management
  • Hotel Management
  • Diploma in Hotel Management and Catering Technology

Diploma Colleges

  • Top Diploma Colleges in Maharashtra
  • UPSC IAS 2024
  • SSC CGL 2024
  • IBPS RRB 2024
  • Previous Year Sample Papers
  • Free Competition E-books
  • Sarkari Result
  • QnA- Get your doubts answered
  • UPSC Previous Year Sample Papers
  • CTET Previous Year Sample Papers
  • SBI Clerk Previous Year Sample Papers
  • NDA Previous Year Sample Papers

Upcoming Events

  • NDA Application Form 2024
  • UPSC IAS Application Form 2024
  • CDS Application Form 2024
  • CTET Admit card 2024
  • HP TET Result 2023
  • SSC GD Constable Admit Card 2024
  • UPTET Notification 2024
  • SBI Clerk Result 2024

Other Exams

  • SSC CHSL 2024
  • UP PCS 2024
  • UGC NET 2024
  • RRB NTPC 2024
  • IBPS PO 2024
  • IBPS Clerk 2024
  • IBPS SO 2024
  • CBSE Class 10th
  • CBSE Class 12th
  • UP Board 10th
  • UP Board 12th
  • Bihar Board 10th
  • Bihar Board 12th
  • Top Schools in India
  • Top Schools in Delhi
  • Top Schools in Mumbai
  • Top Schools in Chennai
  • Top Schools in Hyderabad
  • Top Schools in Kolkata
  • Top Schools in Pune
  • Top Schools in Bangalore

Products & Resources

  • JEE Main Knockout April
  • NCERT Notes
  • NCERT Syllabus
  • NCERT Books
  • RD Sharma Solutions
  • Navodaya Vidyalaya Admission 2024-25
  • NCERT Solutions
  • NCERT Solutions for Class 12
  • NCERT Solutions for Class 11
  • NCERT solutions for Class 10
  • NCERT solutions for Class 9
  • NCERT solutions for Class 8
  • NCERT Solutions for Class 7
  • Top University in USA
  • Top University in Canada
  • Top University in Ireland
  • Top Universities in UK
  • Top Universities in Australia
  • Best MBA Colleges in Abroad
  • Business Management Studies Colleges

Top Countries

  • Study in USA
  • Study in UK
  • Study in Canada
  • Study in Australia
  • Study in Ireland
  • Study in Germany
  • Study in China
  • Study in Europe

Student Visas

  • Student Visa Canada
  • Student Visa UK
  • Student Visa USA
  • Student Visa Australia
  • Student Visa Germany
  • Student Visa New Zealand
  • Student Visa Ireland
  • CUET PG 2024
  • IGNOU B.Ed Admission 2024
  • DU Admission 2024
  • UP B.Ed JEE 2024
  • LPU NEST 2024
  • IIT JAM 2024
  • IGNOU Online Admission 2024
  • Universities in India
  • Top Universities in India 2024
  • Top Colleges in India
  • Top Universities in Uttar Pradesh 2024
  • Top Universities in Bihar
  • Top Universities in Madhya Pradesh 2024
  • Top Universities in Tamil Nadu 2024
  • Central Universities in India
  • CUET Exam City Intimation Slip 2024
  • IGNOU Date Sheet
  • CUET Mock Test 2024
  • CUET Admit card 2024
  • CUET PG Syllabus 2024
  • CUET Participating Universities 2024
  • CUET Previous Year Question Paper
  • CUET Syllabus 2024 for Science Students
  • E-Books and Sample Papers
  • CUET Exam Pattern 2024
  • CUET Exam Date 2024
  • CUET Syllabus 2024
  • IGNOU Exam Form 2024
  • IGNOU Result
  • CUET Courses List 2024

Engineering Preparation

  • Knockout JEE Main 2024
  • Test Series JEE Main 2024
  • JEE Main 2024 Rank Booster

Medical Preparation

  • Knockout NEET 2024
  • Test Series NEET 2024
  • Rank Booster NEET 2024

Online Courses

  • JEE Main One Month Course
  • NEET One Month Course
  • IBSAT Free Mock Tests
  • IIT JEE Foundation Course
  • Knockout BITSAT 2024
  • Career Guidance Tool

Top Streams

  • IT & Software Certification Courses
  • Engineering and Architecture Certification Courses
  • Programming And Development Certification Courses
  • Business and Management Certification Courses
  • Marketing Certification Courses
  • Health and Fitness Certification Courses
  • Design Certification Courses

Specializations

  • Digital Marketing Certification Courses
  • Cyber Security Certification Courses
  • Artificial Intelligence Certification Courses
  • Business Analytics Certification Courses
  • Data Science Certification Courses
  • Cloud Computing Certification Courses
  • Machine Learning Certification Courses
  • View All Certification Courses
  • UG Degree Courses
  • PG Degree Courses
  • Short Term Courses
  • Free Courses
  • Online Degrees and Diplomas
  • Compare Courses

Top Providers

  • Coursera Courses
  • Udemy Courses
  • Edx Courses
  • Swayam Courses
  • upGrad Courses
  • Simplilearn Courses
  • Great Learning Courses

Computer Science Programming with a Purpose at Princeton University, Princeton

Learn about the fundamental concepts in programming through this online certification course by Coursera.

Quick Facts

Course overview.

The Computer Science: Programming with a Purpose Certification Course is a 100% online course that introduces learners to the basics of programming along with its core concepts. The course is available in a flexible mode through the Coursera learning platform. The course contents will be taught by the computer science professors at Princeton University.

The Computer Science: Programming with a Purpose Training will be provided via videos, academic reading materials followed by practice exercises for each module. The Computer Science: Programming with a Purpose Certification by Coursera and Leiden University aims at equipping learners with the skills and knowledge in computer programming .

The Highlights

  • Free course
  • Flexible deadlines
  • 100% online
  • 88 study hours
  • Video lectures
  • Practice exercises
  • Academic readings
  • Graded assignments 
  • Peer feedback
  • English medium
  • Financial aid
  • Subtitles in English, French, Portuguese (European), German, Russian, Spanish

Programme Offerings

Courses and certificate fees.

There is no Computer Science: Programming with a Purpose Certification Fees. All course materials can be accessed for free and there will be no course certificate available.

What you will learn

After completing the Computer Science: Programming with a Purpose Certification Classes, you will gain insights into the following topics:

  • Basic programming elements
  • Variables and conditionals
  • Loops, arrays, and I/O
  • Key concepts of recursion
  • Modular programming
  • Introduction to object-oriented programming
  • Java programming language
  • Computational problem solving 

Who it is for

The course is apt for anyone with an interest in computer programming and  programming languages.

Admission Details

Follow the given steps to enroll in the Computer Science: Programming with a Purpose Online Course:

Step 1: Click on the URL given below -

https://www.coursera.org/learn/cs-programming-java

Step 2: Click on the “Enroll for Free” option and choose the desired option.

Step 3: Fill in the required details and complete the process.

The Syllabus

  • Why programming?
  • Program development
  • Built-in data types
  • Type conversion
  • Supplements for Lecture 1
  • Optional Enrichment on Basic Programming Concepts

Practice Exercise

Basic Programming Concepts

  • Conditionals: the if statement
  • Loops: the while statement
  • An alternative: the for loop
  • Supplements for Lecture 2
  • Optional Enrichment on Conditionals and Loops

Conditionals and Loops

  • Basic concepts
  • Typical array-processing code
  • Two-dimensional arrays
  • Supplements for Lecture 3
  • Optional Enrichment on Arrays
  • Standard input and output
  • Standard drawing
  • Fractal drawings
  • Supplements for Lecture 4
  • Optional Enrichment on Input and Output

Input and Output

  • Case study: Digital audio
  • Application: Gaussian distribution
  • Modular programming and libraries
  • Supplements for Lecture 5
  • Optional Enrichment on Functions and Libraries

Functions and Libraries

  • Foundations
  • A classic example
  • Recursive graphics
  • Avoiding exponential waste
  • Dynamic programming
  • Supplements for Lecture 6
  • Optional Enrichment on Recursion
  • The challenge
  • Empirical analysis
  • Mathematical models
  • Doubling method
  • Familiar examples
  • Supplements for Lecture 7
  • Optional Enrichment on Performance
  • Performance
  • Image processing
  • String processing
  • Supplements for Lecture 8
  • Optional Enrichment on Abstract Data Types
  • Abstract Data Types
  • Point charges
  • Turtle graphics
  • Complex numbers
  • Supplements for Lecture 9
  • Optional Enrichment on Creating Data Types

Creating Data Types

  • Popular languages
  • Java in context
  • Object-oriented programming
  • Type checking
  • Functional programming

Supplements for Lecture 10

Programming Languages

Instructors

Princeton university, princeton frequently asked questions (faq's).

The course requires approximately 88 study hours for completion.

No, the Computer Science: Programming with a Purpose Online Course does not provide placement opportunities.

Yes, the course is offered in 100% online mode.

Yes, the Computer Science: Programming with a Purpose Course provides certification to learners.

Yes, there is an option to attend the course free of cost wherein you can get access to course materials.

  • Latest Articles
  • Popular Articles
  • Other Important Articles

DY Patil International University, Akurdi

Pratibha college of commerce and computer studies, pune, sdj international college, surat, symbiosis institute of computer studies and research, pune, prerna college of commerce, nagpur, shri sarvajanik bca and pgdca college, mehsana, vivekananda school of information technology, delhi, school of computer science and information technology, devi ahilya vishwavidyalaya, indore, similar courses, design and pedagogy of the introductory programming.

Indian Institute of Technology Bombay via   NPTEL

Smarter Chatbots with Node RED and Watson AI

IBM via   Edx

Introduction to z OS Commands and Panels on IBM Z

Decode data structures and algorithms with c++.

PW Skills  

Certificate in C Sharp Programming

Create chatbots using python, build chatbot using python, build your own ai chatbot.

Board Infinity  

R Programming Training

Mindmajix Technologies  

R Programming For Absolute Beginners

More courses by princeton university, princeton, bitcoin and cryptocurrency technologies.

Princeton University, Princeton via   Coursera

Computer Science Algorithms, Theory and Machines

The art of structural engineering bridges.

Princeton University, Princeton via   Edx

Making Government Work in Hard Places

Analysis of algorithms, paradoxes of war, imagining other earths, algorithms part ii, computer architecture, algorithms part 1, explore on careers360.

  • Most Viewed Courses
  • Browse Most Popular Courses
  • Browse Trending Reads

Explore Trending Courses

  • Digital Marketing Courses
  • Fashion Design Courses
  • Data Science Courses
  • Interior Design Courses
  • Graphic Designing Courses
  • Cyber Security Courses
  • Nursing Courses
  • Tally Courses
  • Data Analysis Courses
  • Web Designing Courses

Explore Free Courses

  • Free Digital Marketing Courses
  • Free Artificial Intelligence Courses
  • Free Data Analysis Courses
  • Free Cyber Security Courses
  • Free Data Science Courses
  • Free Cloud Computing Courses
  • Free Python Courses
  • Free Fashion and Textile Courses
  • Free Graphic Designing Courses
  • Free Web Designing Courses

Most Popular Branches

  • General Management Courses
  • Teaching and Education Courses
  • Financial Management Courses
  • Public Health Courses
  • Mathematics Courses
  • Project Management Courses

Most Popular Platforms

  • Upgrad Courses
  • edx Courses
  • Futurelearn Courses
  • Mindmajix Technologies Courses
  • Vskills Courses
  • MSBM Courses
  • Emeritus Courses

Popular Reads

  • 10 Reasons to Enrol Yourself in a Digital Marketing Course
  • 8 Must-Have Skills for AWS Cloud Architects
  • Planning to Upskill Yourself? Enrol for a Program in Data Science
  • 25+ Tips for Improving Your Graphic Design Skills
  • Top Universities in India Offering Cyber Security Courses

Professional Guides

  • 15+ Courses for Learning Data Mining
  • How to Make a Career in the Field of Artificial Intelligence
  • Top 10 Benefits of Holding a Certification in Business Intelligence
  • Which are the best certification courses for Photography in India
  • A Beginner's Guide to Pursue Python Programming

Knowledge Boosters

  • Want to Pursue a Career in Blockchain Technology? Here is all that you need to Know
  • How Entrepreneurs Can Use Machine Learning to Make their Business Successful?
  • The Scope of Artificial Intelligence in India
  • Top 10 Online Courses for Travel Lovers
  • 10 Best Certification Courses After Hospital and Healthcare Management

Download Careers360 App's

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

student

Cetifications

student

We Appeared in

Economic Times

Help Articles

Solve problems with programming assignments, learner help center dec 5, 2022 • knowledge, article details.

If you're having problems with a programming assignment, check for your issue below.

If your problem is with a different kind of assignment, or you don't see your issue here, check our assignment troubleshooting page.

Can't submit programming assignment

If you're having trouble submitting a programming assignment, try the following steps:

  • Make sure you saved your files in the correct format. To change the format, re-save your files.
  • Decrease the size of the files, if possible.
  • Clear your browser's cookies and cache.
  • Making sure any ad-blocking software is turned off on your browser or network.
  • Ask your peers for help by posting in the course discussion forums. Many programming assignment issues have very specific requirements, so people in the same course will be able to help you more than Coursera's support team.

No grade on programming assignment

If the assignment uses custom grading, it will take up to an hour to get your grades back.

If you've waited longer than an hour and still don't have a grade:

  • Check the assignment instructions and make sure you have saved your files in the right format.
  • Resubmit the assignment.

Understanding your grade

Because many programming assignment graders use complex logic that the instructor creates, the Coursera support team can’t explain or change programming assignment grades.

To understand your grade on a programming assignment, review the assignment instructions and any feedback you got.

You can also discuss any questions with your peers in the course discussion forums.

Assignment not marked complete

Weeks that include programming assignments may still say in progress even after you've successfully completed the assignment.

Check your Grades tab to confirm that you've successfully completed the assignment.

Token issues

If you're having trouble with a token not syncing or not showing up, try 

  • Making sure your ad-blocking software is turned off on your browser or network
  • Making sure you are logged in with the correct account
  • Clearing your cache and cookies
  • Using a different browser or new browser window
  • Check if your computer’s clock is set accurately

Related Articles

  • Number of Views 47.95K
  • Number of Views 36.95K
  • Number of Views 69.25K
  • Number of Views 81.41K
  • Number of Views 100.48K

computer science programming with a purpose coursera assignment answers

© 2021 Coursera Inc. All rights reserved.

computer science programming with a purpose coursera assignment answers

Computer Science

Programming with a purpose.

OpenCourser is an affiliate partner of Coursera and may earn a commission when you buy through our links.

Get a Reminder

Not ready to enroll yet? We'll send you an email reminder for this course

Princeton University

Get an email reminder about this course

Similar Courses

What people are saying.

According to other learners, here's what you need to know

excellent course in 3 reviews

Excellent course, inface the best I found on any MOOC platform for a complete beginner to Java.

Excellent course.

very helpful in 3 reviews

The very helpful FAQ of assignment from that I've learned many more things.5.

The reference to the Book was very helpful if you want to learn more.

course with in 3 reviews

Great course with emphasizing on computational thinking.

Very effective course with automated and immediate students graduation This course is excellent; It provides a robust framework to build on programming practices.

programming assignments in 3 reviews

The programming assignments are the most valuable part from my perspective.

The programming assignments are very interesting and really make you think.

An overview of related careers and their average salaries in the US. Bars indicate income percentile.

Reading Adjunct $33k

Reading/Writing Instructor $46k

Reading/Writing Tutor $46k

Reading Resource Teacher/Language Arts Writing Process Teacher $49k

Intensive Reading/Reading Coach $49k

Coordinator-Reading, Writing, Study Skills $49k

Writing/Reading Coach $54k

Writing Tutor, Writing Center $55k

Adjunct Instructor, Developmental Reading and Writing $57k

Reading Recovery/Reading Specialist $60k

Developmental Reading and Writing Tutor $64k

Writing Instructor (University Writing) $80k

Write a review

Your opinion matters. Tell us what you think.

Please login to leave a review

Sorted by relevance

Like this course?

Here's what to do next:

  • Save this course for later
  • Get more details from the course provider
  • Enroll in this course

Special thanks to our sponsors

computer science programming with a purpose coursera assignment answers

Online courses from the world's best universities

computer science programming with a purpose coursera assignment answers

Develop in-demand skills

computer science programming with a purpose coursera assignment answers

Simple, cost-effective cloud hosting services

computer science programming with a purpose coursera assignment answers

Buy cheap domain names and enjoy 24/7 support

dots

Computer Science: Programming with a Purpose

essential-img

Page Links:

Description

The basis for education in the last millennium was “reading, writing, and arithmetic;” now it is reading, writing, and computing. Learning to program is an essential part of the education of every student, not just in the sciences and engineering, but in the arts, social sciences, and humanities, as well. Beyond direct applications, it is the first step in understanding the nature of computer science’s undeniable impact on the modern world. This course covers the first half of our book Computer Science: An Interdisciplinary Approach (the second half is covered in our Coursera course Computer Science: Algorithms, Theory, and Machines). Our intent is to teach programming to those who need or want to learn it, in a scientific context. Read more.

This resource is offered by an affiliate partner. If you pay for training, we may earn a commission to support this site.

Career Relevance by Data Role

The techniques and tools covered in Computer Science: Programming with a Purpose are most similar to the requirements found in Data Engineer job advertisements.

Tools and Techniques

Subscribe for updates, similar opportunities, learn kotlin, mastering programming with matlab.

Coursera - Vanderbilt University

Computer Science: Algorithms, Theory, and Machines

Coursera - Princeton University

Functional Programming in Haskell: Supercharge Your Coding

FutureLearn

Video Game Design and Development: Introduction to Game Programming

Programming languages, part a.

Coursera - University of Washington

Learn How to Code

Learn java for beginners, cobol programming with vscode.

  • Top Courses
  • Online Degrees
  • Find your New Career
  • Join for Free

University of London

Introduction to Computer Programming

This course is part of Introduction to Computer Science and Programming Specialization

Taught in English

Some content may not be translated

Dr Edward Anstead

Instructors: Dr Edward Anstead +1 more

Instructors

Instructor ratings

We asked all learners to give feedback on our instructors based on the quality of their teaching style.

Financial aid available

75,918 already enrolled

Coursera Plus

(848 reviews)

Details to know

computer science programming with a purpose coursera assignment answers

Add to your LinkedIn profile

See how employees at top companies are mastering in-demand skills

Placeholder

Build your subject-matter expertise

  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

Placeholder

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV

Share it on social media and in your performance review

Placeholder

There are 3 modules in this course

This MOOC provides you with the foundational skill set required to write computer programs. If you are interested in learning how to write interactive, graphical programs from an introductory level in a real programming language, this is the course for you. You will begin by learning the basics of editing and running programs. Then you will learn how to create 2D graphics using shapes and coordinates. Finally, you will learn how to create interactive graphics that you can control with the mouse. You will even solve a set of interactive puzzles using your coding skills in the Sleuth game which has been created especially for this course. The course uses the Javascript language and the p5.js library.

Your development environment

In this topic you will learn about three key concepts: • The toolkit we will use to develop programs.• Drawing using simple shapes and 2D coordinates.• The process and experience of writing code.

What's included

8 videos 7 readings 2 quizzes 1 programming assignment 4 discussion prompts

8 videos • Total 43 minutes

  • Welcome to the course and about us • 1 minute • Preview module
  • About you: Growth mindset • 2 minutes
  • What is programming ? What is p5.js • 4 minutes
  • Running your first program with Brackets • 6 minutes
  • Learn by hacking • 4 minutes
  • 2D coordinate systems • 7 minutes
  • Code philosophy: What it feels like to code • 3 minutes
  • Getting started with Sleuth • 11 minutes

7 readings • Total 240 minutes

  • Some information before you begin…. • 10 minutes
  • P5.js Resources • 10 minutes
  • How to download and install Brackets • 10 minutes
  • Programing exercise 1: Hack the Robot • 10 minutes
  • Programing exercise 2: Code from scratch: De Stijl • 180 minutes
  • Sleuth Case by Case • 10 minutes
  • Transcripts for the videos of Sleuth cases 201, 202, 301, 302, 303 • 10 minutes

2 quizzes • Total 60 minutes

  • Getting started with P5.js • 30 minutes
  • 2D coordinate system • 30 minutes

1 programming assignment • Total 180 minutes

  • Sleuth assessment • 180 minutes

4 discussion prompts • Total 40 minutes

  • Running your first program with Brackets • 10 minutes
  • Hack the Robot • 10 minutes
  • De Stijl, share your modern master • 10 minutes
  • Code philosophy • 10 minutes

Drawing in 2D

In this topic you will learn about three key concepts: • Set of 2D drawing functions in p5.js • Colour representation and styles • Debugging with the console

7 videos 4 readings 4 quizzes 3 discussion prompts

7 videos • Total 43 minutes

  • RGB colours • 8 minutes • Preview module
  • fill, stroke, noFill • 7 minutes
  • setup, draw and Programme Flow • 3 minutes
  • Shapes: ellipse, rectangle, line, triangle, point • 6 minutes
  • How to access and use the console to view errors • 3 minutes
  • Debugging syntax errors • 8 minutes
  • Code Philosophy: Asking for help • 5 minutes

4 readings • Total 60 minutes

  • Programing exercise 3: Hack it - Robot parade • 10 minutes
  • Programing exercise 4: Code from scratch: Kandinsky • 10 minutes
  • Teach it to yourself • 10 minutes
  • Programing exercise 5: Debug challenge • 30 minutes

4 quizzes • Total 120 minutes

  • RGB colours • 30 minutes
  • setup, draw and Programme Flow • 30 minutes
  • ellipse, rectangle, line, triangle, point • 30 minutes
  • Using the console and debugging syntax errors • 30 minutes

3 discussion prompts • Total 40 minutes

  • Hack it: Robot parade. What did you learn? What do you need to learn? • 10 minutes
  • Kandinsky: Share your abstract master. What did you learn? What do you need to learn? • 10 minutes
  • Post examples of good and bad questions • 20 minutes

Variables, objects and interaction

In this topic you will learn about three concepts: • Variables and data • Simple interaction • Code organisation

10 videos 4 readings 4 quizzes 3 discussion prompts

10 videos • Total 60 minutes

  • Built-in Variables: mouseX, mouseY • 5 minutes • Preview module
  • Built-in Events: mousePressed, keyPressed • 3 minutes
  • Create your own variables: var, initialising and assigning • 10 minutes
  • 12 top tips for naming variables • 2 minutes
  • Objects • 7 minutes
  • Working with operators • 10 minutes
  • Mathematical functions: random, min, max • 11 minutes
  • Inspecting variables in the console • 3 minutes
  • Code philosophy: The elegant coder • 3 minutes
  • MOOC Summary • 0 minutes

4 readings • Total 240 minutes

  • Programing exercise 6: Coding from scratch - Drawing App • 180 minutes
  • Programing exercise 7: Hack It - Sunrise • 10 minutes
  • Teach it to yourself • 20 minutes
  • Programing exercise 8: Debug challenge • 30 minutes
  • Built-in Variables: mouseX, mouseY, and Events • 30 minutes
  • Create your own variables: var, initialising and assigning • 30 minutes
  • Working with operators • 30 minutes
  • Inspecting Variables in the Console • 30 minutes

3 discussion prompts • Total 30 minutes

  • Coding From Scratch: Drawing App. What did you learn? What do you need to learn? • 10 minutes
  • Hack it: Sunrise. What did you learn? What do you need to learn? • 10 minutes
  • Code philosophy: The elegant coder • 10 minutes

computer science programming with a purpose coursera assignment answers

The University of London is a federal University which includes 17 world leading Colleges. With extensive experience in distance learning since 1858, University of London has enriched the lives of thousands of students, delivering high quality degrees across the globe. Today, University of London is a global leader in flexible study, offering degree programmes to over 45,000 students in over 190 countries, delivering world-leading research across the world. To find out more about University of London, visit www.london.ac.uk

computer science programming with a purpose coursera assignment answers

Championing research-rich degrees that provoke thought, stretch the imagination and tap into tomorrow’s world, at Goldsmiths we’re asking the questions that matter now in subjects as diverse as the arts and humanities, social sciences, cultural studies, computing, and entrepreneurial business and management. We are a community defined by its people: innovative in spirit, analytical in approach and open to all.

Recommended if you're interested in Software Development

computer science programming with a purpose coursera assignment answers

University of London

How Computers Work

computer science programming with a purpose coursera assignment answers

Introduction to Computer Science and Programming

Specialization

computer science programming with a purpose coursera assignment answers

Xi'an Jiaotong University

Windows可视化程序设计

computer science programming with a purpose coursera assignment answers

Mathematics for Computer Science

Prepare for a degree.

Taking this course by University of London may provide you with a preview of the topics, materials and instructors in a related degree program which can help you decide if the topic or university is right for you.

Bachelor of Science in Computer Science

Degree · 3 – 6 years

Why people choose Coursera for their career

computer science programming with a purpose coursera assignment answers

Learner reviews

Showing 3 of 848

848 reviews

Reviewed on Feb 20, 2020

Thank you coursera and everyone involved in making this course back in London university.

This was a Great adventure and i learned so much along the way.

Reviewed on Jul 12, 2020

Muy buen curso.

Aprendes las bases necesarias para dibujar en un canvas. Lo demás se puede investigar directamente de la página de referencias de p5.js

Reviewed on Aug 3, 2020

Great course. Worth the time and money if you, like me, had no had no background in programming and need to start from scratch.

New to Software Development? Start here.

Placeholder

Open new doors with Coursera Plus

Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions

When will i have access to the lectures and assignments.

Access to lectures and assignments depends on your type of enrollment. If you take a course in audit mode, you will be able to see most course materials for free. To access graded assignments and to earn a Certificate, you will need to purchase the Certificate experience, during or after your audit. If you don't see the audit option:

The course may not offer an audit option. You can try a Free Trial instead, or apply for Financial Aid.

The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.

What will I get if I subscribe to this Specialization?

When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. If you only want to read and view the course content, you can audit the course for free.

What is the refund policy?

If you subscribed, you get a 7-day free trial during which you can cancel at no penalty. After that, we don’t give refunds, but you can cancel your subscription at any time. See our full refund policy Opens in a new tab .

Is financial aid available?

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

More questions

computer science programming with a purpose coursera assignment answers

~/Desktop/hello> javac HelloWorld.java ~/Desktop/hello> java HelloWorld Hello, World
~/Desktop/hello> javac HelloGoodbye.java ~/Desktop/hello> java HelloGoodbye Kevin Bob Hello Kevin and Bob. Goodbye Bob and Kevin. ~/Desktop/hello> java HelloGoodbye Alejandra Bahati Hello Alejandra and Bahati. Goodbye Bahati and Alejandra.
~/Desktop/hello> javac RightTriangle.java ~/Desktop/hello> java RightTriangle 3 4 5 true ~/Desktop/hello> java RightTriangle 13 12 5 true ~/Desktop/hello> java RightTriangle 1 2 3 false ~/Desktop/hello> java RightTriangle -3 4 -5 false
~/Desktop/hello> javac GreatCircle.java ~/Desktop/hello> java GreatCircle 40.35 74.65 48.87 -2.33 // Princeton to Paris 5902.927099258561 kilometers ~/Desktop/hello> java GreatCircle 60.0 15.0 120.0 105.0 // for debugging 4604.53989281927 kilometers
\( \begin{align*} red \;&=\; \max \left \{ \, 0, \; 255 \times (1 - cyan - black) \, \right \} \\ green \;&=\; \max \left \{ \, 0, \; 255 \times (1 - magenta - black) \, \right \} \\ blue \;&=\; \max \left \{ \, 0, \; 255 \times (1 - yellow - black) \, \right \} \end{align*} \)
\( \begin{align*} white \;&=\; 1 - black \\ red \;&=\; 255 \; \times \; white \; \times \; (1 - cyan) \\ green \;&=\; 255 \; \times \; white \; \times \; (1 - magenta) \\ blue \;&=\; 255 \; \times \; white \; \times \; (1 - yellow) \end{align*} \)
~/Desktop/hello> javac CMYKtoRGB.java ~/Desktop/hello> java CMYKtoRGB 0.0 1.0 0.0 0.0 // magenta red = 255 green = 0 blue = 255 ~/Desktop/hello> java CMYKtoRGB 0.0 0.4392156862745098 1.0 0.0 // Princeton orange red = 255 green = 143 blue = 0

computer science programming with a purpose coursera assignment answers

Programming in Java   ·   Computer Science   ·   An Interdisciplinary Approach

Online content. , introduction to programming in java., computer science., for teachers:, for students:.

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

coursera-assignment

Here are 358 public repositories matching this topic..., greyhatguy007 / machine-learning-specialization-coursera.

Contains Solutions and Notes for the Machine Learning Specialization By Stanford University and Deeplearning.ai - Coursera (2022) by Prof. Andrew NG

  • Updated Apr 19, 2024
  • Jupyter Notebook

amanchadha / coursera-deep-learning-specialization

Notes, programming assignments and quizzes from all courses within the Coursera Deep Learning specialization offered by deeplearning.ai: (i) Neural Networks and Deep Learning; (ii) Improving Deep Neural Networks: Hyperparameter tuning, Regularization and Optimization; (iii) Structuring Machine Learning Projects; (iv) Convolutional Neural Network…

  • Updated Apr 13, 2024

greyhatguy007 / Mathematics-for-Machine-Learning-and-Data-Science-Specialization-Coursera

Mathematics for Machine Learning and Data Science Specialization - Coursera - deeplearning.ai - solutions and notes

  • Updated Jun 2, 2023

amanchadha / coursera-natural-language-processing-specialization

Programming assignments from all courses in the Coursera Natural Language Processing Specialization offered by deeplearning.ai.

  • Updated Jun 28, 2023

greyhatguy007 / meta-front-end-developer-professional-certificate

"Meta Front End Developer Professional Certificate" - Solutions to all assignments and graded quiz.

  • Updated Apr 26, 2024

Sachin-Wani / deeplearning.ai-GANs-Specialization

A Generative Adversarial Networks (GANs) Specialization made by deeplearning.ai on Coursera

  • Updated Nov 21, 2020

saksham1991999 / django-for-everybody-specialization

Django for Everybody Specialization Course by University Michigan (Coursera)

  • Updated Dec 19, 2023

TheAlgo / Coursera-Java-for-Android

Solutions for the course Java for Android

  • Updated Oct 4, 2022

ashishpatel26 / TensorFlow-Advanced-Techniques-Specialization

Tensorflow Advanced Technique Specialization

  • Updated Jul 29, 2021

shouhaddo / Databases-and-SQL-for-Data-Science-with-Python

This repository contains the answers for coursera 's "Databases and SQL for Data Science with Python " course by ibm with honors (week 1 - week 6)

  • Updated Jun 26, 2021

shreyansh225 / Coursera-Python-Data-Structures-University-of-Michigan-

All my solved ASSIGNMENTS & QUIZZES in Python Data Structure course on COURSERA using Python 3.

  • Updated Feb 7, 2021

ezgi-kaysi / Coursera-IBM-Data-Science-Professional-Certificate

IBM Data Science Professional Certificate

  • Updated Apr 21, 2019

anhtuan85 / TensorFlow-Advanced-Techniques-Specialization

Deeplearning.AI TensorFlow Advanced Techniques Specialization Solution

  • Updated Feb 6, 2021

Sachin-Wani / NLP-Specialization

NLP Specialization (Natural Language Processing) made by deeplearning.ai

  • Updated Sep 23, 2020

raman08 / Coursera-Data-Structure-And-Algorithms-by-University-of-California-San-Diego

my presonal repo for Data Structure and Algorithms by Coursera

  • Updated Aug 26, 2020

chandrikadeb7 / Coursera_IBM_Data_Science_Professional_Certificate

This repo consists of the lecture PDFs and quiz solutions of all the courses under the IBM Data Science Professional Certificate specialization course of Coursera.

  • Updated Oct 2, 2020

launchcode01dl / deeplearning.ai-coursera

This repository contains programming assignments and research paper refrenced in the deeplearning.ai specialization by Andrew-Ng on Coursera.

  • Updated Mar 22, 2019

anhtuan85 / Generative-Adversarial-Networks-GANs-Specialization

Deeplearning.AI Generative Adversarial Networks (GANs) Specialization Solution

  • Updated Nov 18, 2020

sahilkhose / Generative-Adversarial-Networks-GANs-Specialization

Solutions to DeepLearning.AI Generative Adversarial Networks (GANs) Specialization

  • Updated Oct 11, 2020

AlessandroCorradini / University-of-Minnesota-Recommender-System-Specialization

Repository for the Honor Track of Recommender Systems Specialization from University of Minnesota on Coursera

  • Updated Aug 25, 2019

Improve this page

Add a description, image, and links to the coursera-assignment topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the coursera-assignment topic, visit your repo's landing page and select "manage topics."

IMAGES

  1. Introduction to Computer Programming

    computer science programming with a purpose coursera assignment answers

  2. Coursera

    computer science programming with a purpose coursera assignment answers

  3. Coursera: Programming Fundamentals All Quiz Answers

    computer science programming with a purpose coursera assignment answers

  4. Coursera Introduction to Python Programming Penn University

    computer science programming with a purpose coursera assignment answers

  5. C++ For C Programmers, Part-A Coursera Course Week-3 & 4 Quiz Answers

    computer science programming with a purpose coursera assignment answers

  6. GitHub

    computer science programming with a purpose coursera assignment answers

VIDEO

  1. **UPDATED** AP CS A

  2. Coursera: IBM

  3. Coursera: IBM

  4. Coursera: IBM

  5. Coursera: IBM

  6. Coursera: IBM

COMMENTS

  1. liuhh02/Computer-Science-Programming-with-a-Purpose

    Quiz and Programming Assignment Solutions to the Coursera Computer Science: Programming with a Purpose course by Princeton University - liuhh02/Computer-Science-Programming-with-a-Purpose

  2. stasbutuzov/Computer-Science-Programming-with-a-Purpose

    Repository contains solutions to programming assignments for the course "Computer Science: Programming with a Purpose". The course is offered by a Princeton University on Coursera education platform.

  3. Programming assignment help for Programming with a Purpose Coursera

    Closed 3 years ago. I am taking Programming with a Purpose on Coursera, an "Intro to Java" type course provided by Princeton, and have made it to week 8 so far (out of 10 weeks). I am stuck on their "Kernel Filter" assignment and the forum for this particular course it completely dead. Rather than write out the prompt for the assignment since ...

  4. Computer Science: Programming with a Purpose

    Learning to program is an essential part of every student's education, not just in the sciences and engineering but in the arts, social sciences, and humanities. Beyond direct applications, it is the first step in understanding the nature of computer science's undeniable impact on the modern world. This course covers the first half of our ...

  5. Computer Science: Programming with a Purpose

    This course covers the first half of our book Computer Science: An Interdisciplinary Approach (the second half is covered in our Coursera course Computer Science: Algorithms, Theory, and Machines). Our intent is to teach programming to those who need or want to learn it, in a scientific context. We begin by introducing basic programming ...

  6. Coursera

    Week 1: Hello, World - Integers And Booleans. Write a program RightTriangle that takes three integer command-line arguments and determines whether they constitute the side lengths of some right triangle. The following two conditions are necessary and sufficient: Each integer must be positive.

  7. Learner Reviews & Feedback for Computer Science: Programming ...

    Find helpful learner reviews, feedback, and ratings for Computer Science: Programming with a Purpose from Princeton University. Read stories and highlights from Coursera learners who completed Computer Science: Programming with a Purpose and wanted to share their experience. Beautiful course. I am a software developer with 10+ years of experience in programming and have nev...

  8. Computer Science: Programming with a Purpose

    Beyond direct applications, it is the first step in understanding the nature of computer science's undeniable impact on the modern world. This course covers the first half of our book Computer Science: An Interdisciplinary Approach (the second half is covered in our Coursera course Computer Science: Algorithms, Theory, and Machines).

  9. Repository for my solutions on Assignments on Computer Science ...

    Repository for my solutions on Assignments on Computer Science: Programming with a Purpose course by Princeton University in Coursera - GitHub - kibalias/CS-Programming-with-a-Purpose: Repository for my solutions on Assignments on Computer Science: Programming with a Purpose course by Princeton University in Coursera

  10. Computer Science Programming with a Purpose Course at Princeton

    The Computer Science: Programming with a Purpose Training will be provided via videos, academic reading materials followed by practice exercises for each module. The Computer Science: Programming with a Purpose Certification by Coursera and Leiden University aims at equipping learners with the skills and knowledge in computer programming.

  11. Solve problems with programming assignments

    Can't submit programming assignment. If you're having trouble submitting a programming assignment, try the following steps: Make sure you saved your files in the correct format. To change the format, re-save your files. Decrease the size of the files, if possible. Clear your browser's cookies and cache. Making sure any ad-blocking software is ...

  12. Introduction to Computer Science and Programming Specialization

    The Specialisation should take approximately 13 weeks to complete. How Computers Work course is 4 weeks long, Introduction to Computer Programming is 3 weeks long, and Mathematics for Computer Science there is 6 weeks long. The courses are flexible so these are indicative timings. Learners can study the courses concurrently but should be ...

  13. Computer Science: Programming with a Purpose: An Online Course from

    Beyond direct applications, it is the first step in understanding the nature of computer science's undeniable impact on the modern world. This course covers the first half of our book Computer Science: An Interdisciplinary Approach (the second half is covered in our Coursera course Computer Science: Algorithms, Theory, and Machines).

  14. Computer Science: Programming with a Purpose

    Beyond direct applications, it is the first step in understanding the nature of computer science's undeniable impact on the modern world. This course covers the first half of our book Computer Science: An Interdisciplinary Approach (the second half is covered in our Coursera course Computer Science: Algorithms, Theory, and Machines). Our ...

  15. Introduction to Computer Programming

    This course is part of the Introduction to Computer Science and Programming Specialization. When you enroll in this course, you'll also be enrolled in this Specialization. Learn new concepts from industry experts. Gain a foundational understanding of a subject or tool. Develop job-relevant skills with hands-on projects.

  16. Programming Assignment 1: Hello, World

    Programming Assignment 1: Hello, World. The purpose of this assignment is to introduce you to programming in Java and familiarize you with the mechanics of preparing and submitting assignment solutions. Install our Java programming environment (recommended). Install our novice-friendly Java programming environment on your computer by following ...

  17. navanith007/Computer-Science-Programming-with-a-purpose

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.

  18. Introduction to Programming in Java · Computer Science

    Programming assignments. Creative programming assignments that we have used at Princeton. You can explore these resources via the sidebar at left. Introduction to Programming in Java. Our textbook Introduction to Programming in Java [ Amazon · Pearson · InformIT] is an interdisciplinary approach to the traditional CS1 curriculum with Java. We ...

  19. coursera-solutions · GitHub Topics · GitHub

    Coursera Course: Introduction to Programming 👩‍💻 with MATLAB ~by Vanderbilt University 🎓 . ... UIUC Illinois Computer Science Fundamentals Solution Coursera ... quiz genes command-line-tool genomic coursera-course gen coursera-assignment genomics-data coursera-solutions coursera-assignment-solution course-answers coursera-answers ...

  20. coursera-assignment · GitHub Topics · GitHub

    Notes, programming assignments and quizzes from all courses within the Coursera Deep Learning specialization offered by deeplearning.ai: (i) Neural Networks and Deep Learning; (ii) Improving Deep Neural Networks: Hyperparameter tuning, Regularization and Optimization; (iii) Structuring Machine Learning Projects; (iv) Convolutional Neural ...