Online Computer Science
It's all about science and computer
Browse: Home / computer science homework

computer science homework

Rewrite the following program segment using while structure rather than a repeat structure?

By admin on July 29, 2011

I need some help with my computer science homework (using Pseudocode) Count ? 1; repeat (print the value assigned to Count and Count ? Count + 1) until (Count = 5)

Posted in Computer Science Homework Help | Tagged computer, computer science homework, help, program segment, structure | 2 Responses

In what sense do the following three steps not constitute an algorithm?

By admin on July 23, 2011

I need a little help with my computer science homework… Step 1. Draw a straight line segment between the points with rectangular coordinates (2,5) and (6,11). Step 2. Draw a straight line segment between the points with rectangular coordinates (1,3) and (3,6). Step 3. Draw a circle whose center is at the intersection of the previous line segments and whose radius is 2.

Posted in Computer Science Homework Help | Tagged computer, computer science homework, help, homework step, step., straight line segment | 2 Responses

Computer Science Homework (in Java) – Strings?

By admin on May 14, 2011

I need to write a program that acts on a String, which I have, but the second part of the assignment is to be able to retain punctuation. The method I’ve written won’t perform the task correctly with punctuation, is there anyway I can take punctuation off, change the String, then put it back on where it was before? I’ve looked at the split method, but I need to keep the punctuation that I take off, and also if the original word is entered in quotes, it needs to output in quotes, which I can’t figure Read more [...]

Posted in Computer Science Homework | Tagged computer science homework, homework, java strings, Newstring, split method, String | 2 Responses

I need help using arrays on my computer science homework!?

By admin on May 3, 2011

I’m trying to do an assignment in java for my program design class, but everytime I run the program an error occurs. We’re just learning how to do arrays and I’m kind of confused. Here’s the assignment: Write a program that will perform the following tasks in the order given: 1. Ask the user how many random numbers they want to generate (1-100). 2. Generate the specified number of double values and store them into an array. Use this formula to generate the numbers: Math.random()*1000.0 + 17.5 Read more [...]

Posted in Computer Science Homework Help | Tagged computer science homework, double values, scanner system | 1 Response

Computer science homework question ( MC )?

By admin on April 29, 2011

The reason that a(n) ________ cannot be used in a variable name, is that they are used to separate objects, properties, and methods. a. underscore b. comma c. period d. slash

Posted in Computer Science Homework | Tagged c period, comma, computer science homework, homework, homework question, reason | 1 Response

I need you to check my Computer Science homework, please?

By admin on April 27, 2011

I’ve written a program to do as the question asks: “Accept 3 command line arguments and report whether they are in order.” I wrote this: public class ThreeLine { public static void main(String[] args) { int a = Math.min(Integer.parseInt(args[0]) ); int b = Math.min(Integer.parseInt(args[1]) ); int c = Math.max(Integer.parseInt(args[2]) ); System.out.println(a < b && b Read more [...]

Posted in Computer Science Homework Help | Tagged command line arguments, computer science homework, homework, min, parseInt, string args | 2 Responses

i need help with my computer science homework.?

By admin on April 10, 2011

This has to be in java code so c++ doesnt help. 1) create an array, have the user input 20 integers into this array, then print this array. 2) print the array backwards. 3) the code will output how many duplicates the array contains. for example… 2 – 5′s , 4 – 7′s , and 3 – 11′s. ///////////////////// So there are 3 outputs. 1) the original array. 2) the array backwards. 3) the duplicates. This has to be in java code so c++ doesnt help. 1) create an array, have the user input 20 integers Read more [...]

Posted in Computer Science Homework Help | Tagged computer science homework, help, input, integers, Java, java code | 3 Responses

I really need some help getting started on my computer science homework. algorithms.?

By admin on April 6, 2011

Work this algorithm, first with x=4 then with x=9. Can you determine what this algorithm does in general? 1. Read a number, call it x. 2. If the value of x is less than zero, stop-no answer is possible. Otherwise, continue. 3. Set s to 1. 4. Set i to 3. 5. Calculate: t=(s+(x/s))/2 6. Set s to t. 7. Decrease i by 1. 8. If i is greater than zero, go back to step 5. Otherwise, continue to step 9. 9. Print the value of s. hm, so i started to work on this and i was wondering what the hell Read more [...]

Posted in Computer Science Homework Help | Tagged answer the question, computer, computer science homework, due tomorrow, help, homework | 3 Responses

So! Who wants to help me with my AP computer science homework?!?

By admin on March 22, 2011

Any takers!? Yay Java!

Posted in Computer Science Homework Help | Tagged ap computer science, computer, computer science homework, homework, Yay | 1 Response

COMPUTER SCIENCE HOMEWORK HELP!?

By admin on March 18, 2011

The video game machines at your local arcade output coupons depending on how well you play the game. You can redeem 10 coupons for a candy bar or 3 coupons for a gumball. You prefer candy bars to gumballs. Write an algorithm that inputs the number of coupons you win and outputs how many candy bars and gumballs you can get if you spend all of your coupons on candy bars first and any remaining coupons on gumballs. ** i need to make a program using Blue J!

Posted in Computer Science Homework Help | Tagged candy, candy bars, computer, computer science homework, help, video game machines | 2 Responses

Recent Comments

  • Leprechaun on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • CooL DV on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • joy_blue03 on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • torskie on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • schweitzer006325 on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • Niranthra S on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • doubleas_an_2010 on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • chat maniac on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • buddy_448 on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?
  • rima_ntic on Which one is your favorite subject? Computer Science, Mathematics, Physics? Why?

Random Search Terms

  • transferring into cmu scs
  • where to find thesis topic for computer engineering
  • m e distance education inn uae
  • pre-calc honors flvs
  • how an indian can take admission in mit usa for engineering
  • distance ms from bits pilani
  • advanced technologies in the field of computer science
  • topic to write on computers
  • Basic things you need to know about computer science
  • www hec gov pk/html/indigenous

Recent Search Terms

11 complete the following sentence __________ earring is this?, ntu phd admissions 2012 posts, i want to hand write a term paper and convert it into text on my computer, what metaphor is used to describe ming in the first paragraph?, What metaphor is used to describe Ming in the first paragraph? (1 point)Ming slouch down farther, cse projects with source code, which degree is high between computer engineering & coputer science engineering, project topics on computer science pdf, uc davis college confidential, thesis topics for computer science m tech
« PreviousNext »

Copyright © 2012 Online Computer Science.

Powered by WordPress