Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1: 1. Write a Java code to do the following - => Ask user if they want to setup a 4 digit PIN for

Question 1:

1. Write a Java code to do the following -

=> Ask user if they want to setup a 4 digit PIN for their bank account

=> IF yes then Set a random 4 digit PIN using a method and test if the new pin works

=> Otherwise ask user to enter their old PIN

Use a separate class PIN and declare methods getPin and checkPin in that class for this assignment.

2.Create a default pin = 2021

Check if the user enters either the newly generated pin or the default pin

Show their account balance if either is correct

Implement a counter to count the number of times a user may enter the wrong pin

A user can enter the wrong pin maximum 3 times

Question 2:

Define the following and indicate benefits of each

Normalization

Denormization

Define the conditions for a table to be in

first normal form

second normal form

third normal form

image text in transcribed

Use figure to answer the following questions

a. Identify the indicated dependencies

Partial

Transitive

b. create a database whose tables are at least 2NF

You can either write the table in text format - TABLENAME (KEY(s) (Attribute, Attribute) or visually

c. Create a database whose tables are least 3NF

FIGURE Q6.6 DEPENDENCY DIAGRAM FOR QUESTION 6

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Explain what Behavioral Finance assumes?

Answered: 1 week ago

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago