Hi, experts: I am very to c++, and here is a program that should: • create a Customer object– (although you will only be using one constructor here, be sure and test all three) • Display the Customer’s info using the ‘get’ functions • Ask the user how many months will be simulated • For each of N months (the number of months the user desired): Ask the user to provide all purchase amounts for the customer Ask the user to provide a payment for the customer Output the current balance for the customer Display the Customer’s info using the …

Member Avatar
Member Avatar
+0 forum 2

Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder if it's normal practice to instead use the properties of the class and use [B]$this[/B] to retrieve those values in the different methods instead of passing them as parameters? What is best and how should I do? code example. This: [CODE] class example { function __construct($param){ $result = $this->foo($param); $result2 …

Member Avatar
Member Avatar
+0 forum 2

I am in a distributed education programming class, our most recent assignment has me stumped with a error that is driving me insane. The IDE I have on my personal computer is missing some of the libraries I need(I believe), and when I remote desktop to my school's computer and use the IDE there the error code I receive is that there is a memory exception at line: 71 The assignment is to stimulate a race track using Object oriented programing, the area I believe I am having problems with is when I attempt to make an array of Horse …

Member Avatar
Member Avatar
+0 forum 3

There is a working code about a program in which you should create differen Cat objects with name and color parameter and apply method to the objects. The problem is that I get the method working for only the last cat [CODE]public class Cats { public static String name; public static String color; public Cats(String firstname, String bodycolor) { name = firstname; color = bodycolor; } public void SayMiau(){ System.out.printf("Cat %s which is %s in color said miauuuu!%n", name , color); } public static void main(String [] args) { Cats Number[] = new Cats[6]; Number[0] = new Cats("Juja","orange"); Number[1] = …

Member Avatar
Member Avatar
+0 forum 1

So I've been working on this program for a while, I'm finally finish but I have two error that I can not understand why. My first error is when I am declaring the header f [CODE] //------------------- Mixed.cpp -------------- #include <iostream> #include "mixed.h" using namespace std;[/CODE]ile> it keep sending me an error message error C2143: syntax error : missing ';' before 'using' I feel like this is a real simple mistake but I can not figure out what I am doing wrong? There isn't suppose to be a ; before using my next error is about operator overloading I wrote …

Member Avatar
Member Avatar
+0 forum 3

The End.