Reference no: EM13693785
Question: Write a program that creates a file called "grades.txt" with 1000 lines. Each line in the "grades.txt" file will consist of a student's first name, last name, graduating year(2013,2014,2015), and grade. the student's first name and last name for the ith line are FirstNamei and LastName. The graduating year is randomly generated as freshman, sophomore, or junior.
The grade is randomly generated from an A+ to A- for 2013, B+ to B- for 2014, or C+ to C- for 2015.
The sample output of the "grades.txt" file should look like this:
FirstName1 LastName1 2013 A-
FirstName2 LastName2 2015 C+
....
FirstName1000 LastName1000 2014 B
Please show me all the working and provide the answer.
Write the equations describing the electrode reactions
: Problem- Write the equations describing the electrode reactions and the net cell reaction for this electrochemical cell containing copper and silver
|
Occurrence of the longest substring of capital
: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.
|
Draw a picture of the gel
: Problem- The restriction enzyme, Xho1, cuts phage (lambda) DNA at position 33,498. Draw a picture of the gel you will see if it is used as the mystery enzyme in the experiment.
|
Calculate the ph after koh addition
: Problem- A buffer is prepared from 0.25 mol benzoic acid and 0.15 mol sodium benzoate in 500 mL solution. a. What is the pH of the buffer? b. If 6.2 g of KOH are added to the buffer will the capacity be exceeded? c. Calculate the pH after KOH addi..
|
Write a program that creates a file called grades.txt
: Write a program that creates a file called "grades.txt" with 1000 lines. Each line in the "grades.txt" file will consist of a student's first name, last name, graduating year(2013,2014,2015), and grade.
|
Calculate the percent riboflavin in a 50 mg multivitamin
: Determine the volume of Solution #2 that is needed to make 25.00 mL of 2ppm solution. Calculate the percent riboflavin (to 3 significant figures) in a 50 mg multivitamin that was dissolved in 250 mL of 0.02 M acetic acid (assume density of acetic ..
|
Explain why bits are not real as if you were nyquist
: Explain why bits are not real as if you were Nyquist. Then Using Nyquist formula explains how to create this bits abstraction? Can you answer this question? Provide answer with example.
|
Explain how many kilograms of h2so4 are present
: Problem- If the pH of a 1.5-in. rainfall over 1600mi2 is 3.1, how many kilograms of H2SO4 are present, assuming that it is the only acid contributing to the pH?
|
Program that tests if an input string is a palindrome
: Write a recursive method that takes a string as argument and returns the reverse of the string (given the argument "Horse" your method should return the string "esroH").
|