Write a program which asks the user for an integer

Assignment Help JAVA Programming
Reference no: EM132080173

You need help writing this program in java, it has to look exactly like the sample output.

Write a program which asks the user for an integer and then prints the following patterns based on that integer.

Input Validation:

For Pattern 1, the input must be a value between 1 and 999.

For Pattern 2, the input must be a value between 1 and 26.

Requirements:

For Pattern 1: must be able to work with up to three digit numbers. You will want to use printf to get the spacing correct.

For Pattern 2: make note of what is uppercase and what is lowercase.

You must use (for) loops to solve this problem.

Program must be dynamic and work for any of the valid input values. You CANNOT hardcode the output.

HINT: You will need to use nested loops for this one. Each pattern is its own set of nested loops.

Reference no: EM132080173

Questions Cloud

What area of lawn receives? water : A water sprinkler sprays water over a distance of 38 feet while rotating through an angle of 130°.
What are the basic properties that a line can have : ENGINEERING DESIGN - COMPUTER-BASED TECHNOLOGY - INTRODUCTION TO CAD AND AUTOCAD - Teesside University - What are the basic properties that a line can have
Compute and print the values of p : What need to be Implemented The first step for you is to understand the steps involved in the Diffie-Hellman key exchange protocol.
Write a javascript program with the following functions : You need some help on writing a JavaScript program with the following functions Displaythe current date and time in appropriate format.
Write a program which asks the user for an integer : Write a program which asks the user for an integer and then prints the following patterns based on that integer.
Prepare a java code to show a multiplication table : A multiplication table is printed out for a range of positive numbers. The user is prompted to start with a number for example 2.
Relationships that may exists between stakeholders : By using the information above, draw an appropriate ER diagram showing this information, make sure you show suitable relationships that may exists between stake
Display the content of a file by a system call : In "decoding.c", you have a function "decoding" which opens "HW8.bin" for reading and a text file "HW8c.txt" for writing.
Write a program which validates a users password : You need help writing this program in JAVA, this is an introductory java course, so if possible, keep it as basic/simple as possible .

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a tic tac toe program in java

Write a Tic Tac Toe program in java. Game should have player 1 and player 2 and the one who starts with X must play first.

  Explain how a borderlayout manages its display area

Write a Java statement to make the window associated with the object from question 1 visible. Explain how a BorderLayout manages its display area. Explain how a FlowLayout manages its display area

  When is the default constructor not created by java

When is the default constructor not created by Java? Classes in which packages do you not need to import?

  Modify the java application using java netbeans and ide

Modify the Java application using Java NetBeans IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales.

  Write a complete java program that draws a scatterplot

Write a complete Java program that draws a scatterplot by reading in points of data from a file and displaying them. The input data file consists of a pair of integers representing a point on each line of the file; the first integer is the x coord..

  Design a class checkoutsystem

Design a class CheckoutSystem. Each checkout system has a method checkout that accepts the order and a credit cart as arguments and checkouts the items.

  Write an app to test class integerset

Create class IntegerSet. Each IntegerSet object can hold integers in the range 0-100. The set is represented by an array of bools. Array element

  Display the earliest and latest dates that appear in a data

display the earliest and latest dates that appear in a data file, and the number of times that they appear. I have already parsed all of the dates from their original string to their corresponding int values.

  Evaluate an infix expression entered by the user

Spaces between tokens are allowed but not required. The program will repeatedly prompt the user for the value of x, displaying the value of the expression each time. When the user enters the letter q instead of a number, the program terminates.

  What value will be in those pixels after your function runs

If your picture had a pixel color pure red (RGB = 255, 0, 0) and another pure blue (0, 0,255), what value will be in those pixels after your function runs

  Developing prototype applet for web inventory management

As a lead systems developer for iDev3, you have been assigned as a consultant to work with Wrigley Inc (the gum company). Your project consists of developing a prototype applet for web-based inventory management

  Can you find the sum of its elements

The first line contains an integer, , denoting the size of the array. The second line contains space-separated integers representing the array's elements.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd