QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

ha ya laugh it up heres my attempt

December 5 2009 at 8:36 PM
  (Login reddgsx)


Response to * HOMEWORK! YOU LOSE! Post your code attempt if you NEED help!

cls



rem idk wtf im doing what are $, ;, and % used for? idk when to use them or what they are for
rem this sux

read names$, salary

print names, salary

if salary > 80000 then bonus =500 else= 0

rem dont know what to put to make salary formula, dont know what to put to organize, idk why im even trying to do this becuase this is hopeless for me

salary = gross sales * .1 + 10000

data heather knox, 90000
data sam turbin, 70000
data dan phillips, 20000
data robert vance, 95000
data lew wallace, 40000

ya thats about all i got im laughing at myself.

my teacher pretty much wants it too look like this

employee gross sales commission gross pay

heather knox 90000
sam turbin 70000
dan phillips 20000
robert vance 95000
lew wallace 40000

with employee, gross sales, commission, and gross pay underlined
centered output horizontally and the columns must be centered underneath each heading


 
 Respond to this message   
Responses