COOKIES.docx - Problem Statement Flowchart Pseudocode Function Main Declare Integer cookiesEaten totalCalories Output\"Enter the number of cookies eaten

COOKIES.docx - Problem Statement Flowchart Pseudocode...

This preview shows page 1 - 3 out of 3 pages.

Problem Statement Flowchart Pseudocode Function Main Declare Integer cookiesEaten, totalCalories Output "Enter the number of cookies eaten:" Input cookiesEaten Assign TotalCalories = cookiesEaten Output "total calories consumed:" End Source code import java.util.*;
import java.lang.Math; public class JavaApplication { private static Scanner input = new Scanner(System.in); public static void main(String[] args) { int cookiesEaten, totalCalories; System.out.println("Enter the number of cookies eaten:"); cookiesEaten = input.nextInt();

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture