1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
tino4ka555 [31]
3 years ago
11

Need help writing code from edhesive. Write code to output the ASCII characters that are represented by the numbers from 45 to 8

5, one per line.
Computers and Technology
1 answer:
shtirl [24]3 years ago
7 0

Output the characters that are represented by the numbers from 45 to 85, one per line.

Explanation:

The code shows the output which has a range of characters from 45 to 85

for i in range 45 to 86

print char i

First there is a for loop which is set. This loop has a varaible i which is used to check the condition.

If there is a character present between 45 to 86, then the loop is entered.

The characters between the range of 45 to 85 is then printed.

  • American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices.
  • These include the digits 0 to 9, lowercase letters a to z, uppercase letters A to Z, and punctuation symbols

You might be interested in
How can you use Word in order to edit and print documents ?
AleksandrR [38]

Answer:

in word, you go to the File tab on a document, then click print, or enter the keyboard shortcut: ctrl+p

to edit a downloaded document, open the document, and on the top of the document, click "enable editing"

Explanation:

hope this helps!

4 0
3 years ago
Is Brainly cheating??
Vanyuwa [196]

Answer: What do you mean?

6 0
3 years ago
Read 2 more answers
PLS HELP ASAP ILL GIVE BRAINLKEST THANKS ITS FOR TODAY
ANTONII [103]
Do u have context for the question? Based off of my brain alone, I would eliminate good food as an answer. I’d assume the answer to the second question is code.
8 0
3 years ago
First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).
Mars2501 [29]

Answer:

See explaination

Explanation:

// LetterCount.java

import java.io.File;

import java.io.IOException;

import java.io.PrintWriter;

import java.util.NoSuchElementException;

import java.util.Scanner;

public class LetterCount {

public static void main(String[] args) {

// setting up a Scanner to read from keyboard

Scanner scanner = new Scanner(System.in);

try {

// asking and reading input file name

System.out.print("Enter name of input file: ");

String file = scanner.nextLine();

// reinitializing scanner to read from input file. this will throw

// file not found exception if file is not found.

scanner = new Scanner(new File(file));

// opening a file writer to create and write into output.txt file

PrintWriter writer = new PrintWriter(new File("output.txt"));

// creating a String containing all 26 alphabets

String alphabet = "abcdefghijklmnopqrstuvwxyz";

// creating an array containing 26 integers, all initialized to 0

int counts[] = new int[26];

// looping through the file

while (scanner.hasNext()) {

// reading next line, converting to lower case

String word = scanner.next().toLowerCase();

// looping through each character in current word

for (char c : word.toCharArray()) {

// finding index of c in alphabet

int index = alphabet.indexOf(c);

// if c is an alphabet, the index value will not be -1

if (index != -1) {

// incrementing counter at index position

counts[index]++;

}

}

}

// closing input file

scanner.close();

int largestCount = 0; // to store largest count of a character

String mostCommon = ""; // to store the character(s) that occur the

// most

// looping through counts array, finding the largest value

for (int i = 0; i < counts.length; i++) {

if (counts[i] > largestCount) {

// updating largestCount and mostCommon

largestCount = counts[i];

mostCommon = alphabet.charAt(i) + "";

} else if (counts[i] == largestCount) {

// same largest count, appending to mostCommon string

mostCommon += " " + alphabet.charAt(i);

}

}

// writing results to output file

writer.println("The most common letter(s): " + mostCommon);

writer.println("Count of occurrances: " + largestCount);

// closing file, saving changes, alerting user

writer.close();

System.out

.println("done! please check output.txt file for results.");

} catch (IOException e) {

// will be executed when the input/output file cant be opened or

// found, or if there is an error while reading the file

System.out.println(e.getMessage());

} catch (NoSuchElementException e) {

// will occur when there is no input provided for input file name.

System.out.println("No input!");

}

}

}

8 0
3 years ago
What is your life's meaning??
icang [17]

Answer:

Explanation:

So in the universal perspective, life has no meaning and everything you do. No matter how great or good — will be forgotten or erased forever eventually. In the terms of the natural evolutionary perspective, our meaning is to multiply and survive as long as we can.

5 0
3 years ago
Other questions:
  • A teacher uses the spreadsheet below to determine the average quiz score of each student. The teacher inserts this information i
    11·2 answers
  • Which of these computers was marketed as a computer/game machine?
    15·2 answers
  • How can cultural hearths be described
    5·1 answer
  • Make a program (C++). Sum of a 4 digits number and eliminating last digitsȘ
    13·1 answer
  • An attacker compromises the Washington Post's web server and proceeds to modify the homepage slightly by inserting a 1x1 pixel i
    12·1 answer
  • Do these devices allow you to view photos using the cloud?
    10·1 answer
  • IT professionals ensure servers connected to the network operate properly. (2 points) True False
    6·1 answer
  • HELPPPPPOOP
    11·1 answer
  • Select the four tactics that cyber criminals use for stealing information from the list below.
    12·1 answer
  • Advantages of email over traditional mail​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!