Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 871 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Java Help

Thread title: Java Help
Closed Thread    
    Thread tools Search this thread Display Modes  
11-20-2007, 12:01 PM
#1
masjana.liza is offline masjana.liza
Status: I'm new around here
Join date: Nov 2007
Location:
Expertise:
Software:
 
Posts: 3
iTrader: 0 / 0%
 

masjana.liza is on a distinguished road

  Old  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!
__________________
Gartengeräte Solarenergie

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed