(This is an extension of an exercise from Chapter I.) A simple rule to estimate your ideal body weight is to allow 110 pounds for the first 5 feet of height and 5 pounds for each additional inch. Create the following text in a text file. It contains the names and heights in feet and inches of Tom Atto Eaton Wright
Tom Atto
6
3
Eaton Wright
5
5
Cary Oki
5
11
Write a
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
Absolute C++,NO CODE INCLUDED (6th Edition)
Additional Engineering Textbook Solutions
Concepts of Programming Languages (11th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Database Concepts (7th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Starting Out with Java: Early Objects (6th Edition)
- This list attached below is a chronological list of the World Series winning teams from 1903 through 2009. (The first line in the file is the name of the team that won in 1903, and the last line is the name of the team that won in 2009. Note the World Series was not played in 1904 or 1994.) Write a python program that lets the user enter the name of a team, then displays the number of times that team has won the World Series in the time period from 1903 through 2009. Boston Americans New York Giants Chicago White Sox Chicago Cubs Chicago Cubs Pittsburgh Pirates Philadelphia Athletics Philadelphia Athletics Boston Red Sox Philadelphia Athletics Boston Braves Boston Red Sox Boston Red Sox Chicago White Sox Boston Red Sox Cincinnati Reds Cleveland Indians New York Giants New York Giants New York Yankees Washington Senators Pittsburgh Pirates St. Louis Cardinals New York Yankees New York Yankees Philadelphia Athletics Philadelphia Athletics St. Louis Cardinals New York Yankees New York…arrow_forwardUse notepad to create a text file with weather information as below. Then write a program to read the weather information from file and find the highest temperature. 4/25/2022 Cloudy 65 4/26/2022 Rainy 70 4/27/2022 Sunny 53 4/28/2022 Windy 55 4/29/2022 Sunny 62arrow_forwardWrite a program to read the text file named “location.txt”. Each line of the file represents the name and x,y,z coordinate of an object in 3D space. Calculate the distance of each object with respect to 0,0,0 coordinate (where x,y, and z axes intersect), then write the names and the distances in the file called distance.txt and display the names, x,y,z coordinates and the distances on screen. Units are in miles.arrow_forward
- Write a program to read the names in BoyNames.txt and GirNames.txt. Find the names that appear in both files and display them on screen. Girlname: Madison Emma Olivia Hannah Abigail Isabella Samantha Elizabeth Ashley Alexis Sarah Sophia Alyssa Grace Ava Taylor Brianna Lauren Chloe Natalie Kayla Jessica Anna Victoria Mia Hailey Sydney Jasmine Julia Morgan Destiny Rachel Ella Kaitlyn Megan Katherine Savannah Jennifer Alexandra Allison Haley Maria Kaylee Lily Makayla Brooke Mackenzie Nicole Addison Stephanie Lillian Andrea Zoe Faith Kimberly Madeline Alexa Katelyn Gabriella Gabrielle Trinity Amanda Kylie Mary Paige Riley Jenna Leah Sara Rebecca Michelle Sofia Vanessa Jordan Angelina Caroline Avery Audrey Evelyn Maya Claire Autumn Jocelyn Ariana Nevaeh Arianna Jada Bailey Brooklyn Aaliyah Amber Isabel Danielle Mariah Melanie Sierra Erin Molly Amelia Isabelle Madelyn Melissa Jacqueline Marissa Shelby Angela Leslie Katie Jade Catherine Diana Aubrey Mya Amy Briana Sophie Gabriela Breanna…arrow_forwardWrite a program to read the date and average from the temps.txt file. Use a string data type for the date and a double for the average. The program should then convert the average (Fahrenheit) to Celsius. The conversion formula is subtract 32 from the average (Fahrenheit) and then multiply by five and divide by nine, e.g., (average –32) * 5 / 9. Output the date, the average temperature (Fahrenheit) and the Celsius temperature to a file named celsius.txt. Use the manipulators you have learned about in this chapter to format the output as shown in the sample below and print each number value to one decimal space. 1. Identify the following parameters to complete the specification above. Input parameters? Output parameters? Constant parameters? 2. Attach the input and output of a successful execution of your program below (Hint:Use the snipping tool to take screenshots):arrow_forwardI need an extra line to display the total number of words in the input file and beginning and ending statementsarrow_forward
- The pressure of a gas changes as the volume and temperature of the gas vary. Write a program that uses theVan der Waals equation of state for gas, to create a file that displays in tabular form the relationship between the pressure and the volume of n molesof carbon dioxide at a constant absolute temperature (T). P is the pressure in atmospheres, and V is thevolume in liters. The Van der Waals constants for carbon dioxide are a = 3.592 L2 · atm/mol2 and b = 0.0427L/mol. Use 0.08206 L · atm/mol · K for the gas constant R. Inputs to the program include n, the Kelvintemperature, the initial and final volumes in milliliters, and the volume increment between lines of the table.Your program will output a table that varies the volume of the gas from the initial to the final volume insteps prescribed by the volume increment. Here is a sample run:arrow_forwardTranscribed Image Text Write a loop of your choice that continues to read an integer x as long as x not divisible by 5 and 3. Complete the missing code in the space provided below. { int x=1; .....arrow_forwardin python Read a give “data.csv” file, analyze the data, write the analysis result to “report.txt” file : in the report.txt file: include information of:1). How many rows in this dataset, for example: “This dataset has 10 rows”2). How many columns in this dataset, for example:”This dataset has 3 col-umns.”3). What are the name for the columns, print the all the column names, for example, “The 3 columns are: name,age,gpa”4). How many numeric column(s), for example, “ This dataset has 2 numericcolumns, they are age, and gpa”5). The mean (avarage) of each column, for example, “The means are: mean1, mean2 data.csv name,age,gpa john,18,3.0 mary,19,3.5 bob,17,2.7 jeffery,18,3.25 nick,16,3.7 tyler,20,3.3 joe,18,2.0 randall,19,1.7 david,21,4.0 ellen,22,3.9arrow_forward
- Create an input text file that has the name input.txt with the following content. In Java please. 10 45 23 14 76 55 14 34 11 4 12arrow_forwardWrite a program to calculate the average of seven integer score, the program should do thefollowing:|. Read the full name and the five score of the student from file (D:\istudent’\score txt),2. Save the name of student and five score in file (D:\istudenti.average.txt), (note: the print as atable, the columns:20 for name. 5 for each score.3. Calculate and save in the file the average of scores (10 columns and precision 3 decimalpoints) and fill the white space in average columns in ‘@’arrow_forwardIn python The text file “studentMarks.txt” has been provided for you. Each line contains the Last Name, First Name and 8 marks separated by spaces of a single student. For each student in the file, adjust the file to include the average of their top 6 marks, rounded to 1 decimal place, at the end of the line. For example, in the file, the line may say: Mars, Bruno 82 82 85 94 65 79 81 90 Afterwards, it should be updated to say: Mars, Bruno 82 82 85 94 65 79 81 90 Top6Avg: 85.7 Your program must define a function to determine the average of the top 6 marks. You may define more functions as needed for your program.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT