Hello to all! I am a begginer to C++ and writing a class . Actually my program runs perfectly but there is logical error. My compiler is devC++. the output of my program should be as follows: Enter your name: john Enter your rollno: 45 Enter your semester:4 Enter your name: Michael Enter you roll no: 78 Enter your semester:3 Name of studend1 is John Rollno of student1 is 45 Semester of student1 is 4 Name of student2 is Michael Rollno of student2 is 78 Semester of student2 is 3 Description of error : First six lines appears perfecly on …

Member Avatar
Member Avatar
+0 forum 4

I've been reading through this introductory book on Python, and I've been following along fairly well. Compared to C++, Python seems to make more sense to me. That is, until I reached a section on Logical Operators. I don't completely understand what I just typed in to IDLE, and the results that were returned. Here's what I read: Python provides three logical operators: and, or, and not. Both and and or use short-circuit logic and return the operand that determined the result—they do not return a Boolean (unless they actually have Boolean operands). Let’s see what this means in practice: …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am working on making myself a digital clock (as a fun little project) and I want to have two buttons, one to increase a value (like the hour) and one to decrease, mainly because I am tired of the clocks where you have to button mash the 'increase' button to bring the hour back down. As such I want to construct an up-down counter that would increment on the rising edge of one input and decrement on the rising edge of another. I have one that increments on the rising edge of the clock if the extra input …

Member Avatar
+0 forum 0

I have to create a system design for a cashier system. Most of the transactions would be payments for fees in a student account. Fees like Tuition, Books, Enrollment Fees. The problem with these fees are their special characteristics like Tuition fees being staggered in MONTHLY itemization (if that's a correct term), Books can also be staggered but payable throughout a year without itemization, and Enrollment Fees which consist of the Reg Fee and the Misc Fee (which is broken down into a bunch of items) both of these Enrollment Fees required for payed during enrollment. Other fees would be …

Member Avatar
Member Avatar
+0 forum 5

I was proposed a project that sounds like this. Consider a set of logical gates like AND, OR, XOR or NOT. Allow for building any logical circuit by connecting such gates. Provide input (0/1) to a number of gates and collect the results at the output of some of the gates. Be able to read the description of the circuit from a file. Has anyone done anything of this kind? What would you do, how would you start/shape this problem? I am looking for any help as much as possible, open to hints and solutions, anything is helpful. Trying to …

Member Avatar
Member Avatar
+2 forum 8

As someone who is new to Javascript, I find it kind of odd that Javascript doesn't seem to have a != operator. Is there a rationale why the language was designed this way?

Member Avatar
Member Avatar
+0 forum 2

Hi guys, Just looking for some advice on database design. I'm relatively competent in MySQL (competent at a push, haha) and I'm in a bit of a pickle right now when I'm trying to generate products for a Magento store. Well, Magento is where it ends up, I currently use a mass importer called MAGMI which is awesome. My client wishes to convert his stock levels feed (Sage for anyone who's interested) into information on his website without having to do as less data input as possible. He sells electronics and white goods and I've been hooked up with a …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm running a script to bring down the logical ip address . But if the system doesnt have that logical ip addresss then i get the following error print on terminal - SIOCSIFFLAGS: Cannot assign requested address I just want to know whether there is a way to suppress that print so that user is not aware of that. May be some check before pulling down the logical ip. the script file content is - ifconfig eth0:1 down is there any syntax by which i can check whether eth0:1 is up or not . My purpose is not to …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I hope everyone is having a wonderful afternoon. I am a college student who is Majoring in Computer Information Systems. In one course, we have a group project that covers the whole SDLC, and we are actually creating a new system. We're creating a e-commerce website that runs on a MySql server. We are still in the Design phase, with a little but of coding work being done right now, but I was curious if I could get some input on how I change a logical data flow to a physical. My disdain for DFD's at this point …

Member Avatar
+0 forum 0

Hi There is something about this code that does not seem right has anyone got any ideas? It does not matter what it does. I mean from a constructor/inheritance point of view. Some of the points I made were one constructor was passing a null value, which in turn was setting a final variable. This variable will always hold a null value. I also mentioned that ConceptA's constructor passes in a Concept instance to be set as ConceptA's parent. this did not seem correct as ConceptA extends Concept, so could pass in a ConceptB which is concrete class of Concept …

Member Avatar
Member Avatar
+0 forum 4

i am working in Dijkstra code.which i want to get the vertexes from user by using Array list.but there is a problem in computepath method i can't solve it. [CODE] public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("insert the number of Vertexes:"); int nv=input.nextInt();//nv = number of vertexes Integer tmp; HashMap<String , Vertex> h = new HashMap<String , Vertex>(); ArrayList <Vertex > a = new ArrayList<Vertex>(); for(Integer i = 0 ; i < nv ; i++){ String str; str = "v"+Integer.toString(i); Vertex buff = new Vertex(str); //a[i] = new Vertex(str); a.add(buff); h.put(str, a.get(i)); str = "" …

Member Avatar
Member Avatar
+0 forum 9

[CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); int A[20][2],n,sum; cout<<"\n\tEnter the no. of terms: "; cin>>n; cout<<"\n\tEnter "<<2*n<<" numbers to the "<<n<<"*2 array: "; for(int i=0;i<2;i++) { for(int j=0;j<n;j++) cin>>A[i][j]; } cout<<"\n\n\tThe Array you entered is: "; for(i=0;i<2;i++) { cout<<"\n"; { for(int j=0;j<n;j++) cout<<A[i][j]<<" "; } } for(i=0;i<2;i++) { sum=0; for(int j=0;j<n;j++) sum+=A[i][j]; cout<<"\n\tSum of row "<<i+1<<" is "<<sum; } cout<<"\n"; for(i=0;i<n;i++) { sum=0; for(int j=0;j<2;j++) sum+=A[j][i]; cout<<"\n\tSum of column "<<i+1<<" is "<<sum; } getch(); }[/CODE]

Member Avatar
Member Avatar
+0 forum 3

#include<iostream.h> #include<conio.h> #include<math.h> void main() { clrscr(); int n,x,i,j; float p,fact=1.0,sum=0.0; cout<<"\n\tEnter the number: "; cin>>n; cout<<"\n\n\tEnter the Value of 'x': "; cin>>x; for(i=1;i<=n;i++) { for(j=(2*j-1);j>0;j--) { fact=j*fact; if(i%20==0) p=(-1)*pow(x,(2*i-1)); else p=pow(x,(2*i-1)); sum+=p/fact; } } cout<<"\n\tThe sum is "<<sum; getch(); }

Member Avatar
Member Avatar
+0 forum 7

Ok, so I'm new to programming and I'm making console programs right now. I tried making a program to draw a rectangle in a cli program. I have some logical errors in the program that prevent it from working. I'm new to C++ so go easy on me. :P [CODE]/*Program by Ted. 11/03/11 Program creates a rectangle or square in a text matrix according to user input.*/ #include <iostream> #include <string> #include <iomanip> using namespace std; //variables must be greater than 2 int w1(0); int w2(0); int wf(0); int h(0); int hf(0); int inside(0); int inside_c(0); int p(0); int a(0); …

Member Avatar
Member Avatar
+0 forum 1

Hi all. I know that others have posted about Rock Paper Scissors, but none of their posts are exactly what I am needing. My issue is that for my program, we are required to use at least 1 switch and 1 if statement, as well as keep track of the wins and display this along with the number of games played to the user before ending the game. Here is what I have so far: [CODE]/* * rockPaperScissors * a game of Rock Paper Scissors * * Zack Conway * Created: 9/7/11 * Last Modified: 9/10/11 * * References: * …

Member Avatar
Member Avatar
+0 forum 4

Can anyone explain what logical mobility is or direct me to a decent link to research from as im just finding pages with the word being used but no explanation to the meaning Thanks

Member Avatar
Member Avatar
+0 forum 7

The End.