My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum


Reply
 
LinkBack Thread Tools Display Modes
September 18th, 2017, 05:08 PM   #1
Newbie
 
Joined: Jul 2015
From: N/A

Posts: 14
Thanks: 0

Java hw asap

Hi, I would really appreciate if someone could help me with my homework. I need the answers ASAP.


Q) Write declarations for storing the following quantities. Choose between integers and a floating-point numbers. Declare constant when appropriate.

a) the number of days per week
b) the number of days on to the end of the semester
c) the number of centimeters in an inch
d) the height of the tallest person in your class in centimeters


Thank you for your assistance.
nyuviolets is offline  
 
September 18th, 2017, 05:25 PM   #2
Senior Member
 
Joined: Aug 2012

Posts: 1,889
Thanks: 525

Which part of this is giving you trouble? Let's do the first one. There are 7 days in the week, right? Is that a whole number quantity or a quantity that varies continuously? It's a whole number. So it's an ________. (Fill in the blanks).

Is this a quantity that might change from time to time during the execution of a program? Or is it always the same once we declare it? (That's for the constant part).

Can you do the rest of the declaration? Using your book perhaps?

Last edited by skipjack; September 19th, 2017 at 07:11 AM.
Maschke is online now  
Reply

  My Math Forum > Science Forums > Computer Science

Tags
asap, java



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java gaussrelatz Computer Science 3 April 6th, 2014 08:33 AM
java problem cire09 Computer Science 1 October 9th, 2010 05:54 AM
Java code Quantum++ Computer Science 1 September 16th, 2010 09:22 AM
Java - NetBeans Mark Computer Science 5 October 30th, 2007 07:49 AM
Java versus C++ johnny Computer Science 17 October 21st, 2007 07:12 PM





Copyright © 2018 My Math Forum. All rights reserved.