Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 09-18-2006, 03:42 PM   #1
Daemon Poster
 
jo5h's Avatar
 
Join Date: Aug 2006
Posts: 1,030
Default Homework help

This is my homework for programming using visal logic... im kinda lost maybe you guys could help me

Assignment...

Using Visual logic, design and implement a program that does the following:

Write a program that will input two values. The program should display the sum, difference, quotient, product, and average of the two numbers.

All input and output will use the console.

Use proper design techniques, and appropriate variable names.


I have visual logic.. but the two values things.. im confused
__________________

jo5h is offline   Reply With Quote
Old 09-18-2006, 08:46 PM   #2
Daemon Poster
 
jo5h's Avatar
 
Join Date: Aug 2006
Posts: 1,030
Default Re: Homework help

heres what i got going so far.. the program finishes w/ out the averages of the two numbers.. but when i put in the average command.. its fails

heres what my flow chart looks like


but heres the error



now i was hopeing if i could get some direction for what i am doing wrong..
__________________

jo5h is offline   Reply With Quote
Old 09-19-2006, 05:52 AM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Homework help

try average = (number1 + number2)/2 (without the quotes around the 2).
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 09-19-2006, 02:12 PM   #4
Daemon Poster
 
jo5h's Avatar
 
Join Date: Aug 2006
Posts: 1,030
Default Re: Homework help

ahh i got it... i put in number1number2= number1 + number2 / 2 and that completed the program.. thanks for the help
jo5h is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:10 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0