Preview

mr angola

Satisfactory Essays
Open Document
Open Document
329 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
mr angola
Portfolio Title Portfolio Number
Pre-defined data types and Input/Output in Java 1 of 3

Aim of the Portfolio
This Portfolio will help the students understand the concept of pre-defined data types in Java, be familiar with the input/output mechanism and demonstrate the understanding by writing program code using pre-defined data types, taking input from the user and producing outputs.

Learning Outcome(s) of the Portfolio
a) Identify and select appropriate pre-defined data types (1.a)
b) Use simple input/output and appropriate operators with the above (1.b)
c) Develop documentation for a pre-described program application (3.b)
Tasks:
Give BRIEF answers to the following:

1. Define the following programming terms: variable, constant, data type.
2. How is a String variable different from char variable?
3. What is the difference between short int and long int data types?
4. List some of the arithmetic, logical operations with example used in java programming.

Write the following Programs:
5. Write a Java program to perform basic arithmetic operations which are multiplication and division of two numbers. Numbers are assumed to be integers and will be entered by the user
6. That accepts the circle radius from a user, compute area and circumference. Formula Area= π r², circumference = 2* π r.
7. Asks the user to enter studentID, Name, Sex, Age, and Height in meters; Stores these in variables of appropriate data types and presents them together to the user. e.g.
StudentID:p1001215
Name: Vasu
Sex: M
Age: 32
Height: 1.65 meters

Reading Materials
1. Lecture notes available on STP Online
2. Introduction to Java Programming by Y. Daniel Liang (8th Edition)

Feedback
Strengths

Areas for Improvement

Lecturer Signature:

You May Also Find These Documents Helpful

  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    PRG 421 – JAVA PROGRAMMING II – Complete Class Includes All DQs, Individual and Team Assignments – UOP Latest…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Tale of Angola: Free Blacks, Red Stick Creeks, and International Intrigue in Spanish Southwest Florida, 1812-1821.…

    • 632 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The area of any shape can be computed from any line segment squared. In a square, our "line segment" is usually a side, and the area is that side squared (side 5, area 25). In a circle, the line segment is often the radius, and the area is pi * r^2 (radius…

    • 348 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Blacks and Indians that fought for their freedom in Florida only to be forgotten are the Tales of Angola. 1812 a free black community and called Angola grew along the Manatee River, the residents of the community were free blacks, runaway slaves and soldiers from the war. As the small community grew hate also grew a led to “the largest slave rebellion in the United States history” 1.…

    • 528 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    One problem would be where to enter the data. Another problem would be the accuracy of the data since some students may not know their exact height.…

    • 394 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Procedures: include how the data will be retrieved, input into the system, stored, managed, transformed, analyzed, and finally presented in a final output.…

    • 1265 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun Logo, Solstice, Java, JavaBeans, JDK, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g) (2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015 (b)(6/95) and DFAR…

    • 6064 Words
    • 25 Pages
    Good Essays
  • Powerful Essays

    : How to find the area of a circle by using a formula pi x r2…

    • 899 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Csc238

    • 875 Words
    • 4 Pages

    for (int bil = 0; bil < 10; bil++) { //input and sum value of price price=inp.nextDouble(); sumPrice= sumPrice + price; } System.out.println(“The sum prices is RM: ”+sumPrice); of 10…

    • 875 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Java Dumps

    • 5526 Words
    • 23 Pages

    Answer: A, F QUESTION: 3 Given: 7. void waitForSignal() { 8. Object obj = new Object(); 9. synchronized (Thread.currentThread()) { 10. obj.wait(); 11. obj.notify(); 12. } 13. } Which statement is true? A. This code can throw an InterruptedException. B. This code can throw an IllegalMonitorStateException. C. This code can throw a TimeoutException after ten minutes. D. Reversing the order of obj.wait() and…

    • 5526 Words
    • 23 Pages
    Satisfactory Essays
  • Powerful Essays

    In this chapter we would look onto two important structured data types , one is Array and the other…

    • 5461 Words
    • 36 Pages
    Powerful Essays
  • Powerful Essays

    Sagar

    • 4867 Words
    • 20 Pages

    I SAGAR GOLA, student of B.Tech (IT) hereby declare that the project titled “IMAPRO- Image processing system” which is submitted by us to Department of INFORMATION TECHNOLOGY, Amity School of Engineering and Technology, Amity University,Uttar Pradesh, Noida, in partial fulfillment of requirement for the award of the degree of Bachelor of Technology in Information Technology, has not been previously formed the basis for the award of any degree, diploma or other similar title or recognition.…

    • 4867 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    This tool contains the tables Management, teacher, parent, student, grade and attendance. In every table username and password must. The Management can access all the information on the tool .only management modify the data, Teacher enter the information in teacher table, parents can read the data which display on the parent table, student cannot change the data on the table. Grades details display while enter the current user id and…

    • 306 Words
    • 2 Pages
    Good Essays