Dear STudent,
here are the answers..
===============================================================
Program:1
===============================================================
lyrics = ["Country roads", "take me home", "To the place", "I belong"]
for line in lyrics:
line.lower()
for index in range(0, 5, 2):
print(line[index], end=" ")
print()
================================================================
Output:

===================================================================
Program:2
=================================================================
product = 1
for i in range(2, 8, 2):
product *= i
print(product)
================================================================
Output:

==================================================================
KIndly Check and Verify Thanks...!!!
3. (2 points) Consider the code: lyrics ["Country roads", "take me home", "To the place", "I...
I need help modifying this python code: a) I need to take 2 attributes of the data as int - (columns (3 & 5) of my data) b) I need to take 2 more attributes as floats -(columns 4&6 of my data) c) I need to take 1 attribute as string (column 16 of my data) How would I modify this code # # Initial version - "standard programming" # # Define a list for the data. The data structure...
eBook Show Me How Calculator Print Item Asset Turnover The Home Depot reported the following data (in millions) in its recent financial statements: Year 2 Year 1 Sales $120,800 $127,650 Total assets at the end of the year 72,800 78,200 Total assets at the beginning of the year 78,200 92,000 a. Determine the asset turnover for The Home Depot for Year 2 and Year 1. Round to one decimal place. Year 2 Year 1 Ab. What do these turnover indicate...
4. (3 points) Consider the following function reverse, that attempts to reverse an array in place (i.e. without the use of additional storage). It does it by interchanging the first and last elements, then the second and second from last etc. All of the interchanges are done by calling function interchange. Here are the two functions and a main program: #include <iostream> using namespace std; void interchange(int x, int y) int temp: temp = x; x=y: y - tempi }...
C++ Can someone please help me with this problem- commenting each line of code so I can understand how to solve this problem using the C++ programming language? I really need help understanding how to create a file for the program to read. Do I create the file in Visual basic or create a text file? I have the code, just need to know how to create the file for it to read. #include<fstream> #include<iostream> using namespace std; int main()...
I need a python 3 help. Please help me with this question Part 2. Linked Lists You start working with the class LinkNode that represents a single node of a linked list. It has two instance attributes: value and next. class LinkNode: def __init__(self,value,nxt=None): assert isinstance(nxt, LinkNode) or nxt is None self.value = value self.next = nxt Before you start with the coding questions, answer the following questions about the constructor Valid Constructor or Not? LinkNode(1, 3) LinkNode(1, None) LinkNode(1,...
Must be done in Java.
PROBLEM 1 INFORMATION AND THE CODE PROVIDED WITH IT AS
WELL.
Provide the rest of the code with full comments and
explanation and with proper indentation.
Use simple methods for better
understanding.
Must compile.
At the end, show the exact Output that's shown in
Problem 2.
CODE PROVIDED FOR PROBLEM 1:
import java.util.Scanner;
public class Problem1
{
public static void main( String [] args )
{
//N denoting the size of the
board
int n;
...
Write, save, and run a Python program that will do the following when run: Let’s consider the following assignment: a = 1 * 2 + 38 / 8 You want to change the precedence of the operators so that the addition operations are executed first. How would you re-write the assignment? Write a print statement to show the output. Let’s consider the following assignments: x = 'z' y= ['x', 'z', 'q'] Now, apparently x is a member of y. Write...
Greeting! Kindly help me to solve my finals in PYTHON, I don't have a knowledge in PYTHON, new student. Please, please, I'm begging, Kindly answers all the questions. I'm hoping to grant my request. Thanks in advanced. 1.) What is the output of the following snippet? l1 = [1,2] for v in range(2): l1.insert(-1,l1[v]) print(l1) a.) [1, 2, 2, 2] b.) [1, 1, 1, 2] c.) [1, 2, 1, 2] d.) [1,...
below is my code please help me edit it so in the beginning it ask for Press any key to start Task n, where n is the task number (1, 2, or 3,4). I already wrote the code for the 4 task. Also please write it so when 1 code is finish running it return to the prompt where it ask to run another task #task 1 list1 = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9','.',',','?'] morse = ['.-','-...','-.-.','-..','.','..-.','--.','....','..','.---','-.-','.-..','--','-.','---','.--.','--.-','.-.','...','-','..-','...-','.--','-..-','-.--','--..','-----','.----','..---','...--','....-','.....','-....','--...','---..','----.','.-.-.-','--..--','..--..'] inp = input("Enter original text : ")...
Must be done in Java.
PROBLEM 2 INFORMATION AND THE CODE PROVIDED WITH IT AS
WELL.
PROBLEM 1 INFORMATION IF YOU NEED IT AS
WELL:
Provide the rest of the code with full comments and
explanation and with proper indentation.
Use simple methods for better
understanding.
Must compile.
At the end, show the exact Output that's shown in
Problem3.
CODE PROVIDED FOR PROBLEM 2:
import java.util.Scanner;
public class Problem2
{
public static void main( String [] args )
{
//N...