In Part 1, I need a program that loops, prompting the user for their full name, subject code, subject name, their exam result (an integer between 1 and 100), and then writes that data out to file called ‘[login to view URL]’. The program should check inputs for validity according to the following rules:
First, last names and subject name must use only alphabetical characters. No spaces, hyphens or special characters. Names must be less than 20 characters long.
Subject code uses three capital alphabetical characters (no spaces, hyphens or special characters) + three integer numbers. No space between alphabetical characters and integer numbers.
Exam result (an integer between 1 and 100 inclusive)
The file should record each customers information on a single line and the output file should have the following appearance: Nurke Fred ITC106 Programming Principles 58
Write a second program that opens the ‘[login to view URL]’ file for reading and then reads each record, splitting it into its component fields and checking each field for validity.
The rules for validity are as in your first program, with the addition of a rule that specifies that each record must contain exactly 5 fields.
Your program should print out each valid record it reads.
The program should be able to raise an exception on invalid input, print out an error message with the line and what the error was, and continue running properly on the next line(s).
I'll need a flowchart for this code to make it easier to follow and display.
Select at least six sets of test data that will show the normal operation of the program; that is, test data that will demonstrate what happens when a VALID input is entered. Also 4 sets of test data to show abnormal operation.
Set your test results out in a tabular form as follows: test data type, test data, the reason it was selected, the output expected due to using the test data, and finally the output actually observed when the test data is used.
The second part is a different client with a different scenario:
To play the PowerBall lottery, you buy a ticket that has five unique numbers in the range of 1–69, and a “PowerBall” number in the range of 1–26. (You can pick the numbers yourself, or you can let the ticket machine randomly pick them for you.) Then, on a specified date, a winning set of numbers is randomly selected by a machine. If your first five numbers match the first five winning numbers in any order, and your PowerBall number matches the winning Pow-erBall number, then you win the jackpot, which is a very large amount of money. If your numbers match only some of the winning numbers, you win a lesser amount, depending on how many of the winning numbers you have matched.
19 freelancers are bidding on average $34 for this job
Hi there, I'm a Python Expert. I can create this script for you (Please see my reviews for competency). Payment is not required if you are not satisfied with my work. Thanks Duration: within 2 days Regards, KC
I have 6 years of python programing experience. I will provide you clean code with required validations and documentation with test scripts for each validation success and fail scenarios
i am the student of software engineer .Can I do this project, made with any charger, why I am freelancing new and I tell you what date you want the project