Question: Please help me with Python. First time using so please explain as throughoughly as possible. I am trying to calculates and displays a persons year
Please help me with Python. First time using so please explain as throughoughly as possible. I am trying to calculates and displays a persons year of birth based on the Julian calendar for example 1900 is 6694.
Programmatically splits the Julian calendar year of birth for the value in step 3 into its constituent digits. As an example, four integer variables would be used for the Julian year 4950: one each for the thousands, hundreds, tens and onesdigit(s):
thousands = 4, hundreds = 9, tens = 5 and ones = 0.
Name the variables as you like, but identify and assign the digit values programatically, not by hard-coding literal values (e.g., for the Julian year 5014, do NOT use an assignment like thousands = 5).
Calculates and displays the sums of the four values...
You are limited to use of the java base data types, Java native mathematical and
logical operators, and control constructs such as if/else statements, while loops,
do-while loops, and for loops.
You are disallowed use of arrays and of methods from the Java.lang.Math class.
Add code to your Java application class Main that loops through three subsets of the ASCII collating sequence and prints each collation value and its associated character. The specific value ranges to loop through are the following:
Collation Sequence sub-range 48-57 (hex 30-39) 65-90 (hex 41-5A) 97-122 (hex 61-7A)
Characters // Characters '0' through '9'
// Characters 'A' through 'Z' // Characters 'a' through 'z'
1) Displays each of the collating sequence values in the range 48-57 and the ASCII character associated with each value
2) Displays each of the collating sequence values in the range 65-90 and the ASCII character associated with each value
3) Displays each of the collating sequence values in the range 97-122 and the ASCII character associated with each value
Please explain to me in a flow style how this program works. Thank you for your time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
