Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
java x 14
Member Avatar for ncstplaya1234

Write a java program to repeatedly get two numbers from the user and display the sum of their squares. User numbers and result are real numbers. Repeat this interactive input/output until the first number exactly matches the sentinel value 990. Do not process the input matching the sentinel value. For …

Member Avatar for insanely_sane
0
83
Member Avatar for ncstplaya1234

[LIST=1] [CODE] System.out.print("Enter the letter(t or z): "); B]letter = keyboard.next();[/B] if (letter == 't'||letter == 'T') { System.out.println("True"); } else if (letter == 'z'|| letter == 'Z') { System.out.println("False"); } [/CODE] Im getting an error here in bold, what is the problem??

Member Avatar for Akill10
0
77
Member Avatar for ncstplaya1234

[CODE]import java.util.*; public class DiscountBolts { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double bolts, nuts, washers; double total; System.out.println("Enter number of bolts: "); bolts = keyboard.nextDouble(); System.out.println("Enter number of nuts: "); nuts = keyboard.nextDouble(); System.out.println("Enter number of washers: "); washers = keyboard.nextDouble(); total = (bolts …

Member Avatar for dangari
0
146
Member Avatar for ncstplaya1234

Hey guys, I'm trying to create a program that has three items and adds the cost of the three items and prints the final total with sales tax. I need a subtotal, sales tax, and total amount. I'm having a problem getting the program to calculate the quantity correctly and …

Member Avatar for ncstplaya1234
0
3K