Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Quick Newbie help with qbasic

DennShinDennShin Member Posts: 1
ok i am trying to make a program that does price of item plus tax then prints final price out , but for some reason i keep getting "0"
here is my code so far

CLS
INPUT "Price of Item", price#
tax! = .07
atax = price# * tax!
fprice# = atax + price#
PRINT "Final Price", fprice
LPRINT "ABC Recipt", fprice#
END




Comments

  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    [b][red]This message was edited by the KDivad Leahcim at 2002-6-24 13:30:12[/red][/b][hr]
    : ok i am trying to make a program that does price of item plus tax then prints final price out , but for some reason i keep getting "0"
    : here is my code so far
    :
    : CLS
    : INPUT "Price of Item", price#
    : tax! = .07
    : atax = price# * tax!
    : fprice# = atax + price#
    : PRINT "Final Price", fprice[b]# 'Added type symbol[/b]
    : LPRINT "ABC Recipt", fprice#
    : END



  • DaKillerDaKiller Member Posts: 5
    try like this:

    CLS
    INPUT "Price of Item",x$
    y$= .07
    z$= x$ * y$
    loacte 1,2
    print "final price:"
    loacte 1,14
    print z$
    LPRINT x$

    now you only have to rearange the text

    good luck

    urban guerrilla freackware anyware




  • Andre YoungAndre Young USAMember Posts: 0

    _______ \ http://forcoder.org \ free video tutorials and ebooks about / Swift Assembly R Delphi Visual Basic Visual Basic .NET C# C Java PL/SQL PHP MATLAB Go Python Objective-C Ruby C++ Scratch JavaScript Perl VBScript Scheme Fortran Kotlin Alice Erlang Rust Ada Hack SAS ABAP Dart Clojure COBOL ML Transact-SQL Lisp Lua LabVIEW FoxPro F# Scala Crystal Prolog D Bash Julia Logo Apex Awk / __________

Sign In or Register to comment.