Results 1 to 6 of 6

Thread: Computing bytes

  1. #1
    captainjack is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

    Default Computing bytes

    How do I write a code if there are 20 school teachers and 100 students in the school. If everything is managed in a program, each teacher object requires 200 bytes, each student object requires 100 bytes, how do I write the expression and compute the total # of bytes required to store all the objects in the program?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    captainjack is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

    Default Re: Computing bytes

    I can't figure out how to make a valid JAVA code. I was able to do it in Java-script but I can't figure it out in JAVA.

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default Re: Computing bytes

    Really!

    You have no idea how to type up a couple of mathematical expressions? Or just one if you are adventurous.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Computing bytes

    Quote Originally Posted by captainjack View Post
    I can't figure out how to make a valid JAVA code. I was able to do it in Java-script but I can't figure it out in JAVA.
    Then the solution is not for us to do this for you but for you to learn Java. If you want to give it a go, please start here: The Really Big Index

    Much luck!

  6. #6
    captainjack is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Document about Parallel Computing
    By nxhoaf in forum Threads and Synchronization
    Replies: 1
    Last Post: 10-05-2010, 07:58 PM
  2. computing hour & Salary
    By arshesander in forum New To Java
    Replies: 4
    Last Post: 08-07-2009, 10:17 PM
  3. Computing a cube (power of 3).
    By Jary316 in forum New To Java
    Replies: 4
    Last Post: 01-16-2009, 09:13 PM
  4. Computing the sum
    By Limuh in forum New To Java
    Replies: 3
    Last Post: 08-13-2008, 06:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •