import javax.swing.JOptionPane; // To get windows panels public class RetailSales { public static void main (String [] args) { // name of strings String OnlineSales = "Welcome to the online retailer choose" + "choose the items … [Read more...] about Do you have five items you want to sell?
Programming
Adding Loops to the grade calculation project
What are interfaces in java?
set of methods set of classes that have that set of methods be able to talk to classes with out hierarchy structure … [Read more...] about What are interfaces in java?
What is the difference between preincrementing and postincrementing a variable?
What is a preincrementing variable: PreIncrementing means that the variable is incrementedbefore the expression is evaluated: Example ++J What is a postincrementing variable: Postincremting means that the variable is incremented after the expression: … [Read more...] about What is the difference between preincrementing and postincrementing a variable?
Compare and contrast the if single-selection statement and the while repetition statement?
What is the if single-selection statement in Java: If the single selection is a statement in Java that evaluates to True or False meaning that if the statement results in True the work gets done on the true side if its evaluated false the true side gets ignored and … [Read more...] about Compare and contrast the if single-selection statement and the while repetition statement?
What is a conditional operator in java (?:)
(?:) smiley face with a hat that has a question also known in Java as the conditional operator what is it? The conditional operator can be a replacement of the if else statements in Java for example. (?:) ? --- means its a boolean expression meaning True or … [Read more...] about What is a conditional operator in java (?:)
Getting to know pseudocode aka “ZudoCode”
Pseudocode pronounced ZudoCode, pseudocode is a tool used by software professionals to translate an idea to a type of form that can be used to get coded. a good example of this is when you get an idea and you just type out in a txt editor that major actions that … [Read more...] about Getting to know pseudocode aka “ZudoCode”
What are algorithms?
The simplest way to explain and algorithms is to think about a series of steps that need to be executed in a specific order take for example applying shampoo. choose shampoo type open shampoo bottle squirt shampoo into a hand lather shampoo in … [Read more...] about What are algorithms?
How to use switch Statement in Java?
import javax.swing.JOptionPane; class cambien { public static void main (String [] args) { String response; response = JOptionPane.showInputDialog ("what is your age?"); if (response == null) { JOptionPane.showMessageDialog … [Read more...] about How to use switch Statement in Java?
How to use if statement to check for empty input box in java?
import javax.swing.JOptionPane; //imports swing class class Practice { public static void main (String [] args) { String response; //creates "respose" string response = JOptionPane.showInputDialog //assignment of response ("what is your first … [Read more...] about How to use if statement to check for empty input box in java?