Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 29th, 2013, 01:04 PM
pol212 pol212 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 2 pol212 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 43 m 36 sec
Reputation Power: 0
Homework - Homework Help Arithmetic Expressions

Write, code, and test a java program that prints the values of the following arithmetic expressions:
a. 2013
b. 3819.06
c. 7252 + 816
d. 4496 - 342
e, 751 - 5259
f. 8377.99 + 2.2406
g. 193 -7·6·5 - 3.88
h. (5³ - 6·15)/(7·3-4·6-11)

All arithmetic calculations are to be done by the program not you.

(I assume the · sign means multiply)

Appreciate all your help guys

Reply With Quote
  #2  
Old January 29th, 2013, 01:34 PM
Jacques1's Avatar
Jacques1 Jacques1 is online now
pollyanna
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2012
Location: Germany
Posts: 2,043 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 h 7 m 4 sec
Reputation Power: 812
Hi,

and what are we supposed to do now? In other words, what's your question? I mean, I assume you do know how to write the number "2013" in a Java program and output it.

Reply With Quote
  #3  
Old January 29th, 2013, 01:56 PM
pol212 pol212 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 2 pol212 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 43 m 36 sec
Reputation Power: 0
Quote:
Originally Posted by Jacques1
Hi,

and what are we supposed to do now? In other words, what's your question? I mean, I assume you do know how to write the number "2013" in a Java program and output it.


Im actually completely clueless as to how to code this.
Comments on this post
tvc3mye disagrees: If you are completely clueless, then start from scratch: Go through tutorials found in google, start
by typing the keyword "Java Tutorial beginner"

Reply With Quote
  #4  
Old January 29th, 2013, 02:58 PM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 3,046 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 16 h 47 m 36 sec
Reputation Power: 346
Quote:
java program that prints the values

Start by defining a class with the main() method.
Add a call to the println() method to print out the number.

See the tutorial for how to get started:
http://docs.oracle.com/javase/tutor...java/win32.html

Reply With Quote
  #5  
Old January 29th, 2013, 03:39 PM
Jacques1's Avatar
Jacques1 Jacques1 is online now
pollyanna
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2012
Location: Germany
Posts: 2,043 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 h 7 m 4 sec
Reputation Power: 812
Quote:
Originally Posted by pol212
Im actually completely clueless as to how to code this.


No offense, but then you should start listening more carefully when at school (or wherever you got that from) and learn to use Google.

If you got a concrete question or stumbled upon a specific problem (like strange results for the division), that's perfectly fine. But saying that you have absolutely no idea what to do is a bit ... weak in the times of Youtube tutorials everywhere.

There is nothing to "code". The first part is simply a "Hallo world" with numbers. All you need is a general understanding of how Java code looks like and how it is compiled. You should be able to find that out within, say, half an hour.

Like I said: If you got a concrete question or a problem (like an unexpected result or an error message), we'll gladly help you. But don't expect us to do the thinking for you or hand out code. This is your homework, after all.
Comments on this post
pol212 disagrees!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Homework - Homework Help Arithmetic Expressions

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap