Hi, I am new to programming and have attached my code so far, i need to insert the code to read data from serial port but havent a clue where to put it or how any help would be great Imports System Imports System.IO.Ports Public Class Form1 Private mySerialPort As New SerialPort Private Sub ButtonShowPorts_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonShowPortsol.Click ' Show all available COM ports. For Each sp As String In My.Computer.Ports.SerialPortNames ListBox1.Items.Add(sp) Next End Sub Private Sub ButtonClearList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClearList.Click ListBox1.Items.Clear() End Sub Private Sub ButtonClose_Click(ByVal sender …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have writen web sites before but have been asked to create a VB program, but dont know where to start so hoping someone can help me. I need to create a program that sits waiting for data from the serial port which is attached to a set of scales, when the scales are triggered they send the weight of the object down the serial port to the pc that then writes the data to a text file and then waits for the next weight to be received, and continuous to run until stopped at the end of the …

Member Avatar
Member Avatar
+0 forum 5

I have been developing a simple java game, however I would like to add some Music to my game because it seems quite boring whenever you play it.

Member Avatar
Member Avatar
+0 forum 3

Hey fellow programmers.Im a new python programmer.Only been learning for about 2 weeks.Below is a code I wrote this weekend.It is a simple text adventure.tell me what you think of it.Feel free to copy and paste it into python and run it yourselves.I'm open to suggestions. #Text adventure v 2.0 print('Hello, please choose a character name.') charactername=input() print('Hello' + charactername + ' This is the game of survivial.') print() print('You are a noble guard.') print('The city of Marshingo needs a guard.') print('Will you be their guard?') print('Please use lower case letters only.Thank you.') answer=input() if answer=='Yes' or answer=='yes': print('You have …

Member Avatar
Member Avatar
+0 forum 4

I'm returning to college after a 21-year absence and am starting fresh in a science stream. My first course in January will be the introductory Python course. In the meantime, I'm doing the Codeacademy tutorials and have completed the basic ones on variables, strings, comments, conditionals, some functions, and a few other things. I also did a little project that's part of a tutorial section wrapup. I took the time to write my first-ever independent script using the eric4 IDE in Linux Mint 14. I'm including the (very short) script in this post in case anyone has any kind, neutral …

Member Avatar
Member Avatar
+0 forum 13

Hi there! I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is: <~ListItem 1> text.... <~EndOf 1> <~ListItem 2> text.... <~EndOf 2> etc. I have been thinking of a strategy for days, but I can't find out anything. Thank you very much in advanced!

Member Avatar
Member Avatar
+0 forum 3

Hi guys Actually i have problem to convert my C++ program to C! Because C is too old and unusable, i tried to find and read so many sources, but finally i got some errors. Anyone can help me?! Thanks Regards C++ Files: Main.cpp #include <iostream> #include <cstring> #include <cstdlib> #include <iomanip> #include <vector> #include "Display.h" using namespace std; /**************************************************************** decleration classes & data Structure ****************************************************************/ Display display; vector<int> prices; vector<int> weight; /**************************************************************** Main method ****************************************************************/ int main(){ display.DisplayMenu(); char choice ; int done = 0 ; int vc ; int i1,i2,i3,i4,i5,i6; int w1,w2,w3,w4,w5,w6; double totalprice; int totalweight; while (!done){ …

Member Avatar
Member Avatar
+0 forum 9

