I might join I’m not sure tho is there gonna be a lot of ppl?
Assuming Victoria is using Adobe
Photoshop to create her brochure, below are the steps she is required to
follow.
She should first open the image on
Photoshop, click on the image option and select duplicate just in case the
resized image is not what she wants.
Still on the image option, she
should select Image size. A screen will pop up at this point, indicating the
image’s current size. For the purposes of image resizing, Victoria should
select Pixel dimensions category.
She should be able to type her preferred
dimensions for both the width and height. She should make sure ‘Constrain
Proportions’ is unchecked to be able to type in separate values.
If she decides to use the photo editing
program, she can simply click on the image, and if resize handles appear around
it, she can click and drag those to the desired size.
Press and hold down the "Fn" button while pressing the "Home Prt Sc" button above the numeric keypad to capture the entire screen. Make a screenshot of the active window only by holding down the "Fn" and Alt" keys while pressing "Home Prt Sc." 2. Press the "Start" button, and type "Paint" into the search box.
Answer:
import java.util.Scanner;
class Main {
public static int calcSeries(int n) {
int sum = 0;
for(int i=10; i>=n; i--) {
sum += i;
}
return sum;
}
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int n = 0;
do {
System.out.print("Enter n: ");
n = reader.nextInt();
if (n >= 10) {
System.out.println("Please enter a value lower than 10.");
}
} while (n >= 10);
reader.close();
System.out.printf("sum: %d\n", calcSeries(n));
}
}