Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Need the problems converted to a virtual basic program starting with option strict on and sub main ( ) ) or the following problems,

(Need the problems converted to a virtual basic program starting with option strict on and sub main ()) or the following problems, one from homework #2 and one from homework #3, need to take the algorithm and convert it to a Visual Basic program. Remember to following guidelines given for turning in actual program assignments. All programs need to have Option Strict On, with output pasted below source code and comment section at top with name. Each problem will need its own program to turn in. Do not turn in the algorithm for these, you already did.
A problem that determines if an entered number is negative or positive, and continues to have user enter numbers and display appropriate response until user enters a zero. Will keep looping until the user enters 0.
A store is having a sale on shirts. The shirts cost $15.75 individually, but if four to ten shirts are bought they are only $12.50 a shirt, and if more than ten are purchased then they cost only $8 a shirt. Have the problem calculate the price for all the shirts, the sales tax (at 6%), and the total price based on the number of shirts purchased. Also make sure to display all the data, i.e. shirts sold, price of shirts, sales tax and total price. Need to use FormatCurrency function as well.
For this last two problems you need to do three step analysis, write an algorithm and then convert to VB code. Turn in all three for each one.
User is asked to find the area of either a circle or rectangle. Will be asked to determine which one then if choose circle, ask for radius, compute area and display area. If choose rectangle, ask for the length and width, calculate area then display the answer. Can read users input as a character, need to check with "R"c or "C"c. The little 'c' tells compiler to treat it as a character.
Problem will be a multiplication tester. Computer will randomly pick two integers between 1 and 10 than multiply them together to keep the answer. Problem will then ask user to find the answer and will determine if correct or not. If correct, tell them, if not then display correct answer. Will continue to loop until user decides to quit. Sample output below.
Do you want to multiply two numbers YN Y
Find the answer
4**2=8
Congrulations, Correct!!
Do you want to try again YNY
Find the answer
1**3=4
Sorry, wrong, correct answer Is 3
Do you want to try again YN
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions