Search:

Type: Posts; User: Seth Lau.20

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    3,768

    switch statement related exercice

    Muvhango runs a small Fruits and Vegetables sphaza shop. He sells oranges, bananas, apples, tomatoes and potatoes. The table 2 below shows the price list for the items sold.

    Code Description Unit...
  2. Replies
    1
    Views
    524

    Getting InputMismatchException

    Lumumba is an entrepreneur based in eMalahleni. He has opened a sphaza shop called EveryThingFishy. The shop specializes in selling fast food related to fish. Table 1 below shows the menu they...
  3. Thread: A question

    by Seth Lau.20
    Replies
    7
    Views
    693

    Re: A question

    What is the method used in the character class to determine if a character is a special character?

    --- Update ---

    How to run a program as long as a user wants to?
  4. Replies
    1
    Views
    715

    What does this code do?

    Here is a code to check if a number is prime or not



    public class PrimeExample{
    public static void main(String args[]){
    int i,m=0,flag=0;
    int n=3;//it is the number to be...
  5. Thread: A question

    by Seth Lau.20
    Replies
    7
    Views
    693

    Re: A question

    Thandabantu runs a cinema in Sosh. A ticket costs R15-00. He contracts you to develop for him an application that will allow him sell tickets to the clients. The application must allow a client enter...
  6. Thread: A question

    by Seth Lau.20
    Replies
    7
    Views
    693

    Re: A question

    how can i display columns in the output and separate them?
  7. Replies
    3
    Views
    604

    Re: What is wrong with my code?

    I want the marks displayed in the "mark obtained" column .and i can't separate the word code and mark in the output.
  8. Replies
    6
    Views
    661

    Re: What is wrong with my code?

    As you can see in the ouput, the elements in the description's column are displayed disorderedly i want them to be aligned with the description 's word.Same thing for the cost(R) columns
  9. Replies
    6
    Views
    661

    Re: What is wrong with my code?

    I want to print the output properly in a table format
  10. Replies
    3
    Views
    604

    What is wrong with my code?

    PPA115D/TRO115D students are scheduled to write seven assessments this semester. The table below shows detailed information about the assessments.


    Assessment code Description ...
  11. Thread: A question

    by Seth Lau.20
    Replies
    7
    Views
    693

    A question

    How can i display a percentage value in a table format?
  12. Replies
    6
    Views
    661

    What is wrong with my code?

    Ntebogeng is running a car wash business in Soshanguve. The business offers three washing services as shown in the table below.



    Service code Description Cost (R)
    G ...
  13. Replies
    1
    Views
    736

    Formatting data with format

    I am supposed to create an application that will display the first five values of a multiplication table of 2. The computer must calculate the product. The generated table must be displayed as...
  14. Replies
    1
    Views
    1,090

    Java-related question

    I wanted to know how to run a program for as long as a user wants to.
  15. I can't display a proper error message when i prompt the user enters a number less than 1, and request the user to re-enter a value

    package sumproductapp;

    import javax.swing.JOptionPane;

    /**
    *
    * @author SETH
    */
    public class SumProductApp {
  16. Re: Here is exercise that tells us to sum numbers as entered by a user,but i don't know how to do the summation the way the exercise tell me

    When i execute the program i can't display the summation as shown in the statement
  17. Re: Here is exercise that tells us to sum numbers as entered by a user,but i don't know how to do the summation the way the exercise tell me

    package summationapp;
    import java.util.Scanner;

    /**
    *
    * @author SETH
    */
    public class SummationApp {

    /**
  18. Here is exercise that tells us to sum numbers as entered by a user,but i don't know how to do the summation the way the exercise tell me

    Create an application that will determine and display the sum of numbers as entered by the user. The summation must take place so long the user wants to. When the user ends the program, the summation...
Results 1 to 18 of 18