Write a program to prompt the user for their age. Based on their age print out which generation they are, when they think youth ends, when old age begins and what age is considered the prime of life. - What is your age: 45 You are Generation X. Youth ends at 31, old age begins at 65. The prime of life is age 47
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: Write a program that calculates the change due a customer by denomination; that is, how many…
A: Answer is given below .
Q: Write a program that prompts the user toenter the year and first day of the year, then displays the…
A: PROGRAM EXPLANATION: - Three static []s are declared and initialized for names of months, days in…
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: Answer to the above question is in step2.
Q: Write a program that calculates and prints the amount of wages due to an employee for a week's work.…
A: C++ program to calculate the amount of wages due to an employee for a week’s work. Prompt the user…
Q: Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0,…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program to convert centigrade to Kelvin. It should display value in centigrade and then the…
A: Python program to solve the given problem is below.
Q: Write a temperature-conversion program that gives the user the option of converting Fahrenheit to…
A: The program is written in python def CtoF(): celsius = float(input("Enter temperature in…
Q: Write a program that reads the income of a user and computes his/her income taxes according to the…
A: 1:Read the income 2:If income is negative then print error and exit 3:Determin the tax slab as per…
Q: Write an LMC program that generates the Fibonacci series. Write a Little Man program that prints…
A: LMC Program that generates the Fibonacci series Answer : Code: INP STA N LOOP LDA…
Q: Using coding, write a program which prompt user for a celcius temperature, convert the temperature…
A: Given question has asked to write a program which prompt user for temperature in Celsius and convert…
Q: Write a program that Requests a temperature from the user. Also asks if the temperature is in…
A: #Get the temperature from the user temperature = int(input("Enter a temperature ")) #Ask if the…
Q: write a program to print the name of day when entering the number of the day. (For example, when the…
A: read a value convert it into int using Integer.Parse() if x=1 then display “sunday” else if x=2 then…
Q: Write a program that prompts the user to enterthe month and year and displays the number of days in…
A: Program: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that reads from the user the initial KiloMeters of the car, the current KiloMeters,…
A: Note: as programming language is not mentioned c++ is used. The program with output is given below
Q: Write a program for weekdays. Read a number, between 0 and 6, from keyboard, and then print out the…
A: C program for weekdays. Read a number from 0 to 6. Using the switch function Display the…
Q: Write a program that asks the user for a number, and multiplies it by 3 then prints out the result:…
A: Start Prompt the user for input Parse it as integer Multiply the number by 3 Print the result Stop
Q: Write a program that prompts the user to enter an integer and checks whether the number is divisible…
A: The c++ program is given below, as language is not mentioned.
Q: Your relative, who goes to primary school and has just learned the multiplication table, asks you to…
A: using System; public class Multiplication { public static void main() { int i,n,count=0;…
Q: Write a program that prompts the user to enter the month and first day of the month, and displays…
A: /*program that prompts the user to enter the month and first day of the month, and displays all the…
Q: Write a program that prompts the user to enter the annual income (in int) of an employee. The…
A: Required:
Q: Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the…
A: Start input age through get_age function if person is not in between 18 to 75 the print message…
Q: Write a program which takes the user's age in years and convert it into months. 1 Year= 12 Months %D
A: Algorithm: Step1: Declare variables, Nofmonths & years to store values. Step2: Receive the user…
Q: Write a program that prompts the user to enter the year and first day of the year, and displays the…
A: PROGRAM CODE: import java.util.*;public class Main { public static void main(String[] strings)…
Q: Write a program that prompts the user to input a positive integer. It should then output a message…
A: Given The condition of a prime number and to do a program to check given number is prime or not.
Q: Write a temperature-conversion program that gives the user the option of converting Fahrenheit to…
A: Start Input choice If Choice is 1 Then convert Temperature from Fahrenheit to Celsius If Choice is 2…
Q: *Write a program that asks the user to guess your favorite number. The program should end when the…
A: Guessing a number will be done by using loop. IN the python programming language there are three…
Q: Write a program that Requests a temperature from the user. Also asks if the temperature is in…
A: Ans: python is very sensitive about indentation.So, please take care about indentation.Copy the same…
Q: Write a program that prompts the user to enter the currency exchange rate between U.S. dollars and…
A: GIVEN: Write a program that prompts the user to enter the currency exchange rate between U.S.…
Q: Write a program that computes the fuel efficiency of a multi-leg journey. The program will first…
A: Python code :- def question9(): print("Question 9) # arrays to store miles and gas used…
Q: Write a program that prompts the user to enter the numberof students and each student’s name and…
A: Program: import java.util.*; public class Main { static void LowestScores(String name[], float…
Q: Write a program that • Requests a temperature from the user. • Also asks if the temperature is in…
A: Since here no programming language is specified. So, we are providing the program code in C++. The…
Q: Write a program that computes the fuel efficiency of a multi-leg journey. The program will first…
A: We need to write a Python program for given scenario.
Q: Write a program that invites the user to enter two numbers: a dividend (the top number in a…
A: According to the Question below the Solution: Output:
Q: Write a program that prompts the user to enter the number of students and each student's name and…
A: Python code to copy:- n = int(input("Enter the number of students: "))name1 = input("Enter a student…
Q: Write a program to determine the cost of an automobile insurance premium, based on driver's age. and…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of class to take input. Step 3 : ask…
Q: Write a program to have the user guess a number stored in the program. If he guesses right, tell him…
A: While doing programming in any programming language, you need to use various variables to store…
Q: Write a program that prompts the user to enter the year and first day of the year, then displays the…
A: Given, we get- year from the user, first day of the year from user. based on the above data, we…
Q: Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to…
A: Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to…
Q: Write a program that prompts the user to enter the name, the number of children, and the basic…
A: Since programming language not mentioned using Python CODE: # cook your dish herename=input("Enter…
Q: Write a program that asks the user for a number, and divides it by 2 then prints out the result:…
A: As per the requirement here I am providing the code. Here is the algorithm. Step 1: Start Step 2:…
Q: Write a program that will ask the user to enter Date of Birth (DOB) and current date as input.…
A: Note: Since programming language is not mentioned. Therefore answering questions in Python language.…
Q: write a program that prompts the user to enter the number of students and each student name and…
A: The java program and the approach that prompts the user to enter the names and the scores of the…
Q: Create a program that will distinguish the age of the student. If the student is 13 to 19 years old,…
A: INTRODUCTION: Here we need to tell create a program that will distinguish the age of the student.
Q: Write a program that ask the user to enter his/her letter grade and then respond with an appropriate…
A: grade = input("Enter your grade : ") #taking user inputif(grade == 'a' or grade == 'A'):…
write program?
Step by step
Solved in 4 steps with 1 images
- What is the return value after executing result(state=(0,1,2,3,4,5,6,7,8), action='DOWN') in class EightPuzzle? (https://github.com/aimacode/aima-python/blob/master/search.py#L459)Links to an external site. Group of answer choices a. (3,1,2,0,4,5,6,7,8) b. (1,2,3,4,5,6,7,8,0) c. (1,0,2,3,4,5,6,7,8) d. (8,1,2,3,4,5,6,7,0) which answer is correct?https://youtu.be/5HgqPpjIH5c Next to assist you in responding to these prompts below go to the Keeping Score Berlioz page (link: http://www.pbs.org/keepingscore/berlioz-symphonie-fantastique.html ) and read the summary. Also watch Leonard Bernstein's "Berlioz Takes a Trip" (link: $WIKI_REFERENCE$/pages/leonard-bernstein-berlioz-takes-a-trip?module_item_id=g0bb8a3b6c18593dfe6054d27d0d132ac Berlioz's "Symphonie Fantastique" was so novel and so shocking—for its program and its music—that it immediately caused an uproar, in the press, from other composers, even from Berlioz's friends. Many, finding the story distasteful, were aghast that a composer would put into music something so explicitly autobiographical. What can these reactions tell us about what Berlioz was trying to do? Was he a typical Romantic artist wearing his heart on his sleeve? Or was he an obsessed, crazy man using music for some diabolical purpose? Using the Keeping Score Berlioz website from the link above, how do you…1. The purpose of creating various page replacement algorithms is to: a.) to allocate pages to frames. b. )increase the page fault rate. c.) decrease the page fault rate. d.) replace pages faster. 2. Optimal page replacement algorithm is difficult to implement, because it: a.) requires a lot of information. b.) is extremely expensive. c.) requires future knowledge of reference string. d.) is too complex. 3. LRU page replacement algorithm associates with each page the: a.) page that has the least count. b.) time of that page 's last use c.) time it was brought into memory. d.) page that will not be used.
- Dan’s recently announced that he’s teaching n top-secret courses next semester. Instead of enrolling in them through ACORN, students need to email Dan to express their interests. These courses are numbered from 1 to n in some arbitrary order. In particular, if a student named s is interested in taking a course c, they need to sendanemailtoDancontainingthemessagec s.Notethatifastudentis interested in taking multiple courses, they need to send multiple emails, one per course. Uponreceivingamessagec s,Danlooksatthelistofstudentsalreadyenrolledin course c. If there’s already a student on the list whose name is too similar to s, Dan assumes s is the same student and ignores the message. Otherwise, he enrolls s in the course. Dan considers two names too similar if and only if they have the same length and differ in at most one letter (note that “a” and “A” are considered the same letter). For example, “Josh” and “Josh” are too similar. “Sam” and “CaM” are too similar as well. However,…1.Generate motion blurred images, apply Wiener filtering for image restoration, and display the results. I=imread('f:\1.jpg') I=rgb2gray(s) I = im2double(I); % Simulate motion blur LEN = 21; THETA = 11; PSF = fspecial('motion', LEN, THETA); blurred = imfilter(I, PSF , 'conv', 'circular'); % restore image wnr2 = deconvwnr(blurred, PSF); subplot(1,2,1);imshow(blurred);title('motion blurred image') subplot(1,2,2);imshow(wnr2);title('restore image')Alert dont submit AI generated answer. Consider the following page reference string: 1, 2, 3,3, 4, 7, 1, 5, 6, 1,2,3,7 ,6,3,2,1,2,3,6How many page faults would occur for the following replacement algorithms: • LRU replacement • FIFO replacement • Optimal replacement (Remember that all frames are initially empty, so your first unique pages Pick a number between 3 and six and illustrate out LRU, FIFO and Optimal page replacement for that many pages for the given reference string.
- What are the actions you can do with People Chip? (select ALL correct answers) a. create an event b. create a group c. start a call d. send an email e. send a chat f. share a fileImplement the following to simulate how websites ensure that everyone has a unique username. a) Make a list of five or more usernames called current_users. b) Request an input of username. c) Print a message, Sorry XXX, that name is taken and also display the current user list if the input username has already been used. XXX is the input user name. d) Print a message, Great, XXX is still available and also display the updated user list if the username has not been used. e) Make sure your comparison is case insensitive. If 'John' has been used, 'JOHN' or ‘john’ should not be accepted. Example Output 1 Enter your user name: TOM Sorry TOM, that name is taken. Current users: [‘admin’, ‘tom’, ‘jerry’, ‘Dora’, ‘GEORGE’] Example Output 2 Enter your user name: curiousGeorge Great, curiousGeorge is still available. Updated users: [‘admin’, ‘tom’, ‘jerry’, ‘Dora’, ‘GEORGE’, ‘curiousGeorge’]What additional variables may be altered in order to maintain the same page size (and so prevent software rewrite)? Examine their viability in light of current technology and cost trends.
- Create a spreadsheet that takes eight values that a user inputs into eight different cells. Then create a row that transposes the cells to simulate a transposition cipher, using the example transposition cipher from the text. Remember to work from right to left, with the pattern 1 > 3, 2 > 6, 3 > 8, 4 > 1, 5 > 4, 6 > 7, 7 > 5, 8 > 2 where 1 is the rightmost of the eight cells. Input the text ABCDEFGH as single characters into the first row of cells. What is displayed?Read Blown to Bits pages 253-257 write a response to the following two prompts. Your prompts should quote from Blown to Bits. Why should people in the United States care about Internet rules in other countries? Is there a risk of government censorship in the United States, or is this just a problem elsewhere?(PYTHON) How to convert web-scrapping script into Python class? Example: from bs4 import BeautifulSoupimport requestsdef openHtmlFile(htmlfile):f = open(htmlfile,'https://en.wikipedia.org/wiki/List_of_countries_by_carbon_dioxide_emissions_per_capita')contents = f.read()return BeautifulSoup(contents, 'html.parser')scrape_site =requests.get('https://en.wikipedia.org/wiki/List_of_countries_by_carbon_dioxide_emissions_per_capita')soup = BeautifulSoup(scrape_site.text, 'html.parser')table = soup.find_all('table',{'class':'wikitable sortable jquery-tablesorter'})for values in table:country = soup.find_all(soup,'td')year = soup.find_all(soup, 'th')column_country = [td.text for td in soup.find_all('td')]coulumn_year = [th.text for th in soup.find_all('th')]seperate_year = soup.find_all('th')[2:5]country = soup.find_all(soup,'td')#show 1980 columnyear_1980 = soup.find_all('th')[2]#show 2018 columnyear_2018 = soup.find_all('th')[5]print(country)print(year_1980)print(year_2018) No hand written…