Java Primitive Types to Calculate Expenses

Offered By
Coursera Project Network
In this Guided Project, you will:

Use Arithmetic Operators to Calculate a Monthly House Payment.

Use a Scanner to assign values taken from User Input.

Create methods to calculate and return monthly house payments and grocery expenses.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this project you will create an application that calculates a monthly expense estimation using a calculated monthly house payment and grocery bills using Java. Java is an Object-Oriented language that contains many Classes but also contains what are called Primitive Data Types. These primitive data types are used to store numbers and characters in Java and have all the Arithmetic operations needed to perform various calculations. To get started with Java, it is important to know how to use these built in data types as they are found throughout the language. The primitive data types take up much less space than objects do and can make a program much more efficient when used properly. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Data TypeAlgorithmsObject-Oriented Programming (OOP)JavaComputer Programming

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Create the Java Class and add the Public Static Void Main Method to Create the Application.

  2. Initialize primitive variables of type long, int, byte, char, double, float and boolean.

  3. Use Arithmetic Operators to Calculate a Monthly House Payment.

  4. Use a Scanner to assign values taken from User Input.

  5. Create methods to calculate and return monthly house payments and grocery expenses.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.