Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program that takes input from rawdata1.txt and writes a neat list of output to the screen

and to neat1.txt. Formatting instructions are used to create a neater layout: Numbers are written

one per line in a field width of 10. Each number is written with 3 digits after the decimal point.

Each number is written with a plus or minus sign. Write a function make_neat1 to format the

following text Uses “ 2345.45667 -0.0000456 34.9999 0.006788 -1 234


Write a program to read the data from babynames2012.txt and


1-

Print out on another files “top_common_10 names.txt” the top ten popular boys and

girls names.

2-

Print out on another files “least common_10 names.txt” the least ten popular boys

and girls names


In the text file, there are more than 100 baby names but I cannot copy and paste it all because of the word limit. Here is 50 of them.


1 J1 Jacob Sophia
2 Mason Emma
3 Ethan Isabella
4 Noah Olivia
5 William Ava
6 Liam Emily
7 Jayden Abigail
8 Michael Mia
9 Alexander Madison
10 Aiden Elizabeth
11 Daniel Chloe
12 Matthew Ella
13 Elijah Avery
14 James Addison
15 Anthony Aubrey
16 Benjamin Lily
17 Joshua Natalie
18 Andrew Sofia
19 David Charlotte
20 Joseph Zoey
21 Logan Grace
22 Jackson Hannah
23 Christopher Amelia
24 Gabriel Harper
25 Samuel Lillian
26 Ryan Samantha
27 Lucas Evelyn
28 John Victoria
29 Nathan Brooklyn
30 Isaac Zoe

Raising a number n to a power p is the same as multiplying n by itself p times. Write a function called power() that takes a double value for n and an int value for p, and returns the result as a double value. Use a default argument of 2 for p, so that if this argument is omitted, the number n will be squared. Write a main() function that gets values from the user to test this function.


Program specifications:
Declare an array to store up to 10 integer percentage values.
Ask the user to input 10 percentages (range 0–100).Verify that the input is valid.Note that only valid (0–100)percentages. 
If the user enters an invalid percentage:display an error message and do not store or process the invalid value.After the error message,prompt for the next input.
Once all 10 valid percentages are entered, calculate the average percentage and display it.  
Calculate and display the highest and lowest percentage obtained.
Then display all percentages that are equal to or more than the average.
Lastly,display all 10 values entered by the user together with their letter grade values,one percentage and letter grade per line.

Determine the letter grade based on test percentage
TEST PERCENTAGE GRADE
From 80 to 100 ‘A’
From 70 to 79 ‘B’
From 60 to 69 ‘C’
From 50 to 59 ‘D’
0-49          'F'

integers = [int(number) for number in input("Enter array of integers: ").split()]

K = int(input("K = "))

triplets = []

for i in range(len(integers)):

for j in range(i+1,len(integers)):

for k in range(j+1, len(integers)):

a = integers[i]

b = integers[j]

c = integers[k]

if b+c == K:

triplets.append(tuple((a,b,c)))

if len(triplets)!=0:

for triplet in triplets:

print(triplet)

else:

print("No Matching Triplets Found")

Output:(0, 12, 17)

(0, 8, 21)

(12, 8, 9)

The outout should be like this:(0, 8, 21)

(0, 12, 17)

(8, 9, 12)




To creat this C++ programme create a structure containing patient information like patient id, name of patient, disease description, doctor name and flag to know whether patient has an appointment (Stucture array of 5)

You have to

1. Add a new patient

2. Display patients that have appointment

3. Display all patients in the hospital of a particular doctor

4. Display all the patients that have appointment with a specific doctor

5. Display the total number of patients in the hospital

6. Book a appointment

(If we book an appointment, the total number of appointments increased by 1)


The length of time a full length movie runs from opening to credits is normally distributed with a mean of 2.2 hours and standard deviation of 0.2 hours. Calculate the following:A random movie is between 1.8 and 2.0 hours.A movie is shorter than 1.6 hours.

A movie is longer than 2.4 hours.


Create a class named Random Program and add a static function named reverse that will accept integer e.g. 17425 and return the reverse (52471


M, N = input().split(' ')

M, N = int(M), int(N)

matrix = []

for _ in range(M):

row = [int(x) for x in input().split(' ')]

matrix.append(row)

K = int(input())

values = matrix[0][:-1] + [x[-1] for x in matrix][:-1] + matrix[-1][::-1][:-1] + [x[0] for x in matrix][::-1][:-1]

values = values[-K:] + values[:-K]

output = matrix

idxs = [(0, j) for j in range(N)][:-1] + [(i, N - 1) for i in range(M)][:-1] + [(M - 1, j) for j in range(N)][::-1][:-1] + [(i, 0) for i in range(M)][::-1][:-1]

idx =0

input:4 4

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15 16

output:13 9 5 1 

14 6 7 2 

15 10 11 3 

16 12 8 4

the output should be like this :

13 9 5 1

14 7 11 2

15 6 10 3

16 12 8 4


LATEST TUTORIALS
APPROVED BY CLIENTS