{"id":116223,"date":"2023-08-25T08:29:33","date_gmt":"2023-08-25T08:29:33","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=116223"},"modified":"2023-08-25T08:29:34","modified_gmt":"2023-08-25T08:29:34","slug":"it-2249-unit-8-assignment-1-capella-university-well-elaborated","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2023\/08\/25\/it-2249-unit-8-assignment-1-capella-university-well-elaborated\/","title":{"rendered":"IT 2249 Unit 8 Assignment 1- Capella University- Well Elaborated"},"content":{"rendered":"\n<p>Name: Michael Horsman-Best<br>Date: 09\/04\/2018<br>Class: IT 2249<br>Unit: 8<br>1 Insert here a copy of your zip file of all of your NetBeans project files so that it could be unzipped,<br>loaded and run in another NetBeans:<br>Insert here a copy of your *.java source code text that you used here (copy and paste source code<br>here, do not simply insert *.java files):<br>\/*<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To change this license header, choose License Headers in Project Properties.<\/li>\n\n\n\n<li>To change this template file, choose Tools | Templates<\/li>\n\n\n\n<li>and open the template in the editor.<br><em>\/ package u8a1_2dconsoleregisterforcourse; import java.util.Scanner; \/<\/em>*<br>*<\/li>\n\n\n\n<li>@author omora<br><em>\/ public class U8A1_2DConsoleRegisterForCourse { \/<\/em>*<\/li>\n\n\n\n<li>@param args the command line arguments<br>*\/<br>public static void main(String[] args) {<br>\/\/ TODO code application logic here System.out.println(&#8220;Michael Horsman-Best&#8217;s Unit 8 Assignment.&#8221;); Scanner input = new Scanner(System.in); \/\/ courses 2d array hold course code and their credit hours<br>String[][] courses = {<br>{&#8220;IT1006&#8221;, &#8220;IT4782&#8221;, &#8220;IT4789&#8221;, &#8220;IT4079&#8221;, &#8220;IT2230&#8221;, &#8220;IT3345&#8221;, &#8220;IT2249&#8221;},<br>{&#8220;6&#8221;, &#8220;3&#8221;, &#8220;3&#8221;, &#8220;6&#8221;, &#8220;3&#8221;, &#8220;3&#8221;, &#8220;6&#8221;}<br>}; \/\/ validChoices 2d array holds valid number choices (as strings) selected by user<br>This study source was downloaded by 100000829725281 from CourseHero.com on 12-15-2021 09:25:46 GMT -06:00<br>https:\/\/www.coursehero.com\/file\/44609620\/Unit-8-Assignment-1docx\/ \/\/ and their corresponding courses<br>\/\/e.g String[][] choices = { {&#8220;5&#8221;, &#8220;IT2230&#8221;}, {&#8220;1&#8221;, &#8220;IT1006&#8221;}, {&#8220;6&#8221;, &#8220;IT3345&#8221;} };<br>String[][] validChoices = {<br>{&#8220;&#8221;, &#8220;&#8221;},<br>{&#8220;&#8221;, &#8220;&#8221;},<br>{&#8220;&#8221;, &#8220;&#8221;}<br>}; int choice;<br>int totalCredit = 0;<br>String yesOrNo = &#8220;&#8221;; do {<br>choice = getChoice(courses, input); switch (ValidateChoice(choice, validChoices, totalCredit, courses)) {<br>case -1:<br>System.out.println(&#8220;<strong>Invalid<\/strong> &#8211; Your selection of &#8221; +<br>choice + &#8221; is not a recognized course.&#8221;);<br>break;<br>case -2:<br>System.out.println(&#8220;<strong>Invalid<\/strong> &#8211; You have already registerd for this &#8221; +<br>courses[0][choice-1] + &#8221; course.&#8221;);<br>break;<br>case -3:<br>System.out.println(&#8220;<strong>Invalid<\/strong> &#8211; You can not register for more than 9 credit hours.&#8221;);<br>break;<br>case 0:<br>System.out.println(&#8220;Registration Confirmed for course &#8221; +<br>courses[0][choice-1] );<br>totalCredit += Integer.parseInt(courses[1][choice-1]);<br>if (validChoices[0][0].equals(&#8220;&#8221;)) {<br>validChoices[0][0] = Integer.toString(choice);<br>validChoices[0][0] = courses[0][choice-1];<br>} else if (validChoices[1][0].equals(&#8220;&#8221;)) {<br>validChoices[1][0] = Integer.toString(choice);<br>validChoices[1][1] = courses[0][choice-1];<br>} else if (validChoices[2][0].equals(&#8220;&#8221;)) {<br>validChoices[2][0] = Integer.toString(choice);<br>validChoices[2][1] = courses[0][choice-1];<br>}<br>break;<br>}<br>WriteCurrentRegistration(validChoices, totalCredit);<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Name: Michael Horsman-BestDate: 09\/04\/2018Class: IT 2249Unit: 81 Insert here a copy of your zip file of all of your NetBeans project files so that it could be unzipped,loaded and run in another NetBeans:Insert here a copy of your *.java source code text that you used here (copy and paste source codehere, do not simply insert [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-116223","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/116223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=116223"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/116223\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=116223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=116223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=116223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}