Structured Programming – My Assignment Tutor

College of Engineering SWE 201 – Structured Programming Fall 2021-2022 Dr. Farid Ibrahim Assignment Two Write a java program that prompts the user to enter an odd integer value n. The program, then, should find the smallest odd integer and the smallest even integer that are divisible by n.  Also, make sure that the square root of previously obtained numbers is greater than 150.  You are required to use the appropriate loop that should start from 1 and terminate when both of the numbers are found. The program should then display two messages showing the two numbers. PS: Make sure that the number entered by the user is an odd integer. Below are samples of the program runs for demo purposes only Enter an odd integer: 97 The even number is 22504 The odd number is 22601Enter an odd integer: 188 Enter an odd integer: 25 The even number is 22550 The odd number is 22525 A company has a system in which the customer IDs consists of 6 digits. At the beginning the first 5 digits are assumed d1d2d3d4d5. The sixth digit, d6, is then calculated using the following formula: (∑𝑑𝑖∗2𝑖) % 7  where 1

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published. Required fields are marked *