User Profile

Collapse

Profile Sidebar

Collapse
gneisler
gneisler
Last Activity: Oct 13 '15, 03:34 PM
Joined: May 18 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gneisler
    replied to I have another C++ mess on my hands
    in C
    Some of the error messages from the compiler does not make sense, well for me they do not, being new to C++.

    Code:
    #include <iostream>
    #include <iomanip>
    #include <string>
    using namespace std;
    
    class Student
    {
    protected:
    	
    	int social;
    	string name;
    	string *NamePtr;
    public:
    	Student (); // Default constructor
    	Student(int ssn, string
    ...
    See more | Go to post

    Leave a comment:


  • gneisler
    started a topic I have another C++ mess on my hands
    in C

    I have another C++ mess on my hands

    I can not get this program to work.

    Code:
    #include <iostream>
    #include <iomanip>
    #include <string>
    
    
    using namespace std;
    
    const int SIZE = 80;
    
    
    
    class Student
    {
    protected:
    	
    	int social;
    	string name;
    	char *NamePtr;
    public:
    	Student (int = 999999999 , char [] = "unassigned");
    ...
    See more | Go to post

  • gneisler
    replied to I need some help with this overloaded program
    in C
    weaknessforcats ,

    Thank You, for helping me clean this mess up.
    See more | Go to post

    Leave a comment:


  • gneisler
    started a topic I need some help with this overloaded program
    in C

    I need some help with this overloaded program

    I am having trouble cleaning this mess up. This overloaded program is supposed to utilize an overloaded equality operator that should return true if the two student’s objects are equal and false if the two are student objects are not equal. And include an overloaded assignment operator in the Student class that assign one Student object to another, that allows for multiple assignments such as student1=studen t2=student3. And use the overloaded...
    See more | Go to post

  • gneisler
    replied to Student Name Class
    in C
    weaknessforcats ,

    Thank you for your help.
    See more | Go to post

    Leave a comment:


  • gneisler
    started a topic Student Name Class
    in C

    Student Name Class

    I am new to C++ and in need of assistance with this program.
    I can not get this program to display "Name for student1 is unassigned and ssn is 999999999" and to display next "Name for student2 is John Doe and ssn is 123456789". Thank you, for your help.

    Code:
    #include <iostream>
    #include <iomanip>
    #include <string>
    
    
    using namespace std;
    
    class
    ...
    See more | Go to post

  • gneisler
    replied to Tax Rate Array
    in C
    Instead of just display one answer it is displaying all of them.
    For example, I enter the gross pay: 50001 the display should be "Taxes are: 7500.15" but I am getting all of them:
    The Taxes are: 0.00
    The Taxes are: 2500.05
    The Taxes are:5000.10
    The Taxes are:7500.15
    The Taxes are:7500.15
    See more | Go to post

    Leave a comment:


  • gneisler
    started a topic Tax Rate Array
    in C

    Tax Rate Array

    Can not get this array to work. Instead of displaying just one result , I get all of them.



    Code:
    #include <iostream>
    #include <iomanip>
    #include <cctype>
    
    using namespace std;
    
    int main ()
    {
    
    const double income_amt[] = {0,10000,20000,50000,100000};
    double tax_rates[]  = {0,0.05,0.10,0.15,0.20};
    int i = 0;
    double gross_pay = 0 ;
    double
    ...
    See more | Go to post
    Last edited by gneisler; Sep 15 '15, 03:29 AM. Reason: To add more information.

  • Lowest grade. I am having a problem with getting the Lowest grade code to work.

    Code:
    #include<iostream>
       using namespace std;
    
       int main()
       {
    	
       int midterm_grade, project_ave, homework_ave;
    	int average;
    		   
          cout <<"Please enter your midterm grade:\n";
          cin >> midterm_grade;
       
          cout <<"Please enter your project average:\n";
          cin >> project_ave;
    ...
    See more | Go to post
    Last edited by weaknessforcats; May 18 '13, 05:31 AM. Reason: added code tags
No activity results to display
Show More
Working...