Calculate the staff pay by subtracting

Assignment Help Programming Languages
Reference no: EM133145319

ICT103 Systems Analysis and Design - King's Own Institute

Tasks:

Question 1. Write 150 words answers to the conceptual understanding of procedural and object-oriented programming and compare them.

Question 2. Write program (code) for the following scenario:

ABC Mall is a retail company selling various items. They need to calculate the commission for their staff based on the rates below

Less than $1,000

2.5%

$1,000 - 4,999 5%

 

$5,000 - 9,999 7.5%

 

$10,000 - 14,999

10%

$15,000 or more

12.5%

The company also allow their staff to ask for advance payment. Write a program for the following:
- Ask the staff to enter monthly sales
- Ask the staff to enter the amount of advanced pay
- Use monthly sales to calculate the commission.
- Calculate the staff pay by subtracting the advanced pay from the total commission.
- If the amount is negative, inform the staff they cannot ask for that much advance pay.

Question 3. Write program (code) for the following scenario:

Write a program that prints checks username and password
- First asks the user to register a username and password.
- Save these in two String variables.
- Now ask the user to enter the username, check if it matches the original entered username (ignore case), otherwise ask to enter again
- Ask the user to enter password (make sure to check the case also), otherwise ask to enter again
- At the end just confirm to the user that they entered the correct username and password.

Question 4. Debugging
See the program below, which has syntax and/or logic errors. In each case, determine the problem and fix the errors.

Program:

public class Averager
{
public static void main(String() Args)
{
Scanner keyboard = new scanner(System.in);

System.out.println("Enter a list of nonnegative scores.); System.out.println("Mark the end with a negative number.") System.out.println("I will compute their average.");

double next, sum; int count = 0;

next =input.nextDouble( ); while(next >= 0)
{
sum = sum + next; count+;
next = keyboard.nextDouble( );
}

if (count == 0)
System.out.println("No scores entered."); else
{
double average = sum/count; system.out.println(count + " scores read."); System.out.println("The average is " + average);
}
}
}

Attachment:- Systems Analysis and Design.rar

Reference no: EM133145319

Questions Cloud

Creating a high performance organization is very difficult : Creating a high performance organization is very difficult. Discuss how job satisfaction can impact employee productivity, absenteeism, and turnover.
Five products of pseudo-transformational leadership : Question 1: Name five products of pseudo-transformational leadership.
What is the monthly vacation accrual journal entry : Gilles Morin works for Brandon Interiors in Manitoba and earns $1,500.00 semi-monthly. What is the monthly vacation accrual Journal entry
International trade and enterprise : a. Explain how an export subsidy is theoretically meant to work. Think of the application to "infant industry".
Calculate the staff pay by subtracting : Conceptual understanding of procedural and object-oriented programming and compare them - Calculate the staff pay by subtracting the advanced pay from the total
Broker denied commission for lack of written agreement : The article "Broker Denied Commission for Lack of Writing Agreement" speaks about a New York real estate agent and business brokerage Tayyib Bosque Corp, who ha
Make a projection of the profit and loss account : Make a projection of the profit and loss account for the last 4 years of the GameStop Corporation based on the key financial assumptions
Compare and contrast the servant leadership model : Compare and contrast the servant leadership model with at least one of the other models of leadership discussed in our text.
What amount of the donation is occ allowed to deduct : What amount of the $400,000 donation is OCC allowed to deduct for tax purposes in 2021, what is the carryover to 2022, and when does the carryover expire

Reviews

Write a Review

Programming Languages Questions & Answers

  Design and implement the class myarray that solves the array

Design and implement the class myArray that solves the array index out of bounds problem and also allows the user to begin the array index starting at any integer, positive or negative.

  Develop a database to facilitate the delivery of pizzas

Develop a database to facilitate the delivery of pizzas. ACME Pizza comprises numerous franchised stores in the city

  Write a method to computer the given series

Write a method to computer the following series: m(i) = 1/2 + 2/3 + . . . + i/i + 1. Write a test program that displays the following table: I m(i) 1 0.5000 2 1.1667 . . . 19 16.4023 20 17.3546.

  Problem related to reading file and doing averege

First the program must read a text file (The user must be able to write the name of the text file) , the text file contains the following: the expenses the company is going to spend. Text file example: Keywords:, #best_project_ever, Expenses:, Equi..

  Construct a parse tree for string

Construct a parse tree for this string - what language does this grammar generate and describe each language informally using a sentence or two in English.

  Create candidate architecture to meet functional requirement

Analyse the Case Study documents and develop a candidate architecture to meet the functional requirements you identified in previous assignments and in the high priority NFRs identified in Task 1.

  Hack assembly to change and store values in registers

Test scripts in task resources to test your implementation via the CPU Emulator tool, as shown in the lecture videos

  How you can accomplish not deleting the file

How you can accomplish not deleting the file when you open it was not discussed in class, however, should be easy to figure out what to do using google.

  Calculate and displays chair hire cost

NIT5150 Advanced Object Oriented Programming - Victoria University - Create a C# application that calculate and displays chair hire cost for N number

  Write a program stringarray usign given information

Write a program "StringArray" which creates a string array that contains your top 5 favorite kinds of foods (Italian, Chinese, etc.).

  Effective transfer rate from the server to the workstation

what is the effective transfer rate from the server to the workstation?

  Create a crosstab query

Create a crosstab query to show how many enrollments took place in various conventions from different companies. Also show the total number of enrollments in each convention.

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