Lost Password?

Go Back   CodeCall Programming Forum > Software Development > General Programming > Programming Theory

Programming Theory Discuss programming theory, algorithm efficiency, logic, and other any other category where math and computer science overlap.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-2008, 11:13 PM
johnny's Avatar   
johnny johnny is offline
Newbie
 
Join Date: Feb 2008
Location: United States of America.
Age: 17
Posts: 7
Rep Power: 0
johnny is on a distinguished road
Default Computer Science stuff

Okay, so these are the questions that came from my computer science textbook, and I answered them on my own, but the textbook does not give out the answers for these questions. I want to know if I answered these right. Any suggestions would be appreciated.

1. Suppose that only 50GB of your personal computer's 120GB hard-disk drive is empty. Would it be reasonable to use CDs to store all the material you have on the drive as a backup? What about DVDs?
I answered:
It would be reasonable to use CDs, because information is recorded in them by creating variations in their reflection surfaces. But, not really DVDs, because they usually work very well for multimedia and entire motion pictures.

2. How many bytes of storage space would be required to store a 400-page novel in which each page contains 3500 characters if ASCII were used? How many bytes would be required if Unicode were used?
I answered:
1 character in ASCII = 8 bits = 1 byte, 1 character in Unicode = 16 bits = 2 bytes
(400)(3500) = 1400000 characters
Thus, 1400000 bytes for ASCII, and 2800000 bytes for Unicode.

3. What values have binary representations in which only one of the bits is 1? List the binary representations for the smallest six values with this property.
I answered:
Possible binary representations: 0001, 0010, 0100, 1000, 10000, 100000
Therefore 1, 2, 4, 8, 16, and 32.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-17-2008, 10:15 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 1,922
Last Blog:
NaNoWriMo Days 3 and 4
Rep Power: 22
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default Re: Computer Science stuff

For 1: think about the storage size of a CD/DVD and the amount of data that needs to be stored for a single backup. I would not consider CDs a viable format based on those calculations.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 04:39 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,478
Last Blog:
Random Numbers
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default Re: Computer Science stuff

I too would not consider a CD a reasonable option. It would require 1000CD's. DVD's are a much better option IMO, Bluray would be even better.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008, 04:59 PM
broncoslb broncoslb is offline
Learning Programmer
 
Join Date: Feb 2008
Posts: 34
Rep Power: 2
broncoslb is on a distinguished road
Default Re: Computer Science stuff

Yea, that would still be about 11 DVDs. External hdd would be a much better solution.

As for #3, 10000000 would be -128 if you are working with signed values, so that could replace your 100000=32 on your list
__________________
-Dustin
www.theCprogrammer.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer science or Programming? Victor Bushkov The Lounge 6 03-12-2008 10:59 AM
Majoring in Computer Science, got a question shimmy General Programming 7 02-03-2008 11:09 AM
Computer Science Major Embodier Introductions 6 01-18-2008 01:34 PM
need help with simple C++ TicTacToe game with AI flupke1 C and C++ 11 08-14-2007 10:27 AM
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials, Classes and Code 7 02-01-2007 10:58 PM


All times are GMT -5. The time now is 01:25 PM.

Contest Stats

John ........ 167.00000
Xav ........ 164.00000
dargueta ........ 148.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads