No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Hi everyone, I've been working on this for a couple of days now. I need to make sure that an error message is given if txtname has a numerical value in it, and I also need to make sure that an error message is given if txtscore has a non-numerical … | |
Here is Assignment07: [CODE]public class Assignment07 { public static void main(String []args) { Asn07Employees emps = new Asn07Employees(ids, hours, rate); Asn07Employees allEmps[] = new Asn07Employees[7]; int ids[] = {5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 }; int hours[]={ 12, 15, 7, 16, -1, 20, 15 }; float rate[]={6.5f, 12.5f, 1.5f, … | |
So what I'm aiming for here is to take the user's input as float and write code to split up that input into individual digits and use an array. How would I go about doing this? Here is what my code looks like currently: [CODE]import java.util.Scanner; public class Asn8 { … | |
Write a Payroll class that uses the following arrays as fields: [LIST] [*]employeeId. [*]hours. [*]payRate. [*]wages. [/LIST] [U]employeeId.[/U] 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 I should have two classes: [LIST=1] [*]Asn07Employees [*]Assignment07 [/LIST] *I am to use arrays and not vectors Here is some skeleton code that my instructor … | |
Here is the output that I should be receiving: [CODE] Please enter the name on the check (First Last): John Doe Please enter the amount for the check (as a float): 123.45 --------------------------- Pay to : John Doe $123.45 one hundred twenty three dollars and 45 cents[/CODE] Now, what I … |
The End.