Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 44
java x 3
Member Avatar for gator6688

[CODE]import java.text.DecimalFormat; import javax.swing.JOptionPane; public class PayrollSystemTest { public static void main( String[] args ) { String workerType; String first; String last; String ssn; int month; int day; int year; float salary; float rate; float hourlyWage=0; float hours; float wage; float sales; DecimalFormat twoDigits = new DecimalFormat( "0.00" ); // …

Member Avatar for javaAddict
0
120
Member Avatar for gator6688

I need to assign each student a letter grade. The way I have it set up now it assigns the letter grade of the second student to both students. How can I get it to assign each student their own letter grade? Also, I would rather output the letter grade …

Member Avatar for gator6688
0
322
Member Avatar for gator6688

Everything is working on this program except for the output to the table at the end. It will only display the second student I enter but not the first. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <algorithm> using namespace std; …

Member Avatar for Narue
0
100
Member Avatar for gator6688

I have to make a program that enters either a 1, 2, 3, or 4 for 50 people attending a function. Then I have to be able to count how many of each 1's, 2's ,3's, and 4's there were. My 2 questions are: 1.) Would this program be better …

Member Avatar for Salem
0
92
Member Avatar for gator6688

I am trying to figure out when I enter the data instead of asking for person #1: everytime I can get it to ask person #1: then on the next line person #2: and so on. Here is my code so far: [CODE]#include "stdafx.h" using namespace std; int _tmain(int argc, …

Member Avatar for WaltP
0
89
Member Avatar for gator6688

I have to be able to have the program output invalid input if the number is not 1,2,3,4. When I run this program it automatically puts invalid for everything. [CODE]#include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { const int People = 5; int i, PeopleTypes[People]; cout << …

Member Avatar for WaltP
0
99
Member Avatar for gator6688

Can someone tell me what i'm doing wrong: [code]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { const int MAXGRADES = 5; int i, grade[MAXGRADES]= {0}, count = 0; double Avg, sum = 0; for (i=0; i < MAXGRADES; i++, count++) { cout << …

Member Avatar for Narue
0
151
Member Avatar for gator6688

I have to place an * beside any grade that gets entered that is below the avg. I was thinking something like this: Am I anywhere close? [CODE]if (grade < Avg) cout << " * grade";[/CODE]

Member Avatar for vmanes
0
62
Member Avatar for gator6688

I have to enter grades and if I enter a negative grade then the program is supposed to terminate. I came up with this code but it doesn't terminate it just asks for another grade. [CODE]if (grade[i]<0) cout << "This is not a correct grade";[/CODE] Any suggestions?

Member Avatar for WaltP
-1
110
Member Avatar for gator6688

Ok I figured everthing out except: 1) when it asks for my input it asks like this Enter first name: Enter last name: Enter amount:-it puts it all on the same line. Also when I run it it puts Sept. on the in the right spot but it puts 30, …

Member Avatar for Salem
0
118
Member Avatar for gator6688

I need to be able to pass the data I enter into my check. I do not think I have my check set up right though. I will post my code. [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; string todaysDate; string firstName; string lastName; double amount; void enterData(); …

Member Avatar for gator6688
0
114
Member Avatar for gator6688

error C3861: 'enterData': identifier not found, even with argument-dependent lookup error C3861: 'printCheck': identifier not found, even with argument-dependent lookup Why am I getting this error? [code] #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string todaysDate,firstName, lastName; double amount; enterData(&todaysDate, &firstName, &lastName, …

Member Avatar for Ancient Dragon
0
304
Member Avatar for gator6688

I have to write a program for an online class that accepts data to the function enterData() and passes it to printCheck to display. I am new to C++ and since it is an online class it is hard to get help. I have to compose a check and be …

Member Avatar for Dave Sinkula
0
282