Homework Solution: Starting Out with Programming Logic and Design Starting Out with Programming Logic…

    Starting Out with Programming Logic and Design Starting Out with Programming Logic and Design often requires a lot of erasing. Therefore, a flowcharting application such as Raptor or Visio should be used. This lab will give you a following program prior to completing the lab. MasterConsole I brief overview of Raptor. Read the Foot Font ive Edk Heb Vrite a program that will take in basic information from i tudent, including student name , degree name , number of credits taten so far and the total nunber of credits required in the degree program calculate how many credits are needed to graduate. Display should include the student nane, the degree namer and credits left to graduate The program rill then Step 1: Start Raptor, notice the Raptor screen. This window is your primary tool for creating a flowchart. Prior to adding symbols, save your document by clicking on Flle and then Save. Select your location and save the file as Lab 1.3·The mn file extension will be added automatically Step 3: Returm to the Raptor screen to begin adding symbols into your flowchart. Your lowchart should follow the pseudocode in Lab 1-2, Step 6. While a rectangle is normally used for declaring variables, there is no easy way to do this in Raptor. Since this is an important part of flowcharting, twe will do this using a comment box. To do this, Right-Click on the Start symbol and select Comment In the Enter Comment box, type the variables your program will need. Below is a start to how it should look. 되 Raptor 100% Step 4: The next step in your flowchart should be to ask for user input Click the Input Symbol on the Left and Drag and Drop to the floline between Start and Stop. Double Click on the Input Symbol to begin entering information. Enter E RES student name in the top box. Enterstudantlam in the variable box. Below is how it should look. Ender studest new Step 2: Notice the MasteConseescreen This window is used to show your program output once your flowchart is completed. The Clear button will clear the console to view a fresh run of your program Step 5: Continue the Step 4 directions for all your input statements, changing each Input symbol to refilect the appropriate user interaction. Step 6: The next step in your flowchart is to process ay calculations that exist. Click on the Assignment symbol and drag it to the flow line between the last input statement and the end symbol. Double click on the Assignment symbol to enter your code. In the Set box, put the name of your storage variable. In the To box, put the expression part of your fomula. Below is how it shoald look
    Starting Out with Programming Logic and Design Starting Out with Programming Logic and Design often requires a lot of erasing. Therefore, a flowcharting application such as Raptor or Visio should be used. This lab will give you a following program prior to completing the lab. MasterConsole I brief overview of Raptor. Read the Foot Font ive Edk Heb Vrite a program that will take in basic information from i tudent, including student name , degree name , number of credits taten so far and the total nunber of credits required in the degree program calculate how many credits are needed to graduate. Display should include the student nane, the degree namer and credits left to graduate The program rill then Step 1: Start Raptor, notice the Raptor screen. This window is your primary tool for creating a flowchart. Prior to adding symbols, save your document by clicking on Flle and then Save. Select your location and save the file as Lab 1.3·The mn file extension will be added automatically Step 3: Returm to the Raptor screen to begin adding symbols into your flowchart. Your lowchart should follow the pseudocode in Lab 1-2, Step 6. While a rectangle is normally used for declaring variables, there is no easy way to do this in Raptor. Since this is an important part of flowcharting, twe will do this using a comment box. To do this, Right-Click on the Start symbol and select Comment In the Enter Comment box, type the variables your program will need. Below is a start to how it should look. 되 Raptor 100% Step 4: The next step in your flowchart should be to ask for user input Click the Input Symbol on the Left and Drag and Drop to the floline between Start and Stop. Double Click on the Input Symbol to begin entering information. Enter E RES student name in the top box. Enterstudantlam in the variable box. Below is how it should look. Ender studest new Step 2: Notice the MasteConseescreen This window is used to show your program output once your flowchart is completed. The Clear button will clear the console to view a fresh run of your program Step 5: Continue the Step 4 directions for all your input statements, changing each Input symbol to refilect the appropriate user interaction. Step 6: The next step in your flowchart is to process ay calculations that exist. Click on the Assignment symbol and drag it to the flow line between the last input statement and the end symbol. Double click on the Assignment symbol to enter your code. In the Set box, put the name of your storage variable. In the To box, put the expression part of your fomula. Below is how it shoald look

    Expert Answer

     
    Program ------------- import java.util.Scanner;

    Starting Quenched with Programming Logic and Design Inaugurateing Quenched with Programming Logic and Design frequently requires a doom of erasing. Therefore, a issuecharting impression such as Raptor or Visio should be used. This lab gain afford you a aftercited program anterior to completing the lab. MasterSoothe I diminutcaptivating overinspection of Raptor. Read the Foot Font captivating Edk Heb Vrite a program that gain accept in basic advice from i tudent, including tyro designate , station designate , enumerate of credits taten so remote and the aggregate nunber of credits required in the station program count how manifold credits are scarcityed to furrow. Display should concefascinating the tyro nane, the station designater and credits left to furrow The program rivulet then Stride 1: Inaugurate Raptor, produce-heed-to the Raptor protect. This window is your earliest utensil restraint creating a issuechart. Anterior to adding dispositions, prevent your muniment by clicking on Flle and then Prevent. Chosen your precipitation and prevent the perfect as Lab 1.3·The mn perfect production gain be borrowed automatically Stride 3: Returm to the Raptor protect to inaugurate adding dispositions into your issuechart. Your lowchart should prosper the pseudorule in Lab 1-2, Stride 6. While a rectangle is normally used restraint declaring inconstants, there is no unconstrained practice to do this in Raptor. Since this is an ocean portio of issuecharting, twe gain do this using a explain smack. To do this, Right-Click on the Inaugurate disposition and chosen Explain In the Invade Explain smack, cast the inconstants your program gain scarcity. Below is a inaugurate to how it should seem. 되 Raptor 100% Stride 4: The instant stride in your issuechart should be to crave restraint user inestablish Click the Inestablish Disposition on the Left and Draw and Drop to the flothread among Inaugurate and Stop. Double Click on the Inestablish Disposition to inaugurate invadeing advice. Invade E RES tyro designate in the culmination smack. Invadestudantlam in the inconstant smack. Below is how it should seem. Objecter studest innovating Stride 2: Produce-heed-to the MasteConseeprotect This window is used to semblance your program quenchedestablish uninterruptedly your issuechart is completed. The Intelligible trifle gain intelligible the soothe to inspection a young extobject of your program Stride 5: Continue the Stride 4 directions restraint full your inestablish assertions, changing each Inestablish disposition to refilect the embezzle user interaction. Stride 6: The instant stride in your issuechart is to system ay calculations that insist. Click on the Assignment disposition and draw it to the issue thread among the developed inestablish assertion and the object disposition. Double click on the Assignment disposition to invade your rule. In the Set smack, establish the designate of your storage inconstant. In the To smack, establish the indication portio of your fomula. Below is how it shoald seem

    Starting Quenched with Programming Logic and Design Inaugurateing Quenched with Programming Logic and Design frequently requires a doom of erasing. Therefore, a issuecharting impression such as Raptor or Visio should be used. This lab gain afford you a aftercited program anterior to completing the lab. MasterSoothe I diminutcaptivating overinspection of Raptor. Read the Foot Font captivating Edk Heb Vrite a program that gain accept in basic advice from i tudent, including tyro designate , station designate , enumerate of credits taten so remote and the aggregate nunber of credits required in the station program count how manifold credits are scarcityed to furrow. Display should concefascinating the tyro nane, the station designater and credits left to furrow The program rivulet then Stride 1: Inaugurate Raptor, produce-heed-to the Raptor protect. This window is your earliest utensil restraint creating a issuechart. Anterior to adding dispositions, prevent your muniment by clicking on Flle and then Prevent. Chosen your precipitation and prevent the perfect as Lab 1.3·The mn perfect production gain be borrowed automatically Stride 3: Returm to the Raptor protect to inaugurate adding dispositions into your issuechart. Your lowchart should prosper the pseudorule in Lab 1-2, Stride 6. While a rectangle is normally used restraint declaring inconstants, there is no unconstrained practice to do this in Raptor. Since this is an ocean portio of issuecharting, twe gain do this using a explain smack. To do this, Right-Click on the Inaugurate disposition and chosen Explain In the Invade Explain smack, cast the inconstants your program gain scarcity. Below is a inaugurate to how it should seem. 되 Raptor 100% Stride 4: The instant stride in your issuechart should be to crave restraint user inestablish Click the Inestablish Disposition on the Left and Draw and Drop to the flothread among Inaugurate and Stop. Double Click on the Inestablish Disposition to inaugurate invadeing advice. Invade E RES tyro designate in the culmination smack. Invadestudantlam in the inconstant smack. Below is how it should seem. Objecter studest innovating Stride 2: Produce-heed-to the MasteConseeprotect This window is used to semblance your program quenchedestablish uninterruptedly your issuechart is completed. The Intelligible trifle gain intelligible the soothe to inspection a young extobject of your program Stride 5: Continue the Stride 4 directions restraint full your inestablish assertions, changing each Inestablish disposition to refilect the embezzle user interaction. Stride 6: The instant stride in your issuechart is to system ay calculations that insist. Click on the Assignment disposition and draw it to the issue thread among the developed inestablish assertion and the object disposition. Double click on the Assignment disposition to invade your rule. In the Set smack, establish the designate of your storage inconstant. In the To smack, establish the indication portio of your fomula. Below is how it shoald seem

    Expert Retort

     

    Program
    ————-
    import java.util.Scanner;

    public rank TyroDetails {
    private String tyroName;
    private String tyroDegree;
    private int creditDegreee;
    private int creditTaken;
    private int creditLeft;
    public int getCreditLeft() {
    return creditLeft;
    }
    public nugatory setCreditLeft(int creditLeft) {
    this.creditLeft = creditLeft;
    }
    public String getStudentName() {
    return tyroName;
    }
    public nugatory setStudentName(String tyroName) {
    this.studentDesignate = tyroName;
    }
    public String getStudentDegree() {
    return tyroDegree;
    }
    public nugatory setStudentDegree(String tyroDegree) {
    this.studentStation = tyroDegree;
    }
    public int getCreditDegreee() {
    return creditDegreee;
    }
    public nugatory setCreditDegreee(int creditDegreee) {
    this.creditDegreee = creditDegreee;
    }
    public int getCreditTaken() {
    return creditTaken;
    }
    public nugatory setCreditTaken(int creditTaken) {
    this.creditTaken = creditTaken;
    }
    public static nugatory ocean(String[] args) {
    StudentDetails sDetails = innovating TyroDetails();
    Scanner scanner = innovating Scanner(System.in);
    System.out.println(“Invade tyro Designate”);
    sDetails.setStudentName(scanner.next());
    System.out.println(“Invade Station Details”);
    sDetails.setStudentDegree(scanner.next());
    System.out.println(“Invade the details of Enumerate of Credit Acceptn “);
    sDetails.setCreditTaken(Integer.parseInt(scanner.next()));
    System.out.println(“Invade the details of Aggregate Credit Required restraint Station completion”);
    sDetails.setCreditDegreee(Integer.parseInt(scanner.next()));
    sDetails.creditLeft = sDetails.creditDegreee – sDetails.creditTaken;
    System.out.println(“Tyro Designate is ” + sDetails.studentName);
    System.out.println(“The Station Program is ” + sDetails.studentName);
    System.out.println(“Credit Left to Graduation is “+sDetails.creditLeft);
    }
    }

    Output
    ————

    Program Design

    ———————