I Am Just A Beginner In Vb And Am Trying A Project On A Calculator A Scientific. However I Have Been Trying To Fix This And That But To No Avail Since I Am Toddling Around. Do You Happen To Have Them Anywhere?

Dani AI

Generated

Practical follow-up (summary and focused guidance to help finish a VB6 scientific calculator)

The original request from asked for VB6 source. Because Visual Basic 6 is a legacy IDE (the runtime is still supported on modern Windows but the IDE was retired), consider whether you must use VB6 or can target VB.NET; the official Microsoft support statement explains the runtime/IDE situation. (learn.microsoft.com)

Minimum feature set and built-ins to use: + - * /, exponent (^), parentheses, sqrt, nth-root, factorial (implement by loop), trig (sin/cos/tan), inverse trig, ln/log10, exp, memory and clear, and a degrees/radians mode. VB6 exposes intrinsic math functions such as Sin and Sqr—remember these expect radians (convert degrees with PI/180). Example VB6 snippet:

Const PI = 3.14159265358979
Dim deg As Double, res As Double

deg = 30
res = Sin(deg * PI / 180)   ' Sin expects radians

Refer to the language math function docs for exact behavior and edge cases. (learn.microsoft.com)

If you want to accept typed infix expressions instead of strictly button-driven input, use an infix->postfix (Shunting‑Yard) conversion and then evaluate the RPN output. That approach handles precedence, functions, and parentheses cleanly; there are ready VB6 implementations and example evaluators you can study and adapt. (en.wikipedia.org)

Troubleshooting and gotchas: use Double for results but be aware of IEEE double precision limits (precision, overflow, NaN). Validate inputs before calling domain-limited functions (e.g., Sqr, Log) and trap divide-by-zero. Keep UI and calculation logic separate (user form vs. evaluation module) so unit tests and edge-case checks are easier. When sharing code, post a minimal reproducible example (or a GitHub gist) rather than emailing binary builds; note the thread was later closed by and ’s email request highlights why public, minimal examples are more useful to helpers. (en.wikipedia.org)

Recommended Answers

All 3 Replies

Please send it to my E-mail

commented: homework kiddo, thread hijacker, zombie master, overall utter idiot +0

do you really think another lazy homework kiddo just like you who dumped his assignment here 3 years ago and never came back is going to magically reappear with a working solution to your homework and hand it to you on a golden platter?

You're even more stupid than the majority of your ilk.

please moderate your replies. We know people are unhappy with students posting their homeworks with no intention of solving it and we are looking into issue.

if you have intention on working on this then by no means create new thread in appropriate forum section.

As for this thread, its closed now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.