1.

Solve : Visual Basic Codes?

Answer»

i need help finding the codes to MAKE these questions work on visual basic

http://s1260.photobucket.com/albums/ii575/aidanheartsbread/?action=view&current=picture.jpgIt's a scan of a school test.
if thats your question then no,its more of an assignment and its alright for us to get help.The idea of a programming assignment is that you don't "find" the code by asking or searching on the web, you write it yourself. I expect if you post the code you have written people might offer suggestions to IMPROVE it.

Also, very few people are going to click on a bare link. Why didn't you paste the image code like this:



I still say this is homework (that's another word for a school assignment). We don't write people's homework assignments for them. I suggest you look on the Web for Visual Basic tutorials. Also, what kind of programming teacher does not know that you spell Visual Basic with initial capital letters?I'm sorry Im new to this form thing and didn't know u can directly post the image. i thank you for ur input however if i do find some codes will u be willing to correct any mistakes and check that they do what the question asked. THX in advanceQuote from: breadlover on May 21, 2012, 12:59:31 PM

if i do find some codes

Don't "find" them, write them yourself. Have you had any programming lessons? Have you got any course material? have you studied it?
what the heck is a "For- Next Sentence"?

HERE is one answer.

Oh you wanted Visual Basic? Oh darn. I'm actually better with VB then python but this will make things far more frustrating until you actually do the work yourself.

1. I ignored the "insert" thing and pretended it meant input.
Code: [Select]#!/usr/bin/env python
import math
inputresult = raw_input("Enter Number:")
inputresult = float(inputresult)
print "Negative Number" if 0 > inputresult ELSE "number " + str(inputresult) + " has " + str(int(round(math.log10(inputresult),0))) + " DIGITS."

Also sadly I think you are actually expected to determine the number of digits in the number by just looking at the length of a string. I was going to do the other ones but I lost interest.


Discussion

No Comment Found