I have created a program to display salarys, calculate a bonus payment and display total. Wages and total are my two arrays. My problem is, when i run the program, my element starts at 0.i need it to start at one but it cant skip the first value in my array wages. it is currently like this 0 1 2 3 4 5 6 7 8 9 i need it to display and the 10 salaries in there,it cant skip any. 1 2 3 4 5 6 7 8 9 public class Salary { //main method public void calcSalary() { …

Member Avatar
Member Avatar
+0 forum 7

Currently we ask cadidate to work on a small task on a computer with all necessory environment setup like visual studio etc. We found it very usefull to recruit good programmers. But the problem is we need to setup/clean computer for every candidate which we are finding very hard to manage. Is there any good online pre-employemnt testing system to recruit programmers which may help us to reduce the number of candidates to be interviewed to a practical count ?

Member Avatar
Member Avatar
+0 forum 2

Hello All, I'm working on my first Python plot in my programming class this week. My assignment is to write a program to plot data contained in a csv format. Here is the data: "Bowl number", "Date", "Bowl location", "Winner", "Number wings eaten" "I", "1/29/1993", "Wyndham Franklin Plaza Hotel", "Carmen ’The Beast From the East’ Cordero", 100 "II","1/28/1994", "The Main Event", "Kevin ’Heavy Keavy’ O"Donnell", 127 "III", "1/27/1995", "Club Egypt", "Kevin ’Heavy Keavy’ O"Donnell""", 133 "IV","1/26/1996","Electric Factory","Glen ’Fluffmaster’ Garrison", 155 "V", "1/24/1997", "Electric Factory", "Eric ’Gentleman E’ Behl", 120 "VI","1/23/1998","Spectrum","Mark ’Big Rig’ Vogeding", 164 "VII", "1/29/1999", "Spectrum", "Bill ’El Wingador’ …

Member Avatar
+0 forum 0

Hello, I'm interested in becoming a computer software engineer when I get older. I'm currently a sophmore in highschool enrolled in an engineering program. I enjoy it a lot and plan to take the program throughout the rest of my highschool career. For one of our projects I need to interview an engineer from an engineering field that I'm interested in. I searched through google, yahoo answers, this website, and I even emailed a few engineers at colleges near my area but with no luck. I'm willing to show effort however you need me to. Anyway, here are the questions. …

Member Avatar
Member Avatar
+0 forum 7

im having trouble with my output i want to justify it the name and the result but i dont dont how when i enter a number it is not centered......pls help me this is my codes [CODE]#include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #include <windows.h> using namespace std; void main() { int cartoon; int voters; int spongebob=0; int patrick=0; int y;//loop char x='*'; int t;//total cout<<"Choose your favorite Cartoon Character"<<endl; cout<<"PRESS 1 for spongebob"<<endl; cout<<"PRESS 2 for patrick"<<endl; cout<<"Enter the number of voters:"; cin>>voters; for(y=1;y<=voters;y++) { cout<<"Survey for your favorite Cartoon Character:"; cin>>cartoon; if(cartoon==1) { spongebob=spongebob+1; } else if …

Member Avatar
Member Avatar
+0 forum 1

i was having trouble with this couse we use an asterisk sign instead of a graph but the output is so mixed up how will i will aline the asterisk..pls help me [CODE]# include <"stdafx.h"> # include <iostream> # include <conio.h> # include <string> # include <windows.h> void main() { int president; int voters; int coe = 0; int coe = 0; int y; // loop char x= '*' int +; // total cout <<"voters for president:"; cin >> voters; for (y=l;y<=voters;ytt) { cout <<"survey for president!"; cin>> president; if (president==1) { cie = cie+l; } else if (president==2) coe …

Member Avatar
Member Avatar
+0 forum 3

Just wanna say hello! I'm a student who loves programing, develop simple/complex apps it's my life. I'm not here to ask you to do my homework at all, i'm a dedicated programmer who knows ask for help when is really needed, i like to learn on my own. Althought i'll try to help in the forum too. Greetings.

Member Avatar
Member Avatar
+0 forum 5

Dear Sir/Madam, I am a B.A. graduate from Guwahati University of Assam, India and having one year Diploma course in Computer Application. I have assist in developing a Library Management System which is running smoothly in various colleges in Assam, India. And have developed some non-commercial software for personal excellence such as Chain System Networking Growth Business Software, PG Quiz Master, Puzzle Cells, Puzzle Numbers etc. All these software was developed using VB 6.0 and MS Access. I want to be a software programmer in software companies. I know C and C++ too but I can’t say that I am …

Member Avatar
Member Avatar
+0 forum 8

First of all, I'm 17 learning C++ on my own! I've been enjoying Daniweb. and I did like to thank the community for that! Thank you all! Here goes my Problem... I have a small program that calculates time between two instances and it worked fine... so I decided to extend it by making a derived class of the base class 'Time' which will hold first, and second Input and the final result. other features later.... [COLOR="Green"]here is a screenshot of the first one... [/COLOR] [ATTACH]20412[/ATTACH]... this one works just fine and nice... its fun. please take note of the …

Member Avatar
Member Avatar
+0 forum 4

[I]Let's participate in writing. For my graduation project I had to do a literature study. I discussed the book "Clean Code", written by Rober C. Martin (a.k.a. "Uncle Bob"). I copy-pasted this and hope I didn't forget to adjust the formatting.[/I] [B]Motivation[/B] My literature study started when I inspected the existing code. It was almost unreadable. Their product was worked on by many programmers. Not only the people who work there now, but also those who left the past few years. A senior programmer told me many employers switched companies and all did their part in their own way. There …

Member Avatar
Member Avatar
+1 forum 15

In the function largest, it works correctly for numbers greater than 2 such as 3, but does not give me the correct results for numbers 1 and 2 when entered. How would I fix this. [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <string> using namespace std; int nexta(int a); int enter(int& a, string filename); int evenodd(int h, int& even, int& odd); int calculator(int a, string filename); int largest(int a, int& j, int& y, int k); int countSequence(int n); int continueCalc(); void howMany(); void printInfo(); int main () { //static int count = 0; string filename; bool redo = …

Member Avatar
Member Avatar
+0 forum 7

How do I change it so that it will only say how many times the program has ran once I typed another key then [B]y[/B]. Output: ================================= Programmer Name: Peter Langlands Program 3 Description: CS 150 Spring 2011 Lab CRN: Date: ================================= Enter an nonnegative number: 10 a0 = 10 a1 = 5 a2 = 16 a3 = 8 a4 = 4 a5 = 2 a6 = 1 The integer k such tha a_k = 1 is: The sum of the series equals: The largest number of the sequence is: The largest number in the sequence is in position: There …

Member Avatar
Member Avatar
+0 forum 9

How would I make this program that it tells me the number of odds or evens. I only have 1 number at the time, so I need it to either say 1 odd or 1 even. [CODE]#include <iostream> #include <fstream> using namespace std; void printInfo(); int nonNegative(int a, int k); int nexta(int a); void initialize(int& oddCount , int& evenCount); void getx(int& a); int main() { int count; int num; int zeros; int odds; int evens; int a, k; k = 0; char choice = 'Y'; ofstream outFile; //---------------------------------------- // Call function tagReader with tags1.txt outFile.open("Langlands.txt"); outFile.close(); printInfo(); nonNegative(a, k); initialize(odds, …

Member Avatar
Member Avatar
+0 forum 1

Hi I am beginner in assembly and was wondering how the program works below follow the images CheatEngine Pointer: [URL="http://i54.tinypic.com/2l6lue.gif"]http://i54.tinypic.com/2l6lue.gif[/URL] Dissembler CheatEngine [URL="http://i52.tinypic.com/2ekq4uv.gif"]http://i52.tinypic.com/2ekq4uv.gif[/URL] thanks

Member Avatar
+0 forum 0

I do not know why when I compile it, on why does the last cylinder file print out multiple times int tags1 and tags2. I bolded them so you would see what I am talking about. Could someone please help me out? [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; // function prototypes void tagReader ( ifstream& inFile, int&count); void getEmployee ( string& who, double& rate, int &hours ); double paycheck (int hours, double rate); void repeater ( string word, int num); bool valid (int val); void header (); //========================================================= int main() { int count = 0; …

Member Avatar
Member Avatar
+0 forum 17

Hi Guys / Gals, First off, if I'm not in the right forum for this question, I apologize. For this question I figured I would ask some seasoned coding professionals :). I do realize that this type of question is not a simple yes / no, but i would just appreciate some sort of guidance or any recommendations. I would like to know if I "may" qualify for an entry level developement position? And or what's expected in a vb.net entry level posistion. [B]Any and all [/B]feedback would be [B]much appreciated[/B]. I have completed 2 years of a Business Information …

Member Avatar
Member Avatar
+0 forum 1

I do not know how to write a function for this. I have written just the base line of the code, but I do not know how to finish it. Here is the description. A void Function tagReader inputs the data collected by the cylinders; it has two parameters: the input file and an int count. The function inputs names, serial numbers, and location coordinates from the input file. The input file will have a descriptive name, an integer serial number and two double values representing map coordinates separated by blanks on each line. For each cylinder, echo print to …

Member Avatar
Member Avatar
+0 forum 10

I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the length: 5 Input the width: 4 Input the cost of a gallon: $5.50 It will take 0 gallon(s) to paint an area of 5 square feet at a total cost of $0.00. Press any key to continue . . . [ICODE]#include <iostream> #include <iomanip> #include <string> using namespace std ; …

Member Avatar
Member Avatar
+0 forum 11

I can not seem to figure out how to drop the lowest score. When I run it it says the lowest score dropped was 0. How do I fix this? [CODE]#include<iostream> #include <string> #include <cmath> using namespace std ; string getName (); int averageScores( int); void printMessage (string, int); void tallyScores ( int, int&,int&,int&); int main() { const int NUMBER = 4; // number of scores for each student char moreStudents = 'y'; string who ; //name of the student int testAverage ; cout << "For each student, you will be prompted for a name and "<< NUMBER << " …

Member Avatar
Member Avatar
+0 forum 10

Could you please tell me how to arrange my code so that the invalid statement like in my displayed output will only show up if some enters a wrong character. Here is my code: #include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { //(1) Declare some variables to work with char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; int additionalTime; double cost; double charge; while(choice=='Y'||choice=='y'){ //(2) Output read info and user message cout << "\nThis program will calculate a single, couple, or group " << "\nfare amount which …

Member Avatar
Member Avatar
-1 forum 1

Hi. I'm doing bachelor of IT and this is my third year. I intended to become a programmer when I graduate. How many programming language I need to know to be a programmer? How do I know if my programming skills is adequate/competent?

Member Avatar
Member Avatar
+0 forum 5

#include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y'){ cout << "\nThis program will calculate a single, couple, or group " << "\nfare amount which is then owed by the customer for the trip.\n" << "\nTo calculate a single fare amount, input S (or s)" << "\nTo calculate a couple fare amount, input C (or c)" << "\nTo calculate a group fare amount, input G (or g)" << " \n\nInput S, C, or …

Member Avatar
Member Avatar
+0 forum 2

I have a Associates degree in Business Management and start my Bachelors program next month but I am thinking about changing from Business Management to Business Information Systems. I would like to know where will this degree take me to in the a career in I.T.? Is it the same as other I.T. degrees? Thanks for your info because it much needed right now.

Member Avatar
-1 forum 0

The End.