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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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