1. Write a program that uses a for loop to display a line of * for a number entered by the user. For example, if the user were to enter the number 5, then your program should display the following output: 2. Write a program that uses a for loop to print all of the letters between 'A' and 'Z'. Remember that the char type represents a single UTF-16 character and can be used as the variable in a for loop.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
100%

This is a java assignment, I have attached the question in the image file

Task 1
1. Write a program that uses a for loop to display a line of * for a number entered by the user. For
example, if the user were to enter the number 5, then your program should display the following
output:
2. Write a program that uses a for loop to print all of the letters between 'A' and 'Z'. Remember that
the char type represents a single UTF-16 character and can be used as the variable in a for loop.
Transcribed Image Text:Task 1 1. Write a program that uses a for loop to display a line of * for a number entered by the user. For example, if the user were to enter the number 5, then your program should display the following output: 2. Write a program that uses a for loop to print all of the letters between 'A' and 'Z'. Remember that the char type represents a single UTF-16 character and can be used as the variable in a for loop.
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT