1. The first small program realizes the following functions:
(1) The program allows input of ID (3-digit integer representation), month (1-12), revenue and record these information in file1
(2) If the ID entered by the user and the income of the corresponding month already exist in file1, remind: the income information has been entered, please do not repeat the entry
2. The second small program realizes the following functions:
(1) Calculate the tax payable for each ID in file1 in each month (12% of revenue) and record it in each line of record in file1
3. The third small program realizes the following functions
(1) Write a search function, whose parameters are ID and month, and return the tax payable
(2) Call the find function to print the tax payable according to the ID and month entered by the user
(3) Reminder if there is no ID to query in file 1 or there is no tax payable record in the corresponding month, you need to give a text reminder
Requirement:
(1) Using markdown in the jupyter file first introduces the design idea and test effect of each small program (describes the information input during the test and adds the diagram)
Please use Python Programming Language No explicit requirements for output results
Here is the answer for your question in Python Programming Language.
NOTE : According to Chegg Policy experts are allowed to answer a max of one question when given multiple questions in a single question. Answered as per the Chegg Policy. Apologies for this.
I have answered question no.1 (1.1 & 1.2). To help you have answered part-2 also.Please check
CODE :
|
"""Creates a new file """ """ To create new record with given parameters""" """Part - (2) : To calculate tax payable and add the tax
to each record""" """Asks user for data continously until user wants to
exit""" |
SCREENSHOTS :
Please see he screenshots of the code below for the indentations of the code.As python is a language of indentations kindly check the identations before execution.



OUTPUT :


file1.txt

Any douts regarding this acn be explained with pleasure :)
1. The first small program realizes the following functions: (1) The program allows input of ID...
Write a program that will first receive as input the name of an
input file and an output file. It will then read in a list of
names, id #s, and balances from the input file specified (call it
InFile.txt) which you will create from the data provided below. The
program will then prompt the user for a name to search for, when it
finds the name it will output to a file (call it OFile.txt) the
person’s id#, name,...
Student ID: 123
Write a C+ program with the following specifications: a. Define a C++ function (name it function_StudentlD where StudentID is your actual student ID number) that has one integer input (N) and one double input (x) and returns a double output S, where N S = n 0 and X2 is given by 0 xeVn n 0,1 Хл —{2. nx 2 n 2 2 m2 x2 3 (Note: in the actual quiz, do not expect a always, practice...
c++ language Write a program that contains the following functions, i. A function isVowel that takes in a character and returns true if it is a vowel and false otherwise ii. A function that request from the user to enter in a sequence of characters, and outputs the number of vowels entered. (Use Function in a) to assist you, a sentinel value can be used to specify the end of the user input iii. A function that reads 3 test...
C++ program
Write a C++ program to manage a hospital system, the system mainly uses file handling to perform basic operations like how to add, edit, search, and delete record. Write the following functions: 1. hospital_menu: This function will display the following menu and prompt the user to enter her/his option. The system will keep showing the menu repeatedly until the user selects option 'e' from the menu. Arkansas Children Hospital a. Add new patient record b. Search record c....
Write a Java program to read customer details from an input text file corresponding to problem under PA07/Q1, Movie Ticketing System The input text file i.e. customers.txt has customer details in the following format: A sample data line is provided below. “John Doe”, 1234, “Movie 1”, 12.99, 1.99, 2.15, 13.99 Customer Name Member ID Movie Name Ticket Cost Total Discount Sales Tax Net Movie Ticket Cost Note: if a customer is non-member, then the corresponding memberID field is empty in...
CIS 22A C++ Project Exam Statistics Here is what your program will do: first it welcomes the user and displays the purpose of the program. It then prompts the user to enter the name of an input file (such as scores.txt). Assume the file contains the scores of the final exams; each score is preceded by a 5 characters student id. Create the input file: copy and paste the following data into a new text file named scores.txt DH232 89...
How would I change the following C code to implement the following functions: CODE: #include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]) { if (argc != 2) printf("Invalid input!\n"); else { FILE * f = fopen (argv[1], "r"); if (f != NULL) { printf("File opened successfully.\n"); char line[256]; while (fgets(line, sizeof(line), f)) { printf("%s", line); } fclose(f); } else { printf("File cannot be opened!"); } } return 0; } QUESTION: Add a function that uses fscanf like this:...
(C++ Program) 1. Write a program to allow user enter an array of structures, with each structure containing the firstname, lastname and the written test score of a driver. - Your program should use a DYNAMIC array to make sure user has enough storage to enter the data. - Once all the data being entered, you need to design a function to sort the data in descending order based on the test score. - Another function should be designed to...
Looking for some help with this Java program I am totally lost
on how to go about this.
You have been approached by a local grocery store to write a program that will track the progress of their sales people (SalesPerson.java) The information needed are: D Number integer Month 1 Sales Amount-Double Month 2 Sales Amount-Double Month 3 Sales Amount-Double Write a Java program that allows you to store the information of any salesperson up to 20 While the user...
In Language = C Concepts for this are (malloc/realloc, structs, and stdin/fgets/getc/scanf) Description Your program will ask the user to type in the following information: First Name: Last Name: ID#: Email: The program will terminate when a single . is entered as a First Name. This information will be stored in the following structure type: struct student { int recordCount; char *firstName; char *lastName; char *id; char *email; } recordCount is a number assigned at the beginning of the program...