CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Instructions AutoSave Off H Page 1 of 6 1180 words References 1. 2. 3. 4. 5. View Start NetBeans. Search (Alt+Q) Sign In 3. Calculate a factorial 4. Exit the program Create a new project called Lab5 with a main class called YournameLab5 with your name. Enable Editing Write output statements that display the following menu of options: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function Write an input statement that reads an integer from the user representing the option the user chose and store it in a varialbe. Write a switch statement that uses this variable as a controlling expression and has cases for options 1-4 along with a default case. For the cases for 1-3, display a string indicating the user's choice and use a break statement to exit the switch statement. For case 4, display a thank you message with your name and use System.exit to exit the program. For the default case, display a message indicating the user's choice was invalid. 6. Run your program to see if it works. Here are some examples of that the output should look like: H W Focus Terrance BA F Share Comments 9:18 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation Page 2 of 6 1180 words References 7. Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Search (Alt+Q) Thank you for using Edith Clarke's calculator! Sample output 3: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 5 Invalid Choice Put the code to display the menu, read the user's choice, and the switch statement inside the body of a do-while loop. The loop should continue as long as the user did not choose 4. 8. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 0 Invalid Choice Enable Editing Choose one of the following options: H a W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References 9. Review View Search (Alt+Q) Sign In 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 2 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Apply a function Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Thank you for using Edith Clarke's calculator! Replace the output statement in case 1 with code that does the following: (a) Prompt the user to enter an expression of the form NUM OP NUM. (b) Read an int representing the first number, a String representing the operation, and an int representing the second number. (c) Use the charAt method of the String class to extract the character as position 0 in the string and store it in a variable of type char. (d) Use a switch statement with the char variable as the controlling expression to determine the operator the user entered. (e) If the operator is one of +, -, *, /, %, perform the operation on the numbers the user entered and display the result. (f) For the default case, display an error indicating the user entered an unknown operator. 10. Run your program to see if it works. Here is an example of what the output should look like: HH W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review View Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References Search (Alt+Q) 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Sign In 10. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Enter an expression of the form NUM OP NUM: 7 ^ 2 Unknown operator: ^ Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 H a W Focus Terrance BA F Share Comments 9:22 PM 2/22/2022 X x 100% CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation AutoSave Off H Page 4 of 6 1180 words References Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 1 Search (Alt+Q) Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Enable Editing Thank you for using Edith Clarke's calculator 11. Replace the output statement in case 2 with code that does the following: (a) Prompt the user to enter an expression of the form FUNC ARG. (b) Read a String representing the function name, and a double representing the argument. (c) Use a switch statement with the String variable as the controlling expression to determine the function the user entered. (d) If the function is one of log, In, or sqrt apply the function to the argument using the Math.log10, Math.log, or Math.sqrt methods respectively, and display the result. (e) For the default case, display an error indicating the user entered an unknown function. 12. Run your program to see if it works. Here is an example of what the output should look like: H a W Terrance Focus BA F Share Comments 9:23 PM 2/22/2022 X x 100% AutoSave Off File Home Cut Copy Format Painter Paste Insert Draw Design Page 5 of 6 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC E Layout References A A Aa A A Calibri (Headings) 18 B I Uab xx A Mailings Review a v View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEN M Search (Alt+Q) Help y 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 Enter a number: 4 Result: 24 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 13. Replace the output statement in case 3 with code that does the following: (a) Prompt the user to enter a number. (b) Read an int. (c) Create a variable to store the result and initialize it to 1. (d) Use a while loop to multiply the result by every number between 1 and the number the user entered. (e) Display the result to the user. 14. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation Aa BbCcD AaBbCcD AaBbCcD AaBbCcD AaBbCcD 1 Author 1 Date Bibliogr... 1 Body Text 1 Compact H Styles a W Terrance AaBbCcD AaBbCcD First Par... 1 Normal Focus BA 5 11 Share O Find Replace Select Editing Comments Dictate Voice 9:25 PM 2/22/2022 100% AutoSave Off File Home Cut Copy Format Painter Paste Page 5 of 6 Insert Draw Design 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC Layout References Calibri (Headings) 18 A A Aa A B I Uab xx A A E Mailings Review View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEL Search (Alt+Q) Help A Enter a number: -4 Result: 1 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 AaBb CcD 1 Author H AaBbCcD AaBb CcD AaBbCcD Bibliogr... Body Text 1 Compact Thank you for using Nicholas Coleman's calculator 15. Run your program again to make sure it works when each of the options is chosen. 16. Make sure your code is indented properly and you have CSCI 1011 Lab 5, your name, and a brief description of your program in the Javadoc comments before the class declaration. Styles 17. Upload the file YournameLab5.java to the drop box folder labeled Lab Assignment 5. a W AaBb CcD 1 Date AaBbCcD First Par... Terrance AaBb CcD Normal Focus BA 11 Share O Find Replace Select 5 Editing Comments Dictate Voice 9:25 PM 2/22/2022 X 100% CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Instructions AutoSave Off H Page 1 of 6 1180 words References 1. 2. 3. 4. 5. View Start NetBeans. Search (Alt+Q) Sign In 3. Calculate a factorial 4. Exit the program Create a new project called Lab5 with a main class called YournameLab5 with your name. Enable Editing Write output statements that display the following menu of options: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function Write an input statement that reads an integer from the user representing the option the user chose and store it in a varialbe. Write a switch statement that uses this variable as a controlling expression and has cases for options 1-4 along with a default case. For the cases for 1-3, display a string indicating the user's choice and use a break statement to exit the switch statement. For case 4, display a thank you message with your name and use System.exit to exit the program. For the default case, display a message indicating the user's choice was invalid. 6. Run your program to see if it works. Here are some examples of that the output should look like: H W Focus Terrance BA F Share Comments 9:18 PM 2/22/2022 X X 100% CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Instructions AutoSave Off H Page 1 of 6 1180 words References 1. 2. 3. 4. 5. View Start NetBeans. Search (Alt+Q) Sign In 3. Calculate a factorial 4. Exit the program Create a new project called Lab5 with a main class called YournameLab5 with your name. Enable Editing Write output statements that display the following menu of options: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function Write an input statement that reads an integer from the user representing the option the user chose and store it in a varialbe. Write a switch statement that uses this variable as a controlling expression and has cases for options 1-4 along with a default case. For the cases for 1-3, display a string indicating the user's choice and use a break statement to exit the switch statement. For case 4, display a thank you message with your name and use System.exit to exit the program. For the default case, display a message indicating the user's choice was invalid. 6. Run your program to see if it works. Here are some examples of that the output should look like: H W Focus Terrance BA F Share Comments 9:18 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation Page 2 of 6 1180 words References 7. Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Search (Alt+Q) Thank you for using Edith Clarke's calculator! Sample output 3: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 5 Invalid Choice Put the code to display the menu, read the user's choice, and the switch statement inside the body of a do-while loop. The loop should continue as long as the user did not choose 4. 8. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 0 Invalid Choice Enable Editing Choose one of the following options: H a W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation Page 2 of 6 1180 words References 7. Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Search (Alt+Q) Thank you for using Edith Clarke's calculator! Sample output 3: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 5 Invalid Choice Put the code to display the menu, read the user's choice, and the switch statement inside the body of a do-while loop. The loop should continue as long as the user did not choose 4. 8. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 0 Invalid Choice Enable Editing Choose one of the following options: H a W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References 9. Review View Search (Alt+Q) Sign In 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 2 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Apply a function Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Thank you for using Edith Clarke's calculator! Replace the output statement in case 1 with code that does the following: (a) Prompt the user to enter an expression of the form NUM OP NUM. (b) Read an int representing the first number, a String representing the operation, and an int representing the second number. (c) Use the charAt method of the String class to extract the character as position 0 in the string and store it in a variable of type char. (d) Use a switch statement with the char variable as the controlling expression to determine the operator the user entered. (e) If the operator is one of +, -, *, /, %, perform the operation on the numbers the user entered and display the result. (f) For the default case, display an error indicating the user entered an unknown operator. 10. Run your program to see if it works. Here is an example of what the output should look like: HH W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References 9. Review View Search (Alt+Q) Sign In 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 2 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Apply a function Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Thank you for using Edith Clarke's calculator! Replace the output statement in case 1 with code that does the following: (a) Prompt the user to enter an expression of the form NUM OP NUM. (b) Read an int representing the first number, a String representing the operation, and an int representing the second number. (c) Use the charAt method of the String class to extract the character as position 0 in the string and store it in a variable of type char. (d) Use a switch statement with the char variable as the controlling expression to determine the operator the user entered. (e) If the operator is one of +, -, *, /, %, perform the operation on the numbers the user entered and display the result. (f) For the default case, display an error indicating the user entered an unknown operator. 10. Run your program to see if it works. Here is an example of what the output should look like: HH W Focus Terrance BA F Share ta Comments 9:21 PM 2/22/2022 X X 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review View Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References Search (Alt+Q) 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Sign In 10. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Enter an expression of the form NUM OP NUM: 7 ^ 2 Unknown operator: ^ Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 H a W Focus Terrance BA F Share Comments 9:22 PM 2/22/2022 X x 100% AutoSave ( Off H CSCI 1010 Lab Assignment 5- Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Review View Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Page 3 of 6 1180 words References Search (Alt+Q) 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Sign In 10. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function. 3. Calculate a factorial 4. Exit the program 1 Enter an expression of the form NUM OP NUM: 7 ^ 2 Unknown operator: ^ Choose one of the following options: 1. Perform an arithmetic operation Enable Editing Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 H a W Focus Terrance BA F Share Comments 9:22 PM 2/22/2022 X x 100% CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation AutoSave Off H Page 4 of 6 1180 words References Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 1 Search (Alt+Q) Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Enable Editing Thank you for using Edith Clarke's calculator 11. Replace the output statement in case 2 with code that does the following: (a) Prompt the user to enter an expression of the form FUNC ARG. (b) Read a String representing the function name, and a double representing the argument. (c) Use a switch statement with the String variable as the controlling expression to determine the function the user entered. (d) If the function is one of log, In, or sqrt apply the function to the argument using the Math.log10, Math.log, or Math.sqrt methods respectively, and display the result. (e) For the default case, display an error indicating the user entered an unknown function. 12. Run your program to see if it works. Here is an example of what the output should look like: H a W Terrance Focus BA F Share Comments 9:23 PM 2/22/2022 X x 100% CSCI 1010 Lab Assignment 5 - Protected View Saved to this PC File Home Insert Draw Design Layout Mailings Help PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. Sign In Choose one of the following options: 1. Perform an arithmetic operation AutoSave Off H Page 4 of 6 1180 words References Review View 2. Apply a function 3. Calculate a factorial 4. Exit the program 1 Search (Alt+Q) Enter an expression of the form NUM OP NUM: 8 / 2 Result: 4 Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 Enable Editing Thank you for using Edith Clarke's calculator 11. Replace the output statement in case 2 with code that does the following: (a) Prompt the user to enter an expression of the form FUNC ARG. (b) Read a String representing the function name, and a double representing the argument. (c) Use a switch statement with the String variable as the controlling expression to determine the function the user entered. (d) If the function is one of log, In, or sqrt apply the function to the argument using the Math.log10, Math.log, or Math.sqrt methods respectively, and display the result. (e) For the default case, display an error indicating the user entered an unknown function. 12. Run your program to see if it works. Here is an example of what the output should look like: H a W Terrance Focus BA F Share Comments 9:23 PM 2/22/2022 X x 100% AutoSave Off File Home Cut Copy Format Painter Paste Insert Draw Design Page 5 of 6 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC E Layout References A A Aa A A Calibri (Headings) 18 B I Uab xx A Mailings Review a v View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEN M Search (Alt+Q) Help y 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 Enter a number: 4 Result: 24 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 13. Replace the output statement in case 3 with code that does the following: (a) Prompt the user to enter a number. (b) Read an int. (c) Create a variable to store the result and initialize it to 1. (d) Use a while loop to multiply the result by every number between 1 and the number the user entered. (e) Display the result to the user. 14. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation Aa BbCcD AaBbCcD AaBbCcD AaBbCcD AaBbCcD 1 Author 1 Date Bibliogr... 1 Body Text 1 Compact H Styles a W Terrance AaBbCcD AaBbCcD First Par... 1 Normal Focus BA 5 11 Share O Find Replace Select Editing Comments Dictate Voice 9:25 PM 2/22/2022 100% AutoSave Off File Home Cut Copy Format Painter Paste Insert Draw Design Page 5 of 6 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC E Layout References A A Aa A A Calibri (Headings) 18 B I Uab xx A Mailings Review a v View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEN M Search (Alt+Q) Help y 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 Enter a number: 4 Result: 24 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 13. Replace the output statement in case 3 with code that does the following: (a) Prompt the user to enter a number. (b) Read an int. (c) Create a variable to store the result and initialize it to 1. (d) Use a while loop to multiply the result by every number between 1 and the number the user entered. (e) Display the result to the user. 14. Run your program to see if it works. Here is an example of what the output should look like: Choose one of the following options: 1. Perform an arithmetic operation Aa BbCcD AaBbCcD AaBbCcD AaBbCcD AaBbCcD 1 Author 1 Date Bibliogr... 1 Body Text 1 Compact H Styles a W Terrance AaBbCcD AaBbCcD First Par... 1 Normal Focus BA 5 11 Share O Find Replace Select Editing Comments Dictate Voice 9:25 PM 2/22/2022 100% AutoSave Off File Home Cut Copy Format Painter Paste Page 5 of 6 Insert Draw Design 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC Layout References Calibri (Headings) 18 A A Aa A B I Uab xx A A E Mailings Review View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEL Search (Alt+Q) Help A Enter a number: -4 Result: 1 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 AaBb CcD 1 Author H AaBbCcD AaBb CcD AaBbCcD Bibliogr... Body Text 1 Compact Thank you for using Nicholas Coleman's calculator 15. Run your program again to make sure it works when each of the options is chosen. 16. Make sure your code is indented properly and you have CSCI 1011 Lab 5, your name, and a brief description of your program in the Javadoc comments before the class declaration. Styles 17. Upload the file YournameLab5.java to the drop box folder labeled Lab Assignment 5. a W AaBb CcD 1 Date AaBbCcD First Par... Terrance AaBb CcD Normal Focus BA 11 Share O Find Replace Select 5 Editing Comments Dictate Voice 9:25 PM 2/22/2022 X 100% AutoSave Off File Home Cut Copy Format Painter Paste Page 5 of 6 Insert Draw Design 1180 words CSCI 1010 Lab Assignment 5. Saved to this PC Layout References Calibri (Headings) 18 A A Aa A B I Uab xx A A E Mailings Review View Clipboard Font 5 Paragraph (i) SIGN IN TO OFFICE It looks like your stored credentials are out of date. Please sign in as so we can verify your subscription. EEL Search (Alt+Q) Help A Enter a number: -4 Result: 1 2. Apply a function 3. Calculate a factorial 4. Exit the program 3 AaBb CcDd Abstract Sign In Choose one of the following options: 1. Perform an arithmetic operation 2. Apply a function 3. Calculate a factorial 4. Exit the program 4 AaBb CcD 1 Author H AaBbCcD AaBb CcD AaBbCcD Bibliogr... Body Text 1 Compact Thank you for using Nicholas Coleman's calculator 15. Run your program again to make sure it works when each of the options is chosen. 16. Make sure your code is indented properly and you have CSCI 1011 Lab 5, your name, and a brief description of your program in the Javadoc comments before the class declaration. Styles 17. Upload the file YournameLab5.java to the drop box folder labeled Lab Assignment 5. a W AaBb CcD 1 Date AaBbCcD First Par... Terrance AaBb CcD Normal Focus BA 11 Share O Find Replace Select 5 Editing Comments Dictate Voice 9:25 PM 2/22/2022 X 100%
Expert Answer:
Answer rating: 100% (QA)
Below is the code that solves the above problem The public class is named Main According to the problem statement make sure to change the name of the ... View the full answer
Related Book For
Contemporary business 2012 update
ISBN: 978-1118010303
14th edition
Authors: Louis E. Boone, ? David L. Kurtz
Posted Date:
Students also viewed these programming questions
-
Historically, investment spending has experienced more extreme upward and downward swings than consumer spending. Why do you think this is so?
-
Sunlight reaching the Earth's atmosphere has an intensity of about 1300 W/m2. Estimate how many photons per square meter per second this represents. Take the average wavelength to be 550 nm.
-
For the following exercises, decompose into partial fractions. -x2 + 36x + 70 125 - 3
-
Explain several implications of IFRS on financial reporting by health care organizations.
-
The Fashion Rack has a monthly accounting period. The firms chart of accounts is shown below and on the next page. The journals used to record transactions are the sales journal, purchases journal,...
-
Calculate the following for a 3 ft 4 ft window with the label to the right. The summer design conditions for peak cooling load are 70 and 60% RH inside; 90 and 90% outside; and a peak direct solar...
-
The value of the double integral D = {0x1, 0 y 2e*} and f(x, y) = 7 is: f(x, y) dA over the domain A) e-1 C) 14(e-1) B) e-1 D) 14(e-1)
-
A client is planning to invest $55 thousand at the end of this year into an investment account. He tells you that he plans to retire in 35 years, and expects to have 490 thousand in that account at...
-
A project requires an initial investment of $8 million, and is anticipated to generate a single cash flow of $15 million in 2 years. What is the internal rate of return on the project? Enter answer...
-
CMS Corporation's balance sheet as of today is as follows: Long-term debt (bonds, at par) Preferred stock Common stock ($10 par) Retained earnings Total debt and equity $10,000,000 1,700,000...
-
A machinery upgrade project will cost $13 million, and produce cost savings of $4 million in perpetuity. What is the project NPV if the required rate of return is 10% ? Enter answer in millions, to...
-
Q1. How would you characterize AHP's operating strategy a) What are the implications for AHP's basic business risk? b) What are the implications for AHP's financial strategy? Q2. What capital...
-
Analyse alpha-helices in proteins. What is the identity of the residues that are located at the amino (N) and carboxy (C) termini of the helical protein? ASN and SER O TYR and SER ASN and PHE O GLY...
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
-
1. Visit the MICROS Systems Web site to learn more about its products for the global market. In what ways do you think the company can increase sales in Africa, Asia, and Latin America? How might the...
-
1. Do you think marketers can reach teens with specially tailored promotional campaigns for such goods and services as video games, smartphone apps, concert tickets, and so on? Why or why not? 2. How...
-
1. How do Maersk and Cargoshell carry out their responsibilities to society? 2. Many of the goods you buy and use are imported from overseas and sold more cheaply than if they were made in the United...
-
Draw a cash flow diagram of any investment that exhibits both of the following properties: 1. The investment has a 4-year life. 2. The investment has a 10 percent/year internal rate of return.
-
What is the internal rate of return of the following cash flow diagram? a. 20 percent b. 18.2 percent c. 17.5 percent d. 15 percent $30 $31 0 1 2 3 $30 $15
-
Quilts R Us (QRU) is considering investing in a new patterning attachment with the cash flow profile shown in the table below. QRU's MARR is 13.5 percent/year. a. What is the internal rate of return...
Study smarter with the SolutionInn App