Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. The number in the second line represents the radius of a circle. (1 mark) 3. The third line contains the first name, last name,

image text in transcribed
2. The number in the second line represents the radius of a circle. (1 mark) 3. The third line contains the first name, last name, and age of a person. (1 mark) 4. The first number in the fourth line is the savings account balance at the beginning of the month and the second number is the interest rate per year. (Hint: to output the balance at the end of the months you will need to divide the rate by 12 months). (3 marks) 5. The fifth line contains an uppercase letter between A and Y (inclusive). (1 mark) Write your program so that after the code executes, the contents of the file outData.txt are as shown below. InData.txt 10.20 5.35 15.6 Ashur Nagi 31 18500 3.5 A outData.txt: Rectangle: Length = 10.20,width = 5.35, area = 54.57, parameter = 31.10 Circle: Radius = 15.60, area = 764.54, circumference = 98.02 Name: Ashur Nagi, age: 31 Beginning balance = $18500.00, interest rate = 3.50% Balance at the end of the month $18553.96 The character that comes after A in the ASCII set is B 2. The number in the second line represents the radius of a circle. (1 mark) 3. The third line contains the first name, last name, and age of a person. (1 mark) 4. The first number in the fourth line is the savings account balance at the beginning of the month and the second number is the interest rate per year. (Hint: to output the balance at the end of the months you will need to divide the rate by 12 months). (3 marks) 5. The fifth line contains an uppercase letter between A and Y (inclusive). (1 mark) Write your program so that after the code executes, the contents of the file outData.txt are as shown below. InData.txt 10.20 5.35 15.6 Ashur Nagi 31 18500 3.5 A outData.txt: Rectangle: Length = 10.20,width = 5.35, area = 54.57, parameter = 31.10 Circle: Radius = 15.60, area = 764.54, circumference = 98.02 Name: Ashur Nagi, age: 31 Beginning balance = $18500.00, interest rate = 3.50% Balance at the end of the month $18553.96 The character that comes after A in the ASCII set is B

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Public Finance

Authors: Charles Francis Bastable

1st Edition

1375520083, 978-1375520089

More Books

Students also viewed these Finance questions

Question

3.2. Describe the DSM-5 approach to diagnosing mental disorders ?

Answered: 1 week ago

Question

5. Describe the relationship between history and identity.

Answered: 1 week ago