2224 Koodo 61 D2L Brights pace Lu content Assessments commun

22:24 Koodo 61% D2L Brights pace Lu content Assessments. communicaton Resources Entity-Relationship Diagrams (ERD): For each of the following, create an ERD, complete with entities, attributes, keys, relationships, types and cardinalities. 1. An aerospace company has several teams who work on one or more Teams often use certain kinds ofequipment on a particular project. Attributes of TEAM include Teamld (identifier) TeamName, TeamColour, and DateFormed. Attributes of EQUIPMENTinclude SerialNo and Cost. As well, the company wishes to record AssignDate-the date that a piece of equipment was assigned to a particular Team for a particular Project ATeam must be assigned to at least one project and have one piece ofequipment assigned.Agiven piece of equipment need not be assigned,and a given project need not be assigned either a team or an equipment item. 2. Simple Banking, a. Think about a bank account. Construct the entity for one, listing likely attributes, including the primary key. b, Think about a bank customer, Construct an entity for one, listing likely attributes, including name, address, date of birth and age, and contact phone numbers. c. A bank customer can have multiple bank accounts. In addition, bank accounts can belong to multiple customers. What is therelationship type and cardinality? Can a bank account exist without an owner? Can not have a bank account? der Renect in eportfolio Download 22, 2017 10.21 PM

Solution

package inventory2;

import java.util.Scanner;

    public class RunApp

{

        public static void main(String[] args)

{

        Scanner input = new Scanner( System.in );

        Items theItem = new Items();

        int number;

        String Name = \"\";

    System.out.print(\"How many items are to be put into inventory count?: \");

    number = input.nextInt();

    input.nextLine();

    Items[]inv = new Items[number];

     for(int count = 0; count < inv.length; ++count)

            {

                    System.out.print(\"\ What is item \" +(count +1) + \"\'s name?: \");

                            Name = input.nextLine();

                            theItem.setName(Name);

                    System.out.print(\"Enter \" + Name + \"\'s product number: \");

                            double pNumber = input.nextDouble();

                            theItem.setpNumber(pNumber);

                    System.out.print(\"How many \" + Name + \"s are there in inventory?: \");

                            double Units = input.nextDouble();

                            theItem.setUnits(Units);

                    System.out.print(Name + \"\'s cost: \");

                            double Price = input.nextDouble();

                            theItem.setPrice (Price);

                    inv[count] = new Items(Name, Price, Units, pNumber);

                    input.nextLine();

                        System.out.print(\"\ Product Name:     \" + theItem.getName());

                        System.out.print(\"\ Product Number:     \" + theItem.getpNumber());

                        System.out.print(\"\ Amount of Units in Stock:     \" + theItem.getUnits());

                        System.out.print(\"\ Price per Unit:   \" + theItem.getPrice() + \"\ \ \");

                        System.out.printf(\"\ Total cost for %s in stock: $%.2f\", theItem.getName(), theItem.calculateTotalPrice());

                    System.out.printf(\"Total Cost for all items entered: $%.2f\", theItem.calculateTotalPrice());    //i need to prompt for output to show total price for all items in array

            }

    }

}

 22:24 Koodo 61% D2L Brights pace Lu content Assessments. communicaton Resources Entity-Relationship Diagrams (ERD): For each of the following, create an ERD, c
 22:24 Koodo 61% D2L Brights pace Lu content Assessments. communicaton Resources Entity-Relationship Diagrams (ERD): For each of the following, create an ERD, c

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site