No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
| |
Re: It looks good to me. Did it compile and run properly for you now? | |
Re: [CODE]double sumAverage[10]; int k ; double sum ; double average = 0 ; k = 0; sum = 0; cout << "Input 10 positive numbers" << endl; cin >> sumAverage[k]; [/CODE] Will only let you enter one number for sumAverage[0], the rest of the elements need to be initialised with … | |
Re: How about setting up a reverse loop starting at the end of the array and looking for the first instance that you come across? You could also add a check to report if that instance is the same as the the first instance of the int. | |
Re: Hey By the Blood (Can I address you as just "by"? :-) ). A couple of things, when setting up loops involving arrays, instead of settings up the for loop as a hard coded number of loops (i.e. [CODE];j < 5;[/CODE]), I'd use [CODE]i < scores.size()[/CODE] and [CODE]j < scores[i].size()[/CODE]. … | |
Re: How about creating setName, setSalary, getName, getSalary in your CWorker class? | |
Re: For what it's worth, how about splitting the result between two memory locations? [QUOTE=prithaghoshal;634156]Hi, We are working on an ALU Architecture in VHDL including instructions of Multiply and Divide. We are confused about how exactly the results from Multiplication or Division are sent outside the ALU. The adder subtractor have … | |
Re: [QUOTE=blamp;1146426]Im at a total lost for the first problem but for the second problem I think it would be 0000000000100001110 because it would be 20 bits without changing the value of the interger and it remains in 2's complement[/QUOTE] IIRC, you'd lose the sign value though. The 10 bit version … |
The End.