It appears you have not yet registered with our community. To register please click here...


Java Help

This is a discussion on Java Help within the JavaScript and Java forums. Topic: I got a few questions: 1. What is the general purpose of conditionals? How do they enhance the creation of ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Search this Thread Postbit Seperator Display Modes
Old 11-23-2007, 09:52 AM   #1 (permalink)
 
Status: Junior Member
Join Date: Nov 2007
Posts: 3
Trader Rating: (0)
masjana.liza is on a distinguished road
TD$: 40.00
Donate
Default Java Help
I got a few questions:

1. What is the general purpose of conditionals? How do they enhance the creation of decisional outcomes?

2. Suppose we wanted to establish a program that analyzes and makes a decision about the following topic:

Purchase a burger or a slice of pizza based whether the price of each item was above $2.00.

Create a proram that demonstrates this decision.

3. Convert the following to its extended assignment form

x = x + 2

y = y * 4

z = z - 8

a = b + 1

x = x / 2

a = a % 6

4. Convert the following to its increment or decrement form

int q; q = q + 1 result is: ??

double r; r = r - 1.0 result is: ??

5. Which math method would be the best to use in the following situations:

Identify the largest number in the set: x=15, y=12, z=22

Identify the smallest number in the set: 20,15,35

Cube 5

Square when x = 4.0

Thanks!
__________________
Massivhaus Katzenfutter
masjana.liza is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0