Need help with output form
-I need my variables and strings in my print function to be separated by underscores _. Thanks.
m, d, y=eval(input("Enter the date like so m, d, y: "))
files=eval(input("How many files?: "))
fName=(input("Enter your family name: "))
FROM THIS: print(fName,m,d,y,".txt")
FORM OUTPUT NEEDS TO BE IN: name_month_day_year.txt
m, d, y = eval(input("Enter the date like so m, d, y: "))
files = eval(input("How many files?: "))
fName = (input("Enter your family name: "))
print(fName + "_" + str(m) + "_" + str(d) + "_" + str(y) + ".txt")

Need help with output form -I need my variables and strings in my print function to...
I need help with a c++ function. I need this function to read in an input file containing multiple choice questions/potential answers and to store that data into a 2d array of strings. This function cannot use classes or vectors or anything "advanced". The input file will have 0-50 questions; each with 4 multiple choice responses. The array should be titled questionArray. (it's a .txt file) update: What is my name? John Bob Lance Mike What is my favorite animal?...
In C++ In this homework, you will be tasked with creating functions to manipulate strings that come from files and then outputting the strings to another file. All of these functions are housed together in a menu. The user will be asked to input a file name and then their menu selection. The menu is this: Get rid of white space Print amount of characters in the file Print amount of words in the file Replace all vowels with 3's...
Objective: Use input/output files, strings, and command line arguments. Write a program that processes a text file by removing all blank lines (including lines that only contain white spaces), all spaces/tabs before the beginning of the line, and all spaces/tabs at the end of the line. The file must be saved under a different name with all the lines numbered and a single blank line added at the end of the file. For example, if the input file is given...
My module page is correct but I don't believe I am using the main() function properly. One of my .py files is supposed to contain my definitions, which is the module file. My second .py file is supposed to properly call a main function that does what my program asks it to: First name, last name, age, and respond based off of input. For some reason I am struggling with using the main() function so that my program works. Any...
For this code below, I need to add the form information to mysql when I click on submit, at the same time when I click on submit I need to move to another page like Welcome.php WITH NOTE THAT THE ENTERED INFORMATION NOW ALREADY IN DATABASE how can I male that with my code below? THANKS ................................................................................................................................................ <form method="POST"> <div class="container"> <label for="fname"><b>First Name</b></label> <input type="text" placeholder="Enter First Name" name="fname" required> <label for="lname"><b>Last Name</b></label> <input type="text" placeholder="Enter Last Name"...
I need help with this python programming exercise, please!
thanks in advance
Create a Python script file called hw4.py. Add your name at the top as a comment, along with the class name and date. Both exercises should be in this file, with a comment before each of them to mark it. Ex. 1. Write a program that inputs an integer number from the user, then prints a letter "O" in ASCII art using a width of 5 and the...
I need help with this .java implementation: Implement an algorithm that given two sorted arrays of size m and n creates a sorted array of size (n + m) in O(n + m) time. The script must take as an input a command line argument specifying the name of a .txt file which will contain the arrays to be sorted. Each line in the .txt file will contain two arrays, with elements in arrays separated by commas and the arrays...
Python : Need help with output of table Code: # Number of students print('How many students are in the class?') student_Number = int(input()) # Store list of students who are valid student_List = [] for i in range(0, student_Number): # To store current student data student_Data = [] print('Enter the name of student:') # Name of Students student_Name = input() if len(student_Name)> 24: print('Name of student cannot exceed 24 characters.') continue print('Enter the gpa of student:') # GPA of Student...
Need help creating a customer order form using Netbeans (programming language is Java). I can design the form but need help with writing the codes. Use the below areas to input on the form Customer name Customer address Drink (tea, water etc) Sandwich (white, parmesan) Type (Italian, Turkey) Size (12" for $6) Provide screenshots to show output of the above elements. The output should prompt to enter customer name, address then the drink, sandwich and so on. The output should...
Question 1 The code used to output messages to the screen begins with run # print output Flag this Question Question 2 The code used to begin a comment in the Python program source code is # Hello * Comment Flag this Question Question 3 A variable name is like a(n) input typed on a keyboard address in computer memory where values can be stored output to a computer screen value assigned to an address in computer memory Flag this...