
In Java
Write a program that prints the 128-character ASCII table. It should print the table
in eight tab-separated columns. The first column contains a "Dec" heading (for
decimal number) with the numbers 0 through 31 below it. The second column
contains the ASCII characters associated with the numbers 0 through 31. The next
columns contain the subsequent numbers and associated ASCII characters. See the
below sample output for details. Be aware that that output was produced by a
program running in a console window in a Windows environment. If you run
your program in a different environment, the first 32 characters and the last
character will probably be different from what’s shown below.
Note that some characters display in a non-standard manner. For example, the
number 7 corresponds to a bell sound. You can’t see a sound, but you can see the
vacant spot for 7’s character in the below table. The number 8 corresponds to the
backspace character. You can’t see a backspace, but you can see how the number
8’s row is shifted left in the below table. That’s due to the backspace character
backspacing over one of the tab characters.
Sample output:
Dec Dec Dec Dec
--- --- --- ---
0 32 64 @ 96 `
1 ☺ 33 ! 65 A 97 a
2 ☻ 34 " 66 B 98 b
3 ♥ 35 # 67 C 99 c
4 ♦ 36 $ 68 D 100 d
5 ♣ 37 % 69 E 101 e
6 ♠ 38 & 70 F 102 f
7 39 ' 71 G 103 g
8 40 ( 72 H 104 h
9 41 ) 73 I 105 i
10
42 * 74 J 106 j
11 ♂ 43 + 75 K 107 k
12 ♀ 44 , 76 L 108 l
45 - 77 M 109 m
14 ♫ 46 . 78 N 110 n
15 ☼ 47 / 79 O 111 o
16 ► 48 0 80 P 112 p
17 ◄ 49 1 81 Q 113 q
18 ↕ 50 2 82 R 114 r
19 ‼ 51 3 83 S 115 s
20 ¶ 52 4 84 T 116 t
21 § 53 5 85 U 117 u
22 ▬ 54 6 86 V 118 v
23 ↨ 55 7 87 W 119 w
24 ↑ 56 8 88 X 120 x
25 ↓ 57 9 89 Y 121 y
26 → 58 : 90 Z 122 z
27 ← 59 ; 91 [ 123 {
28 ∟ 60 < 92 \ 124 |
29 ↔ 61 = 93 ] 125 }
30 ▲ 62 > 94 ^ 126 ~
31 ▼ 63 ? 95 _ 127 ⌂

Step by stepSolved in 3 steps with 1 images

- The data table is off by its numbers, help me fix pleasearrow_forwardPls help ASAP.arrow_forwardString replacement is read from input. Then, sentence is read from input. If replacement is in sentence, then: Output 'Located at index: ' followed by the index of the last occurrence. Create a string from sentence with the first two occurrences of replacement replaced by '5' and output sentence on a newline.arrow_forward
- Q4: Show how to generate a codeword for the dataword “10011010" if CRC is used for coding with the divisor "1101".arrow_forwardInsert these values 8, 35 and 99 (in this order) in the given BST. Show the final BST after inserting those three items. Draw the new BST with the new items added. / 30 64 1 75 / \/ \ 10 40 70 80 // \ \ 38 68 73 90 Answer:arrow_forwardAdd remain code and complete. number is a number whose sum total of the factorials of each digit is equal to thenumber itself. The following are some examples of Krishnamurthy numbers: "145" is a Krishnamurthy Number because,1! + 4! + 5! = 1 + 24 + 120 = 145 "40585" is also a Krishnamurthy Number.4! + 0! + 5! + 8! + 5! = 40585 "357" or "25965" is NOT a Krishnamurthy Number3! + 5! + 7! = 6 + 120 + 5040 != 357 The following function will check if a number is a Krishnamurthy Number or not and return aboolean value.""" def find_factorial(n): """ Calculates the factorial of a given number n """ fact = 1 while n != 0: fact *= n n -= 1 return fact def krishnamurthy_number(n): if n == 0: return False sum_of_digits = 0 # will hold sum of FACTORIAL of digits temp = n.arrow_forward
- The top three most popular male names of 2017 are Oliver, Declan, and Henry, according to babynames.com. Write a program that modifies the male_names set by removing a name and adding a different name. Sample output with inputs: 'Oliver' 'Atlas' { 'Atlas', 'Declan', 'Henry' } NOTE: Because sets are unordered, the order in which the names in male_names appear may differ from above. Code writing challenge activity demo 461710.3116374.qx3zqy7 1 male_names 2 name_to_remove = input() 3 name_to_add=input() 4 = 11 { 'Oliver', 'Declan', 'Henry' } 5 6 7 print (male_names) Your solution goes here '''arrow_forwardThe average amount Sold function is not run as expect. Please fix it. The input file: sales.txt header in picture. It is over 5000 char. I can't copy. 13492785 2017 Jane North; 1000 78534520 2012 Tim South; 95020192756 2017 Linda East; 15000 19273458 2012 Paul West; 500078520192 2017 Mary Jane Doe; 5001 32278520 2012 Victor Smith; 799514278520 2012 Mary Johnson; 12056192785 2017 Tom Baker; 1300 88278529 2012 Diana Newman; 150089278527 2012 William Peterson; 1420098278528 2012 Jim Gaddis; 120099192785 2017 Laura King; 1000 43278524 2012 Ann McDonald; 2000 The output expect: in picture. #include "Sales.h"#include <iostream>#include <sstream>#include <iomanip>#include <fstream>#include <string>using namespace std; const int MAX_SIZE = 30; void readData(string fileName, Sales salesArr[], int n);double calcSalesAvg(Sales salesArr[], int n);void displayOverAvg(Sales salesArr[], int n, double avg);void writeReport(Sales salesArr[], int n, string…arrow_forwardIn python, write a code that allows the user to input two non-negative number sequences in increasing order (the numbers entered are always getting bigger, and no number repeats), both terminated by a -1. The size of each sequence can vary (maybe sequence - 1 has four numbers, and sequence - 2 has seven). The output of this code should be a third sequence that is a combination of both sequences 1 and 2 and is sorted in non-decreasing order. Note: Non-decreasing order means there can be a repeated number in the third sequence (see example 1). A strictly increasing order sequence cannot have repeat numbers at all (see example 3). Remember, all input sequences must be in strictly increasing order! please do this using python, only using while loops. NO language of "break" or "len" please. Hint: we can use three separate lists to solve this code.arrow_forward
- PYTHON Complete the function below, which takes two arguments: data: a list of tweets search_words: a list of search phrases The function should, for each tweet in data, check whether that tweet uses any of the words in the list search_words. If it does, we keep the tweet. If it does not, we ignore the tweet. data = ['ZOOM earnings for Q1 are up 5%', 'Subscriptions at ZOOM have risen to all-time highs, boosting sales', "Got a new Mazda, ZOOM ZOOM Y'ALL!", 'I hate getting up at 8am FOR A STUPID ZOOM MEETING', 'ZOOM execs hint at a decline in earnings following a capital expansion program'] Hint: Consider the example_function below. It takes a list of numbers in numbers and keeps only those that appear in search_numbers. def example_function(numbers, search_numbers): keep = [] for number in numbers: if number in search_numbers(): keep.append(number) return keep def search_words(data, search_words):arrow_forwardYou are given a file which has an Australian state name and a university name in each line. You can view the file as follows. DO NOT CHANGE the content of the uni.txt (otherwise you will have to press the triple dot button at the top-right and then "Reset to Scaffold"). sorter.py uni.txt + uni.txt 1 NSW USYD 2 NSW UNSW 3 ACT ANU 4 WA UWA 5 QLD UQ 6 VIC UMEL 7 VIC MONASH_U 8 SA ADELAIDE_U Write a program sorter.py that 1) reads a command line argument containing the file to open, 2) opens and reads the file, 3) extracts each Australian state (not the university), i.e. the first word token in each line, and 4) sorts the states in alphabetical order. You may assume that each state is one word long. Furthermore, make sure to only record the names of unique states - so do not record any state twice. HINT: use the in keyword. E.g. ▸ Run 1 ls = [1, 2 if 4 in ls: 3 4 elif 4 not in ls: 2, 3] print("4 is in list") 5 print("4 is NOT in list") PYTHON You MUST use open(), read(), split(), sort(),…arrow_forwardWrite a program that sorts a table containing 200 random values. The program must display numbers in ascending and descending order.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





