Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming language uaed ; viaual basic Assignment 1: Write the code to do the following: 1. The user will enter a number. 2. The code

image text in transcribed

programming language uaed ; viaual basic

Assignment 1: Write the code to do the following: 1. The user will enter a number. 2. The code should then decompose (or calculate) and print how many 50s, 10s and Is there are in the number. For example, the user enters 100. The number 100 has only two 50 (50+50 = 100). Then your code should print 2 in the TextBox under 50, print 0 in the TextBox under 10 and print 0 in the TextBox under 1. Another example, the user enters 62. The number 50 has one 50, one 10 and two 1 (50+10+1+1 = 62). Then your code should print 1 in the TextBox under 50, print 1 in the TextBox under 10 and print 2 in the TextBox under 1. Another example, the user enters 45. The number 45 has no 50, has four 10 and five 1 (0+10+10+10+10+5 = 45). Then your code should print 0 in the TextBox under 50, print 4 in the TextBox under 10 and print 5 in the TextBox under 1. Hints: 1. You can use While statement. 2. Divide the problem into multiple small problems (input, calculate 50, calculate 10...etc) and solve each one alone. Do not try to solve everything together at once! 3. Try to solve it on paper, analyze and design your solution, and then start coding. 4. Submit the code and a screenshot of your program in one file as pdf or docx file on Blackboard. Form 1 Amount 198 Decompose 10 1 50 3 4 8

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_2

Step: 3

blur-text-image_3

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

Students also viewed these Databases questions