Computer Science, asked by sham23004, 1 day ago

a ST An NSU student wants to upload his/her photo in NSU RDS. Now create a class named Upload Photo with a method named upload public void upload(int height, int width, int length) Suppose He/she prepared N photos, each has a different dimension consider these scenarios to upload a picture using the upload method. Given Length, Width, and Height as input through method parameter. print appropriate text as output. The below events may occur when a photo uploaded: 1. If both the width and height are less than Length, the photo is rejected. In this case, print "UPLOAD ANOTHER”. 2. If both, width and height, are greater than the length and Height width both equal it is accepted. Print "ACCEPTED". Otherwise, the student is prompted to crop the photo. Print "CROP IT” in this case. Now, Create a class for the main method and take user inputs total photo, length then takes continuous height, width input until you got the accepted message using the upload method. Input: First-line contains L. Second-line contains N, the number of photo Following N lines each contains two integers W and H. Output: Print appropriate text for each pho in a new line. Hint: Here Land N are fixed you have to take once. W and Hare continuous input, Ya have to compare all photos W and H with L using the upload method.N is the ending value of the loop. Sample Input output: Enter Length: 600 Enter Total photos: 10 Enter Height and width of the photo Height: 100 Width: 200 Upload another Height:700 Width:100 Crop IT Height:800 Width:80 Accepte EN​

Answers

Answered by muhammedbilal871
0

Answer:

Convert your first name into bianary and hexadecimal(explain procedure)

Similar questions