- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
You will also have a challenge if the two inputs are of different length. First make the strings the same length by adding zeros to the most significant digit. Create a int carry variable Them get chat at index of each input. Convert those to digits. add two together. If …
I would think that this wouldn't be a complex thing, but I guess I'm wrong. I want to create tables in a database based upon a string created by input variables including a parent ID. My Code: -- create table named the value in @newname SELECT CONCAT('Entity_', @@IDENTITY) into @newname; …
One way of implementing this is to utilize a while loop to walk through your zip code array. The conidtions of the while loop would be while x < array.size and target zip not equal to array[X], then continue to next array element.
You have code for average and sum, but nothing on finding max. You are already stepping through the array element by element, what do you think you should be doing?
Post your code (not someone else's) and we'll try to help you out. Deital & Deital have that project in their book. ISBN 0-13-456955-5
If I understand your question properly, you are asking if two numbers can be sent at the same time to a device connected to your serial port. If so, the answer is it depends on the device. Serial ports transmit a bit of data at a time, but blocks of …
I believe you need to cast the integers to doubles to return a double.
a=b=c=1 a will be set equal to the value that is in b. Then b will be set equal to the value in c. Last c will be set to 1. This is the challenge of this type of statement. Logic expressions are true when not equal to zero. Even …
You don't seem to get the hint. aniweb is to assist newbies by mentoring them. This is not a place to get others to do your homework. You learn programming by doing, not copying others.
Call PrintForm should get you where you want to go
Line 33. You have numbers representing a phone number there. They need to be in double quotes to be recognized as a string and not the literal value
Post your code if you want help. Not here to do your homework for you.
Init a variable to ie Sum = 0; Run a for loop thirty times to get a total sum. for( int i = 0; i < 30; i++) { Sum = Sum + array[i]; } Then divide by 30 return Sum/30 That's the average!!
[QUOTE=mym]I need help with finding the minimum value of x but I can't seem to get the code right. Please Help. Noob :sad: [code] #include<iostream> using std::cout; using std::cin; int main() { int x; // x is the duration of the call double sum; int number; double average; sum = …
The End.
gkbush