1. (15pts) A numeronym is a number-based word. One way to construct a numeronym for a word is by replacing the letters between the first and last with a number representing the number of letters omitted. For example the numeronym of chair is c3r, or python is p4n . Write a program that converts your first name to its numeronym.
For me, it should start with yegin and result in y3n
2. (15pts) Write a program that checks the divisibilty by 7 for a
list of positive integers. The result should be a list of
TRUE/FALSE statements which has as many elements as the number of
numbers.
For example if the list of numbers is as follows: numbers= [5,8,9,7,11], the result should be : results= [False, False, False, True, False]
3. (15pts) A student grades are provided in a dictionary as below.
Using a for loop, calculate the average student's average grade
grades= {'Math': 4.0 , 'English':5.0 , 'Science': 3.5}
Thanks for the question, Here are the all the code for the 3 questions in PYTHON
=================================================================================
# Question 1
name = 'henry'
numeronym = name[0] + str(len(name) - 2) + name[-1]
print(numeronym)
# Question 2
numbers = [5, 8, 9, 7, 11]
results = [num % 7 == 0 for num
in numbers]
print(results)
# Question 3
grades = {'Math': 4.0, 'English':
5.0, 'Science': 3.5}
average = sum(list(grades.values()))/(len(grades))
print(average)
==================================================================================

1. (15pts) A numeronym is a number-based word. One way to construct a numeronym for a...
python 3: Write a program to prompt the user for a word and a number. Add that word and number to a dictionary. If the word already exists in the dictionary, print "already entered". When the user types the word list, display all entered words and numbers from the dictionary. When the user types end, end the program.
Question 2: Finding the best Scrabble word with Recursion using java Scrabble is a game in which players construct words from random letters, building on words already played. Each letter has an associated point value and the aim is to collect more points than your opponent. Please see https: //en.wikipedia.org/wiki/Scrabble for an overview if you are unfamiliar with the game. You will write a program that allows a user to enter 7 letters (representing the letter tiles they hold), plus...
In Python In this programming assignment, you will do multiple programming exercises, and eventually develop a Python application that can calculate student course grades. (6 points) Write a program called p2-1.py to: (1) create a list and add integer numbers from 1 to 100 to the list; (2) calculate the average value of all numbers in the list; and (3) print the result (screenshots). (8 points) Write a program called p2-2.py to: (1) allow a user to define how many...
Python 3.7 Coding assignment This Program should first tell users that this is a word analysis software. For any user-given text file, the program will read, analyze, and write each word with the line numbers where the word is found in an output file. A word may appear in multiple lines. A word shows more than once at a line, the line number will be only recorded one time. Ask a user to enter the name of a text file....
Python 5. Write a function named grade_components that has one parameter, a dictionary. The keys for the dictionary are strings and the values are lists of numbers. The function should create a new dictionary where the keys are the same strings as the original dictionary and the values are tuples. The first entry in each tuple should be the weighted average of the non-negative values in the list (where the weight was the number in the 0 position of the...
Problem 1 1 def modify(word.ch). word == word + ch return word print('new word is', word) To run the function modify() defined above, we make the following call: result = modify('course', 's') Find and fix the errors in the function definition, lines (1) to (4), such that after the call is executed: • Variable result has the value 'courses' • 'new word is courses' is printed out. For each error found and fixed, you must indicate the following: • line...
I need help writing this C code. Here is the description: Let's say we have a program called smart typing which does two things: The first letter of a word is always input manually by a keystroke. When a sequence of n letters has been typed: c1c2...cn and the set of words in the dictionary that start with that sequence also have c1c2...cnc then the smart typing displays c automatically. we would like to know, for each word in the dictionary,...
Python Object oriented programming
Exercise 3 Dictionary Computers are playing an increasing role in education. Write a program that will help an elementary school student to learn English. To simplify the model, the program will first teach numbers from 1 to 10, colors and fruits. It will use a dictionary to store the pairs Spanish-English words. dataTable-uno':one,'dos':'two....' rojo':'red','blue':'Azul... manzana': apple, nara nja:orange. When running your program, it should get a random Spanish word from the dictionary dataTable and then show...
please
write a C++ code
Problem A: Word Shadow Source file: shadow.cpp f or java, or.cj Input file: shadow.in in reality, when we read an English word we normally do not read every single letter of that word but rather the word's "shadow" recalls its pronunciation and meaning from our brain. The word's shadow consists of the same number of letters that compose the actual word with first and last letters (of the word) in their original positions while the...
Pythong Program 4 should first tell users that this is a word analysis software. For any user-given text file, the program will read, analyze, and write each word with the line numbers where the word is found in an output file. A word may appear in multiple lines. A word shows more than once at a line, the line number will be only recorded one time. Ask a user to enter the name of a text file. Using try/except for...