Member Avatar

Greetings, Can anyone tell me why my loop does not actually add anything for interest? I'm thinking it is because of the way my interestRate variable is setup as a class variable (static). Here is the code snippets /**************************************************************************************** HNUnit4Ch13Investor.java xx All variables should be declared private Declare a class variable called interestRate (This will hold the annual interest rate) Declare a constant called ACCOUNT_NUMBER Declare an instance variable called balance Provide a class method that will be used to set the annual interest rate Provide a two parameter constructor to initialize the constant account number and balance Provide an …

Member Avatar
0
23
Member Avatar

Greetings, I have been trying to figure this out for hours with no avail. Basically I need to print out user input as Initial value, ASCII(char), ASCII(int), and Hex. I can get everything to work however I am not supposed to have the char values print if its a digit, and int values print if its a char. I can get everything to work except I cannot figure out how to exclude both the letters and digit in the same for loop. The way it has to be printed is quite strict. My code below will print the Initial, ASCII(char) …

Member Avatar
0
22
Member Avatar

Hi all, I am at a lost and do not know where to start from. Here is what I have to do "Given the data below, you are to design an IA-32 assembly language program to sort array X by the number of binary 0's in each member and save the sorted array in Y. You can use any sorting method and sort the array in ascending or descending order. .data X SWORD -2000, 1000, 3000, -4000 Y SWORD 4 DUP (?)" If anybody could give me some sort of direction to help me get started then that would help …

Member Avatar
0
7
Member Avatar

Im having trouble with this program. I attached a picture of what is required. Thanks for any pointers you guys :) p.s. I'm very new to this.

Member Avatar
0
7
Member Avatar

The assignment is to design a program that determines the gross pay for each employee. Everything seems to work, but when you input more than 40 hours, it doesn't calculate overtime. Another thing is that, i can't get a message to pop up when someone input an invalid input. I can use an invalid exception, but I want to know why the if statement isn't working. class OverTime { public: OverTime (float = 0, float = 0); void sethoursWork(float); void sethourlyRate(float); float gethoursWork(); float gethourlyRate(); float getsalary(); private: float hoursWork; float hourlyRate; }; #include "stdafx.h" #include "OverTime.h" OverTime::OverTime(float a, float …

Member Avatar
0
11

The End.