How do I incorporate a selective statement in the code below?
Clarification
- Demonstrate your understanding of GUI.
- Use selection and repetition statements in this program.
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class module3case {
public static void main(String[] args) {
String choice = null;
do {
DecimalFormat formatter = new DecimalFormat(“#,##0.00”);
double propertyTaxRate;
double actualValue;
double assessmentValue;
double tax;
actualValue = Double.valueOf(JOptionPane.showInputDialog(“What is the value of your property?”));
propertyTaxRate = Double.valueOf(JOptionPane.showInputDialog(“What is the property tax of the locality?”));
tax = actualValue * propertyTaxRate/100;
assessmentValue = actualValue +tax;
JOptionPane.showMessageDialog(null, “Your assessment value is $”
+ formatter.format(assessmentValue)+”n”
+”The local real estate property tax rate: “+propertyTaxRate+”n”
+ “Property tax based on the assessment is $”
+ formatter.format(tax) + “.”);
choice =JOptionPane.showInputDialog(“Press E to terminate the program “);
}while(!”E”.equalsIgnoreCase(choice));
}
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Graph The Quadratic Equation Y X 4 2 6
/in Uncategorized /by developerThis is a parabola in the form of##y = (x – h)^2 + k## where ##(h, k)## is the parabola’s vertex.
For this particular equation, the vertex is at ##(4, -6)##
The sign of ##x^2## is positive so we have a parabola opening upward.
As a quadratic equation though, substitute specific values for X (or Y) and compute for the value of Y (or X) to get specific points of the graph.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Graph The Quadratic Equation Y X 5 2 By Plotting Points
/in Uncategorized /by developeryou need first to try and find the value for both x and y hence initially you set ##y=0## then solve for ##x##. lets try to expand the equation first by opening the bracket.
##y=(x-5)^2##
##Y=X^2-10X+25##
SET ##Y=##0 & SOLVE FOR ##X##.
##0=(X-5)(X-5)##
##X-5=0##
##X=5## ANS. for the x intercept.
SET ##X=0## & SOLVE FOR Y
##Y=(5-5)^2##
##Y=(0-5)^2##
##Y=25##
after setting ##y=0## we have ##x=5## and after setting ##x=0## we have ##y=25## hence ##(0,25)## and ##(5,0)##,getting the different values of x and y to plot the equation.##(0,25), (1,16), (2,9), (3,4), (4,1), (5,0), (6,1), (7,4), (8,9), (9,16), (10,25)##
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Incorporate A Selective Statement In The Code Below
/in Uncategorized /by developerHow do I incorporate a selective statement in the code below?
Clarification
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class module3case {
public static void main(String[] args) {
String choice = null;
do {
DecimalFormat formatter = new DecimalFormat(“#,##0.00”);
double propertyTaxRate;
double actualValue;
double assessmentValue;
double tax;
actualValue = Double.valueOf(JOptionPane.showInputDialog(“What is the value of your property?”));
propertyTaxRate = Double.valueOf(JOptionPane.showInputDialog(“What is the property tax of the locality?”));
tax = actualValue * propertyTaxRate/100;
assessmentValue = actualValue +tax;
JOptionPane.showMessageDialog(null, “Your assessment value is $”
+ formatter.format(assessmentValue)+”n”
+”The local real estate property tax rate: “+propertyTaxRate+”n”
+ “Property tax based on the assessment is $”
+ formatter.format(tax) + “.”);
choice =JOptionPane.showInputDialog(“Press E to terminate the program “);
}while(!”E”.equalsIgnoreCase(choice));
}
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Journalize These Transactions
/in Uncategorized /by developerHow do I journalize these transactions?Journalizing stockholders equity transactions. Airborne Manufacturing Co. complete the following transactions during 2009Jan 16- Declared a cash dividend on the 4%, $102 par preferred stock (1,050 shares outstanding) Declared a $0.55 per share dividend on the 95,000 shares of common stock outstanding. The date of record is January 31, and the payment due date is February 15.Feb15- Paid the cash dividendsJune 10 Split common stock 2 for 1. Before the split, airborne had 95,000 shares of $10 par common stock outstandingJul 30 Distributed a 25% stock dividend on the common stock. The market value of the common stock was $10 per share
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Know The Reasoning Behind Whether To Use The Force Equation Or Electric
/in Uncategorized /by developerHow do I know the reasoning behind whether to use the force equation or electric field equation. In this example they want to know force of Q2 on Q1
I was thinking of using force equation using Coulombs law
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Make A Container Element With A Style Rule So That It Expands Around It
/in Uncategorized /by developerHow do I make a container element with a style rule so that it expands around its floated content in css, and how do I make a picture stay in it’s position with position: absolute; ? Every time I zoom in and out on my screen, it moves the image erratically.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Make An Sql Query For Something With Multiple Conditions
/in Uncategorized /by developerHow do I make an SQL query for something with multiple conditions? for example: Write
a
query
that
finds
the
list
of
the
IDs
of
all
students
who
are
enrolled
in
(EECS442
and
EECS445
and
EECS492)
or
(EECS482
and
EECS486)
or
(EECS281).
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Make It To Where I Can Have The User Input S1 And S2 I Got The Followin
/in Uncategorized /by developerHow do I make it to where I can have the user input s1 and s2. I got the following, but I don’t get the same values when I declare my variables this way:
int main(){
const char *s1 =””;
std::string input1 = s1;
const char *s2 =””;
std::string input2 = s2;
std::cout << “Enter s1: “;
std::getline(std::cin,input1);
int length1 = input1.length();
//std::cout << length1;
std::cout << “Enter s2: “;
std::getline(std::cin,input2);
int length2 = input2.length();
int y = LexDiff(s1,s2);
std::cout << y;
return 0;
}
= LexComp(abc,acz) # = () – () = LexComp(abc,abz) # = () – () + = LexComp(abf,abc) # + = () – () = LexComp(abc,abc) = LexComp(ab,abc) # = () – ()+ = LexComp(abc,ab) # + = () – ()+ = LexComp(abc,abD) = LexComp(abc,abd) = LexComp(aBc,abc) # = () – ()
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Post The Following Transaction The Custodian Of The Pety Cash Fund Subm
/in Uncategorized /by developerHow do I post the following transaction:The custodian of the pety cash fund submits the following receipts for reinbursment and reports a cash-on-hand count of $8.Postage Stamps Used……..$38United Parcel (Freight-out)$23C.O.D. Postage (Freightout)$51CHristmas Decorations……$30
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Do I Post The Transactions To The T Accounts Cash Common Stock Equipment Usi
/in Uncategorized /by developerequipment 2800
cr a/c payable 3000
04
dr: cash 1400
cr: service revenue 1400
07
dr: land 22000
cr: cash 22,000
11
dr: a/c receivable 1000
cr service revenue 1000
16
dr: a/ payable 2800
cr: cash 2800
17
dr: telephone bill payable 150
cr : cash 150
18
dr: cash 500
cr: a/c receivable 500
22
dr: water& elec bill payable 170
cr: cash 170
29
dr: cash 1600
cr: service revenue 1600
31
dr: salary payable 1900
cr: cash 1900
31
dr: dividend payable 2000
cr: cash 2,000
Common Stock2Bal 3Bal 4000040000 Bal Bal Service Revenue41129 2800Bal20028007BalAccounts Receivable100018 22000 50031Bal 1900Dividend Payable312000 150Bal Water &…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"