Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

VISUAL BASIC Asked before but answered in C# The purpose of this assignment is to read input from the form and do calculations with those

VISUAL BASIC Asked before but answered in C#

The purpose of this assignment is to read input from the form and do calculations with those values. For all input and output values, create an appropriate variable. Be aware of the variable scope and define it such that it uses the minimum scope necessary. We are also going to display the calculated values on the screen and control the format of the result.

At startup, place todays date in the label lblToday. The user should enter when their upcoming birthday is, as well as the numbers indicating how many pennies, nickels, dimes, and quarters they add to their piggy bank every day. When the Submit button is pressed, calculate the number of days from today until the day the user entered. When the user presses the Process Savings, find the value of the coins listed which would be the total saved each day. Also find the Total Savings, which would be the savings per day times the number of days. Use a currency format, with a dollar sign and 2 decimal places for the total savings per day and the total savings.

If the user hits the Clear button, reset the form to clear out all the values. It should look just like when you first start the application. Todays date should still be shown.

The exit button should exit the app.

image text in transcribed

  • Design the form as above. Spend some time to align objects and lay thing out well. 5 pts
    • I set the textalign property for the textboxes and labels
    • For lblToday, I turned off Autosize, made a large label, and right aligned it
    • I Changed the font size to highlight certain labels and make it easier to read
  • Properly Name all Objects. You only need to rename objects only if you need to reference them in the code. So you will need to rename 14 objects in this case. 5 pts
  • Add Comments at the top of each subroutine (but inside the subroutine) explaining what the subroutine does 5 pts
  • Have Object Strict On 5 pts
  • The user enters the number for each coin and the number of individuals.
  • When the user clicks the Submit button, calculate the number of day 15 pts
  • When the user clicks Process Savings, calculate the savings per day and total savings. 10 pts
  • Format for both the total per day and total savings as currency with 2 decimals. 10 pts
  • When the user clicks the Clear button, clear all the information and reset them to what is shown above (do not clear todays date leave that alone). 15 pts
  • When the user clicks the Exit button, exit the application. 5 pts
  • Have a Splash Screen that is displayed at startup 5 pts
  • Have an About Box that is pulled up when the About button is pressed 5 pts
  • Also change the settings to accomplish the following
    • Set the tab order so that the tab sequence is: 10 pts
      • Birthdate value
      • Submit Button
      • Pennies
      • Nickels
      • Dimes
      • Quarters
      • Process Savings
      • About
      • Clear
      • Exit
    • Put your name at the top of the form (Where is says Put your Name Here) 1 pts
    • Add color to the form (your choice of color) 4 pts
    • If the user hits the Enter key, it would be equivalent to pressing the Process button. 5 pts
    • If the user hits the Escape key, it would be equivalent to pressing the Clear button. 5 pts
    • Do not have any empty stubs (you will lose 1 point for each)
Put Your Name Here x Ib Today Date of your Next Birthday Submit LE Days till next Birthday Change dropped in your piggy bank each day Pennies 0 0 Nickles 0 Dimes 0 Quarters 0 Total saved each day 0 Amount Saved by Birthday 0 Process Savings About Clear Exit

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

Students also viewed these Databases questions