programming

posted by .

write a program that asks the user to enter an objects mass, and then calculates and displays its weight.

• programming -

You might look through some of the following programming tutorials:

Sra

• programming -

On jGrasp you will do'
import java.util.*;
public class Weight
{
public static void main(String[]args)
{
Scannerkb=new Scanner(System.in);
System.out.println("PLEASE ENTER WEIGHT OF AN OBJECT:");
double w=kb.nextDouble();
System.out.println("THE WEIGHT OF THE OBJECT IS:"+W);
}
}

• programming -

create a flowchart &write a program that accepts a dollar value and coverts it to its equivalent peso value. assuming that 1dollar=46.00pesos

Similar Questions

1. Programming

Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display the …
2. Programming in c++

Write a program in c++ that inputs a number [1-12] from the user and displays the month. it also asks the user whether he wants to input another number or not, if the user inputs 1 then it again inputs number, if user inputs 0 then …
3. Programming and Design

Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a number …
4. programming

Create the logic for a program that continuously prompts the user for a number of dollars until the user enters 0. Pass each entered amount to a conversion method that displays a breakdown of the passed amount into the fewest bill; …
5. programming

Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
6. intro to computer programming

Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Your program should use a loop …
7. java programming

the learner is asked to write a program using java with user input that caculate and displays, the number of months it will take the user to save an amount of money. the user must enter the
8. C++

// Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert temperature …
9. computer programming

Design the pseudocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry
10. C++

Write a program that asks the user to enter an object's mass, and then calculates and displays its weight. If the object weighs more than 1,000 Newtons, display a message indicating that it is too heavy. If the object weighs less than …

More Similar Questions