Thursday, August 8, 2013

Caculate Number of Minutes Python

Download From Here
Design and write a program that calculates and display the number of minutes over the monthly contract minutes that a cell phone user incurred. the program should ask the user how many minutes were used during the month and how many minutes they were allowed.

Validate the input as follows:

-The minimum minutes allowed should be at least 200, but not greater than 800. Validate input so that the minutes allowed are between 200 and 800.

-The minutes used must be over 0. Validate input so that the user does not enter a negative value.

Once correct data is entered, the program should calculate the number of minutes over the minutes allowed. if minutes were not over, print a message that they were not over the limit. If minutes were over, for every minute over a .20 fee should be added to the monthly contract rate of 74.99. Be sure not to add the .20 fee to minutes 1 to the number of minutes allowed, but rather just minutes over. Display the number of minutes used, minutes allowed, the number of minutes over and the total due that month.

Employee Management System Java Program



Download from here click 
Assignment Definition:
You are required to write a Java program that models an employee management system. The program should have a menu style system that allows the user to choose from the following options:
·         Enter an Employees details
·         Retrieve an Employees details
·         Exit the system
Each employee will have a 6 digit ID number, a name, an address and a hire date. If the user chooses to enter an employee’s details, an employee object is created and the attributes are set. When the employee’s details are entered, they must be written to a text file called Employees.txt. The employee information must be written to the file in the following way:
[ID] [Name] [Address] [Hire Date]
e.g.
123456 Joe Bloggs 24, High Street, Dublin 2 21/7/2013
If the user chooses to retrieve an employee’s details, the user must be asked to enter the ID of the employee. The program must then search the Employees.txt file for the employee. If the employee is found, then the details should be printed to the screen.
You MUST use object-oriented code in this assignment. Therefore, you must have an Employee class containing all of the attributes of an employee. The employee class should contain all the necessary constructors, getter/ setter methods etc. to allow creation of employee objects for storage in the file.
Grading

Marks are going for:
·         Well written code. In other words, clear elegant Java code, using proper syntax, appropriate data types, variables, control structures, methods, objects etc.
·         Well-structured code. Code must be properly indented, with ample spacing to promote clarity in your code.
·         Adequate commenting. You must comment your code where appropriate.

Program Requirements:
·         The user should be asked to choose an option (as above).
·         If the user chooses to enter in an employee’s details, they must be allowed input the ID, name, address and start date. If they choose to retrieve information about an employee, they must be allowed enter in an ID to use for the search.
·         For each employee entered, the program should create an employee object for each person and write the details to the text file.

Methods:
Your employee class should contain the following methods:
Getter and Setter methods for the following:
·         ID (int)
·         Name (String)
·         Address (String)
·         Start Date (String)

Public constructor, i.e.
Public Employee(int id, String name, String address, String date){
}
The constructor will set the values for the employee object.
Public void display(){
}

Screenshot: