- In this challenge you will create a simple application…that will calculate a compass bearing.…It is actually a very simple decision system…based on a series of "if" statements.…One of the main objectives here…is that you also write some code…for a practical application…and not just a theoretical exercise.…Specifically, the program will ask you…to enter a number between zero and 360,…because there's a total…of 360 degrees possible in the compass.…

Then, the program will calculate a direction as follows:…Let's say your input is 45,…your answer would be that you are headed…North 45 degrees East.…If your input is, for example, 123,…then the answer would be that you are headed…South 57 degrees East,…because 123 and 57 is 180, pretty simple.…

Resume Transcript Auto-Scroll

Author

Released

6/30/2014

Widely used for both systems and application development, C is a powerful language at the heart of many more modern languages, like JavaScript and Objective-C. In this course, professor Isac Artzi dissects the anatomy of C, from data types, strings, and variables to simple functions. He'll show how these basic elements fit together in control structures like loops and if-else statements—where the real logic behind your code comes into play. Plus, learn how C organizes information into arrays and how you can manage memory resources with pointers.

C is a great first step for new programmers, and a way to broaden and deepen your knowledge if you've already programmed for a while. Press Play to start learning.

Skills covered in this course

Course Retiring Soon

C Essential Training will be retired from the lynda.com library on April 5th, 2019. Training videos and exercise files will no longer be available, but the course will still appear in your course history and certificates of completion. For current training, check out C Essential Training: 1 The Basics in the lynda.com Online Training Library.

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.