Create two tuples named months1 and months2, including first six
months and last six months, respectively. Create a new tuple from
concatenation of the two tuples created previously. Print the tuple
including all months. Print the name of the 6th month using tuple
index. Query the index of the one of months. (ex.‘November’)
python IDL
#WORKLAB4.3
month1=('January','February','March','April','May','June')
month2=('July','August','September','October','November','December')
allMonths = 'months1'+ 'months2'
print('allMonths')
print(allMonths[6])
print(allMonths.index('November'))
# Create two tuples named months1 and months2, including first six months and last six months, respectively.
months1 = ('January', 'February', 'March', 'April', 'May', 'June')
months2 = ('July', 'August', 'September', 'October', 'November', 'December')
# Create a new tuple from concatenation of the two tuples created previously.
allMonths = months1 + months2
# Print the tuple including all months.
print(allMonths)
# Print the name of the 6th month using tuple index.
print(allMonths[5])
# Query the index of the one of months. (ex.'November')
print(allMonths.index('November'))

Create two tuples named months1 and months2, including first six months and last six months, respectively....
Use Python: Dice Rolls Create a function named build_roll_permutations which returns all 36 permutations of rolling two six sided dice. That is, each dice has a number 1 through 6 on one of its sides. The return value is a list which contains tuples. Each tuple represents a possible dice roll of two dice. Card Deck Create a function named build_deck that returns a full deck of cards. The cards are created by a rank and a suit (e.g. 2♡)....
Write the Flowchart for the following programming problem based on the pseudocode below. Last year, a local college implemented rooftop gardens as a way to promote energy efficiency and save money. Write a program that will allow the user to enter the energy bills from January to December for the year prior to going green. Next, allow the user to enter the energy bills from January to December of the past year after going green. The program should calculate the...
Using Swift playground and / or the command line for macOS (open Xcode, create a new Xcode project, macOS, command line tool), practice the following exercises: Exercise: Swift Variables Declare 2 variables/constants with some random values and any name of your choice Considering these 2 variables, one as a value of PI and other as a radius of circle, find the area of circle Print the area of circle Declare a string variable explicitly with value “Northeastern”. Declare a string...
hello help me asap please kindly "Programming Challenge 1 -- Going Green," of Starting Out with Programming Logic and Design. Note: You are only required to create the flowchart for this activity; however, notice how the pseudocode compares to the given Python code for this assignment. Lab 9: Arrays This lab accompanies Chapter 8 of Gaddis, T. (2016). Starting out with programming logic and design (4th ed.). Boston, MA: Addison-Wesley. Lab 9.5 – Programming Challenge 1 -- Going Green Write...
The following transactions occurred during the first twelve months of operations: January 1st Common stock is issued in exchange for cash in the amount of ………….………….……………………… 395,000 February 8th The company purchases and pays for 170 units of gourmet dog food at a price of $25 per unit ………….. 4,250 March 1st The company pays cash for a one-year insurance policy in the amount of ……………….………………………..….. 3,900 March 31st Rent on a retail space for 12 months is paid in...
PYTHON Build a regular expressions based on informal specifications to match specified patterns. Use a compiled regular expression in a Python program where appropriate. Use Python's text processing str methods to generate a string format converter. create a date format converter. Your program will convert a date in the format “mm/dd/yyyy” to the format “month day, year”. Specify the required input format: mm/dd/yyyy Use a regular expression to validate the user input date format. If the format is incorrect raise...
12 P-34 Help The County of Maxnell decides to create a sanitation department and offer its services to the public for a fee. As a result, county officials plan to account for this activity within the enterprise funds. Prepare journal entries for this operation for the following 2017 transactions as well as necessary adjusting entries at the end of the year. Assume the information is being gathered to prepare fund financial statements. Only entries for the sanitation department are required...
Self-Study Problem 9.4 For the first quarter of 2018, Charlotte York has two employees. The payroll information for these two employees for the first quarter is as follows: Mary Chris January February March January February March Gross wages $2,000 $2,000 $2,100 $1,000 $1,000 $1,500 Federal income tax withheld 230 230 235 60 60 180 FICA tax withheld 153 153 161 77 77 115 Charlotte deposited $750 on February 15, $750 on March 15, and $967 on April 15. Using this...
How do I create the financial statements such as the income
statement, statement of owners equity, and a balance sheet from the
adjusted trial balance ?
skylor cook Account Name BIO Raider Adventure Park Adjuscd 10 Balano Debt Credit sash sign Equipment dvertising expanse ACTIVIU counts ACCOUNT 100 $8810 31000 Noinapinski, capital 10000 for pubic 2100 1050 250 5050 165 fuld Insurance 495 appucs Tapon 208 Accounts payable 120 2560 JCKEL Revenue nowing cponce WOOos Aponso 700 Milannel withdraws 360...
Program 7 File Processing and Arrays (100 points) Overview: For this assignment, write a program that will process monthly sales data for a small company. The data will be used to calculate total sales for each month in a year. The monthly sales totals will be needed for later processing, so it will be stored in an array. Basic Logic for main() Note: all of the functions mentioned in this logic are described below. Declare an array of 12 float/doubles...