
// This code contains ERRORS!
// It adds two numbers entered by the user.
int1 num1, num2;
String input;
char again;
Scanner keyboard = new Scanner(System.in);
while (again == ‘y’ || again == ‘Y’)
System.out.print(“Enter a number; ”);
num1 = keyboard.nextInt();
System.out.print(“Enter another number: ”;
num2 = keyboard.nextInt();
System.out.println(“Their sum is ”+ (num1 + num2));
System.out.println(“Do you want to do this again? ”);
keyboard.nextLine(); // Consume remaining newline
input = keyboard.nextLine();
again = input.charAtá0ñ;

Trending nowThis is a popular solution!

Chapter 4 Solutions
Starting Out With Java: From Control Structures Through Objects, Student Value Edition (7th Edition)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (8th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Concepts Of Programming Languages
Java: An Introduction to Problem Solving and Programming (8th Edition)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- A network administrator at Trendy Distributors identifies sensitive files being transferred from a Local Area Network (LAN) workstation to an unauthorised outside IP address in a foreign country. An investigation determines that the firewall has not been altered, and the anti-virus on the workstation is up-to-date. What could be the MOST likely explanation for this?arrow_forwardA network administrator at Trendy Distributors identifies sensitive files being transferred from a Local Area Network (LAN) workstation to an unauthorised outside IP address in a foreign country. An investigation determines that the firewall has not been altered, and the anti-virus on the workstation is up-to-date. What could be the MOST likely explanation for this?arrow_forwardThe software testers who perform an audit are given access to the Tech Distributors’ facility and network. The testers will not be given access to the details of the custom-developed software the customer uses. However, the testers will also have access to the source code for several open-source applications and networking equipment used at the facility. These items will be within the scope of the audit. Establish and describe the appropriate software testing methods for this audit.arrow_forward
- The security manager at TwoUp Technologies’ primary role is implementing cybersecurity functions and strategising how IT services should be governed to fulfil business needs. The IT and cybersecurity framework can shape company policies by providing procedures, activities, checklists, and technologies that should be implemented. Describe the four categories governing an organisation’s system or data asset to meet the CIA triad and non-repudiation properties.arrow_forwardA supply management director of Tech Distributors is sending a payment confirmation email to one of the organisation’s regional managers. The organisation experienced a security breach when the company network was attacked by one of the employees who had plugged in a virus-infected external storage device. The company experienced a data breach of confidential customer and supplier financial details. To improve communication security and prevent breaches in the future, all communications with regional offices must be encrypted. The director has sent the encrypted email message below to a regional manager. Delineate cryptography and use the ROT13 substitution cipher to decrypt the message. Cnlzrag unf orra rssrpgrqarrow_forwardA supply management director of Tech Distributors is sending a payment confirmation email to one of the organisation’s regional managers. The organisation experienced a security breach when the company network was attacked by one of the employees who had plugged in a virus-infected external storage device. The company experienced a data breach of confidential customer and supplier financial details. To improve communication security and prevent breaches in the future, all communications with regional offices must be encrypted. The director has sent the encrypted email message below to a regional manager. Delineate cryptography and use the ROT13 substitution cipher to decrypt the message. Cnlzrag unf orra rssrpgrqarrow_forward
- The security manager at TwoUp Technologies’ primary role is implementing cybersecurity functions and strategising how IT services should be governed to fulfil business needs. The IT and cybersecurity framework can shape company policies by providing procedures, activities, checklists, and technologies that should be implemented. Describe the four categories governing an organisation’s system or data asset to meet the CIA triad and non-repudiation properties.arrow_forwardTwoUp Technologies employees have been using simple, easy-to-remember passwords, opening the company software, and making the network vulnerable to attacks. The company has experienced network attacks and data breaches in the past year. To implement security control strategies, the security manager must identify security risks within the organisation. The security manager explained to management the impact of this vulnerability and recommended eliminating unsecured networks. Expound on the different local and remote methods that attackers can use to gain access to the company network. Give an example of each path.arrow_forwardModern cybersecurity threats have become sophisticated, making the ability to describe and analyse threat behaviour necessary. Describe how you would analyse cybersecurity threats in an organisation.arrow_forward
- Go through Chapter 1 of Ralph Stair's Fundamentals of Information Systems, 9th edition. Explain the benefits and drawbacks of doing a job search online in Chapter 1.arrow_forwardConsider the following information about the getTax method The method is a static method in the PurchaseManager class The method has one double parameter The method retums a double equal to its parameter times 0.08 The following code segment appears in another s PurchaseManager class double tax-ex(100.0); System.out.println(); Auto saved at 16:24:12 2 Mark for Review What if anything is printed as a result of executing the code segment O 8.0 108.0 Nothing is printed because the method call should be PurchaseManager.getTax(100.0 Nothing is printed because the retum value from getTax cannot be assigned to thearrow_forward9 Mark for Review ARC Consider the following method. public void doSomething() { } System.out.println("Something has been done"); Each of the following statements appears in a method in the same class as doSomething. Which of the following statements are valid uses of the method doSomething? I. doSomething(); II. III. B String output = doSomething(); System.out.println(doSomething()); I only I and II only I and III only I, II, and IIIarrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT





