•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 455,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,684 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 521 | Replies: 1
![]() |
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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!
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!
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Java 3D Environment (Java)
- Java 3D (Java)
- Java Expert (Needed) (Java)
- Java Chat Reboots (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Attempting to render shimmering text
- Next Thread: Form Validation Issues



Linear Mode