Write an application to calculate the salespersons salary

Assignment Help JAVA Programming
Reference no: EM13342673

Question 1:

Use a one-dimensional array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who grosses $5,000 in sales in a week receives $200 plus 9% of $5,000, a total of $ 650. Write an app (using an array of counters) that determines how many of the salespeople earned salaries in each of the following ranges (assuming that each salesperson's salary is truncated to an integer amount): $200-299, $300-399, $400-499, $500-599, $600-699, $700-799, $800-899, $900-999 and over $999.

Write an application that prompts the user to enter the sales for each employee, then it calculates the salesperson's salary. The process repeats until the user finishes entering all employees' information. When the user is done entering this information, it displays how many of the salespeople earned salaries in each of the above ranges.

Question 2:

Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them. Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indicated in Fig. 7.29 to develop the seven-letter word "NUMBERS." Every seven-letter word corresponds to exactly one seven-digit telephone number. A restaurant wishing to increase its takeout business could surely do so with the number 825-3688 (that is, "TAKEOUT").

Digit              Letters

 A B C

 D E F

 G H I

 J K L

 M N O

 P R S

 T U V

W X Y

Every seven-letter phone number corresponds to many different seven-letter combinations. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It's possible, however, that the owner of a barbershop would be pleased to know that the shop's telephone number, 424-7288, corresponds to "HAIRCUT." A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters "PETCARE." An automotive dealership would be pleased to know that the dealership number, 639-2277, corresponds to "NEW-CARS."

Write an app that allows the user to enter a seven-digit number, and displays every possible seven-letter word combination corresponding to that number. Avoid phone numbers with the digits 0 and 1.

Question 3:

A bank wants you to create a console app that will allow bank employees to view the clients' information. The app should prompt the user to enter first name, last name, account number and account balance. It should provide options to allow the bank manager to search through each client's information backward and forward. Create a Customer class to represent the client with first name, last name, account number and account balance. The application should use an array of Customer objects to store customer information. DO NOT use any collection classes such as ArrayList, LinkedList, HashSet etc. You can only use the following statement that assumes the maximum number of customers is 100

Reference no: EM13342673

Questions Cloud

Evaluate dg for a voltaic cell with e : Calculate DG for a voltaic cell with E= +0.24V if the overall reaction involves a 3 electron reduction.
Explain organic compounds besides trimyristin : The oil of nutmeg is known to consist of many other organic compounds besides trimyristin. What does the purity of the distillate indicate about these other compounds
Explain what is the specific heat of the gas : An 80.0-gram sample of a gas was heated from 25 °C to 225 °C. During this process, 346 J of work was done by the system and its internal energy increased by 7565 J. What is the specific heat of the gas
Explain procedure general flow and logic temperatures : Procedure General flow and logic Temperatures Times Solvents Techniques used to make the products At least one test (your choice) to verify your product the reaction of 2 methyl 2 octene with HBr reacting with heat and CH3Br
Write an application to calculate the salespersons salary : Write an application that prompts the user to enter the sales for each employee, then it calculates the salesperson's salary. The process repeats until the user finishes entering all employees' information.
Find the orbital period of such a satellite : A typical GPS (Global Positioning System) satellite orbits at an altitude of 4.40 107 m. Find the orbital period of such a satellite
Identify and compare alternative renewable energy options : Each off the above projects is based on ideas for projects where there is significant information available in the form of technical guides, case studies, and from suppliers of technology. A quick Google search will furnish you with examples and ..
Explain the specific heat of a certain type of cooking oil : The specific heat of a certain type of cooking oil is 1.75 J/(g·°C). How much heat energy is needed to raise the temperature of 2.69 kg of this oil from 23 °C to 191 °C
Explain the solution was somewhat lighter in color : After treating the crude extract with activated carbon, the solution was somewhat lighter in color, but still quite dark. Knowing that trimyristin is in fact a white crystalline compound, why wasn't more activated carbon used in an attempt to remo..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write jvm program which accepts rpn expression

Write down the IJVM program which accepts RPN expression, with each operand and operator entered line by line. As each number (operand) is entered, push it on stack.

  Create an employee class.

Create an Employee class. Items to include as data members are employee number, name, date of hire, job description, department, and monthly salary.

  Write a method to save a linked list to a text file

Write a method to save a Linked List to a text file called file.txt. It must save the Linked List to the file with each node on a different line.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Primary care-secondary care and tertitary care

Discuss the differences among primary care, secondary care, and tertitary care and the 6 C's of primary care

  standard graph with four quadrant

Write a program in java that asks the user for values of x and y, and displays the point as an ordered pair along with a message that describes where that point falls on the standard graph with four quadrant.

  Values that occur just once

This list has some values that occur just once (1, 3, 4, 11, 13, 18), some values that occur twice (9, 16), some values that occur three times (14, 19) and a single value that occurs four times (7). Therefore, the call of list.maxCount() should re..

  Create a computer class

Create a computer class and assume computers have the following fields: String manufacture, double price, int year

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Describe different professional levels in this discipline

What is Anesthesiology and critical care medicine describe the specific discipline, what is their focus (i.e., emergency medicine, education and prevention, psychiatric treatment etc.) Describe the different professional levels in this discipline

  A java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd