Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


David Ferguson
Rate Java
1 Answer(s)      3 years ago
Posted in : Java Beginners


program is needed to ask users to rate the Java programming language using a number in the range 0 - 10


Advertisement
View Answers

December 9, 2011 at 12:33 PM


import java.util.*;
class RateJava 
{
    public static void main(String[] args) 
    {
        Scanner input=new Scanner(System.in);
        System.out.print("Rate Java(0-10): ");
        int rate=input.nextInt();
        while(rate>10||rate<0){
        System.out.print("Invalid! Rate Java within the range(0-10): ");
            rate=input.nextInt();
        }
        System.out.println("You have rated Java: "+rate);
    }
}


Related Tutorials/Questions & Answers:
Rate Java
Rate Java   program is needed to ask users to rate the Java programming language using a number in the range 0 - 10
why the occupancy rate is zero? - Java Interview Questions
why the occupancy rate is zero?  import java.util.Scanner; public...; System.out.println("The occupancy rate for the hotel is "+occupancyRate); } } why the occupancy rate is always zero? please help. tq.  Hello
Advertisements
rate and review app iphone
rate and review app iphone  How to rate and review app in iphone
refresh rate in ajax
refresh rate in ajax  my data is in table which is generated dynamically. i want to refresh that perticular table after some time using ajax and with jsp
rate my app iphone SDK
rate my app iphone SDK  How can i enable "Rate and Review Application" feature of my application on iTune
Buy Xandros 2.01 OCE in India from us.Xandros 2.01 OCE is available in India at cheapest rate.
the Xandros 2.01 OCE at cheapest rate. We are distributing Linux all over te the India
Java Training at Noida
Java Training at Noida     Looking for Java Training classes at Noida? your search ends here. Get world class Java Training at Noida. IT and BPO industries are growing
Java Compolation - Java Beginners
Java Compolation  How do I correctly write a program that calculates... main(String[] args) { final double BASE_RATE_A = 9.95; final double BASE_RATE_B = 13.95; final double BASE_RATE_C = 19.95; final
java - Java Beginners
java  write a java application which calculates the installment of the home loan after entering the loan amount,rate of interest and duration (no of months
What would you rate as your greatest weaknesses?
What would you rate as your greatest weaknesses?       This is a tricky question. Be mindful of what you say. If you admit to a genuine weakness, you will be respected
Programming with Java - Java Beginners
Programming with Java    Using valid Java code from Chapter 1 to 6, create an object oriented(Java application ) program with a minimum of two... with dynamic allocation, in your java test program class to initialize all
java code
java code  Develop a program that accepts an initial amount of money (called the principal), a simple annual interest rate, and a number of months... is the product of the principal, the annual interest rate expressed as a decimal
java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... excess as overtime rate. Formula: Daily Wage equals Rate per hour * No. of hours
Java Big Problem - Java Beginners
Java Big Problem  Input the current meter reading and the previous... meter reading)<=100, rate = Rs.1.25 (ii)if unit is between 100&250, rate = Rs.1.50 (iii)if unit is between 250&350, rate = Rs.1.80 (iv)if unit>350
Java Compilation - Java Beginners
Java Compilation  I tried what was given to me but im still having...; totalHours = 0; final double BASE_RATE_A = 9.95; final double BASE_RATE_B = 13.95; final double BASE_RATE_C = 19.95; final
Java Program - Java Beginners
Java Program  Write a Java program that calculates and prints...,R should be accepted as command line input as below. e.g. java SimpleInterest 5...*; import java.lang.*; public class SimpleInterest { float prin; float rate; int
java code
java code  Utopias tax accountants always use programs that compute income taxes even though the tax rate is a solid, never-changing 15%. Define... worked. Assume an hourly rate of $12
hi... pls give me the example of java coding fo following question
hi... pls give me the example of java coding fo following question  Write a java program that reads the following information and prints a payroll...) Hourly pay rate (e.g: 6.75) Federal tax withholding rate(e.g: 20%) State tax
Bid Problem - Java Beginners
reading - previous meter reading)<=100, rate = Rs.1.25 (ii)if unit is between 100&250, rate = Rs.1.50 (iii)if unit is between 250&350, rate = Rs.1.80 (iv)if unit>350, rate = Rs.2.20 and,(v)meter reading cahrge(taken by the person
java - Java Beginners
java  In sinking a well the rate of driling is 20 metres per hour. For each subsequent hour the depth suck is 8 percent less then the previous hour. write a program in java to calculate and print the depth reaches after 10
java program
java program  Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest rate, number of years, loan amount, and displays
java program
java program  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units
Java code
Java code  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units and a height
java program
java program  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units
java code
java code  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g · t in t time units and a height
Java Error - Java Beginners
Java Error  import java.io.*; import java.lang.*; public class Wrapperdemo { float prin; float rate; int no; float interest; Wrapperdemo...(br.readLine()); System.out.print("Enter value of interest"); rate=Float.parseFloat
java code7 of 1
java code7 of 1  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ?· t in t time units
java program 8
java program 8  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units
Java Array Values to Global Varibles - Java Beginners
Java Array Values to Global Varibles  I am working on a program that provides users with 3 loan options. If global variables rate and periods... to pass on to the rate and periods variables in the class declarations. Any help
java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... excess as overtime rate. Formula: Daily Wage equals Rate per hour * No. of hours
Advertisements
 

 

 

DMCA.com