Search:

Type: Posts; User: CSUTD

Search: Search took 0.12 seconds.

  1. [SOLVED] Write a program that merges two files containing alphabetized lists of student record

    I solved it
  2. Replies
    0
    Views
    1,000

    [SOLVED] Translate sentence to morse cod?

    I figured it out but don't know how to delete a post.
  3. Replies
    7
    Views
    1,632

    Re: Nested loop if statement help

    public static void main(String [] args)
    {
    Scanner keyboard = new Scanner(System.in);

    int num = 0;
    int num_of_rows = 1;

    while(num < 1 || num > 10)...
  4. Replies
    7
    Views
    1,632

    Re: Nested loop if statement help

    Not working, I may have done it wrong.

    I enter 2 it prints out "$$" and the "The number you entered is invalid". Even if I enter 20 it says the same thing. But it doesn't ask for the user to enter...
  5. Replies
    7
    Views
    1,632

    Re: Nested loop if statement help

    Yes, that is correct.

    So, a while loop would be the thing to use?
  6. Replies
    7
    Views
    1,632

    Nested loop if statement help

    Right now my code is generating half of what it is supposed to.

    Program asks the user to enter a number from 1 to 10.

    Enter 7

    output will be $$$$$$$

    I'm having issues with my if...
  7. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    Can't use arrays. Even if we were I wouldn't know how. I am in an intro class. I only know to a certain point.

    Can I ask why you didn't think my code produced what it should.



    um, if you...
  8. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    This is my output:


    Enter some numbers: 2

    You entered numbers 2.
    Your total are 2
    Enter some numbers: 7

    You entered numbers 7.
  9. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    Is there a simpler way to print everything out on two lines?

    Example:
    You entered numbers 2,7, 3, and 0.
    Your totals are 2, 9, and 12.



    {
    Scanner keyboard = new Scanner...
  10. Replies
    9
    Views
    2,921

    Cumulative sum of entries

    I need a little help.

    Not sure where to go from here.



    public static void main(String[] args)
    {
    Scanner keyboard = new Scanner (System.in);
  11. Replies
    3
    Views
    1,203

    Re: What is wrong with my if/else statement?

    That is all you had to say...I saw it after you mentioned this.

    Thanks
  12. Replies
    3
    Views
    1,203

    What is wrong with my if/else statement?

    public static void main(String[] args)
    {

    int income = 0;
    char answer;
    String student, input;

    Scanner keyboard = new Scanner (System.in);
    ...
  13. Replies
    5
    Views
    1,622

    Re: Am I doing it right?

    package lab4_ex2;

    import java.util.Scanner;

    public class Lab4_Ex2
    {

    public static void main(String[] args)
    {
    double firstTest,secondTest, thirdTest;
  14. Replies
    5
    Views
    1,622

    Re: Am I doing it right?

    I know how to do the rest of it...didn't need it done for me. I just wanted to know if the first part was correct.
  15. Replies
    5
    Views
    1,622

    Am I doing it right?

    I want to make sure I am doing this programming assignment the right way.

    Question:


    Your history instructor gives three tests worth 50 points each. You can drop one of the first
    two grades....
  16. Thread: Few questions

    by CSUTD
    Replies
    1
    Views
    1,491

    Re: Few questions

    I figured it out but don't know how to delete a thread.
  17. Thread: Few questions

    by CSUTD
    Replies
    1
    Views
    1,491

    Few questions

    This isn't a what is wrong with my code thread. It is a thread about why my program does what it does.



    package example1;

    import java.util.Scanner;

    public class example1
    {
  18. Replies
    4
    Views
    1,318

    Re: Help with methods

    Thanks, glad to help.
  19. Replies
    4
    Views
    1,318

    Re: Help with methods

    I figured it out

    Final code:



    public static void main(String[] args)
    {
    Scanner keyboard = new Scanner (System.in);
  20. Replies
    4
    Views
    1,318

    Help with methods

    public static void main(String[] args)
    {
    Scanner keyboard = new Scanner (System.in);

    float x;
    int y;
    char ch1, ch2;
    String name;
    ...
Results 1 to 20 of 25