1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natta225 [31]
3 years ago
13

Jackson builders is constructing new homes in the Parkway subdivision.The company needs the logic for an application that ncalls

a method that computes the final price for construction of a new home.The main() method prompts the user for the number of bedrooms and bathrooms in the home and for the salespersons commission expressed as a percentage,and then displays the final price.Create calculatePrice() method that determines the final price and returns the value to the calling method.The calculatePrice() method requires three arguments:bedrooms,baths,and salesperson commission rate.A homes final price is the sum of the base price of $100,000 plus $20,000 per bedroom,$30,000 per bathroom,and the salesperson commission amount. in programming logic and design fourth edition Joyce Farell pg,246 no 7 need logic for application
Computers and Technology
1 answer:
lord [1]3 years ago
8 0
<span>The calculatePrice() method can be written in C. It will use and return doubles (which allows for decimals). It will calculate the house price of $100K + $20K per bedroom and $30K per bathroom. Next it will take that price and append the sales percentage and return that value.
double calculatePrice(decimal numBedrooms, decimal numBathrooms, decimal salesPercentage)
{
decimal housePrice = 100000 + (20000 * numBedrooms) + (30000 * numBathrooms);
return housePrice + (housePrice * salesPercentage);
}</span>
You might be interested in
Which of the following describes the function of a web browser?
zhuklara [117]

Answer:

D. It allows the computer communicate with the World Wide Web.

Explanation:

The Web (as it is called ) has so much content that can be accessed by the Computer only when the computer user is connected to the Internet using a Web Browser.

Without it, the user can't access the contents of the WWW.

7 0
2 years ago
_________________ ___________________ is an encrypted code that a person, website, or organization attaches to an electronic mes
Blizzard [7]

Answer:

Digital Signature

Explanation:

Digital Signatures are used in electronic messages to verify the sender's ıdentity. It is a online signature and highly secure way of proving identity.

The Signature is <em>encrypted</em> and can be decoded using <em>public-key</em> .

Digital signatures are certificated uniquely from accredited providers, encrypted and can be validated by certificate authorities.

Messages with digital signatures prove that the message sent by the owner of the signature and didn't changed on the way.

4 0
3 years ago
The main part of your program has the following line of code.
Arlecino [84]

Answer: D

Explanation:

It is not A or C because the "d" in "Divide" is capitalized and the d is lowercase in calling the function. Therefore the answer is D (the last choice) because numA / numB (30 / 5) equals 6.

5 0
2 years ago
You should process the tokens by taking the first letter of every fifth word,starting with the first word in the file. Convert t
zhenek [66]

Answer:

See explaination

Explanation:

import java.io.File;

import java.io.IOException;

import java.util.Scanner;

import java.util.StringTokenizer;

public class SecretMessage {

public static void main(String[] args)throws IOException

{

File file = new File("secret.txt");

StringBuilder stringBuilder = new StringBuilder();

String str; char ch; int numberOfTokens = 1; // Changed the count to 1 as we already consider first workd as 1

if(file.exists())

{

Scanner inFile = new Scanner(file);

StringTokenizer line = new StringTokenizer(inFile.nextLine()); // Since the secret.txt file has only one line we dont need to loop through the file

ch = line.nextToken().toUpperCase().charAt(0); // Storing the first character of first word to string builder as mentioned in problem

stringBuilder = stringBuilder.append(ch);

while(line.hasMoreTokens()) { // Looping through each token of line read using Scanner.

str= line.nextToken();

numberOfTokens += 1; // Incrementing the numberOfTokens by one.

if(numberOfTokens == 5) { // Checking if it is the fifth word

ch = str.toUpperCase().charAt(0);

stringBuilder = stringBuilder.append(ch);

numberOfTokens =0;

}

}

System.out.println("----Secret Message----"+ stringBuilder);

}

}

}

5 0
3 years ago
Why is there more content on youtube in 4k then there is on cable, satellite, and digital tv combined?
barxatty [35]
So many more people all around the world have easy access to youtube
3 0
3 years ago
Read 2 more answers
Other questions:
  • Which port can connect you to the Internet through a telephone line?
    6·1 answer
  • What is technology addiction​
    14·1 answer
  • What is the use of form in HTML​
    12·1 answer
  • Your boss is very skeptical about the idea of storing his files up in the cloud rather
    8·1 answer
  • Should the existing system be replaced?This is a question that is asked during the _____ stage of the Systems Development Life C
    8·1 answer
  • Who is a software engineer
    8·2 answers
  • Write a program to create a customer bill for a company. The company sells only five products: TV, DVD player, Remote Controller
    12·1 answer
  • A10:A20 Refer to values in
    8·1 answer
  • What is a task that is not associated with loading existing data into a new ERP system.
    11·2 answers
  • What is the difference between the byte and short data types in Java?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!