1. Write a python program calculate the sum of the series using both for and while...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 . 1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 . 1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 . 1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 . 1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 . 1. Write a python program calculate the sum of the series using both for and while loop. 2/4+3/5+.... +n*%/(n+2) 2. Write a python program to accept the CPGA, SPGA and IELTS score for 5 students using loops. For each person, check the following conditions: (0) SGPA>=2.75 & CGPA>=3 & IELTS >= 6.5-display 'Excellent (ii) 2.75 SGPA>=2.0 and 3>CGPA>=2 and 6.5>IELTS >= 5 display Good' otherwise Display Try Again' (ii) Sample Output: 1. Procedure 1. Read the number 'n' and value for 'x'.'y from the user. Calculate the sum of the series using while and for loop. Print the sum. 2. Accept the CGPA, SGPA and IELTS score of 5 students using any loop of your choice. Check the conditions given in the question and display the correct message for each person. Enter n:10 Enter x:3 Enter y:2 2. Enter CGPA:2.5 Enter SGPA:2.5 Enter IELTS:5.5 Good 6.944 13.88 20.833 27.77 34.72 Otherwise 41.66 48.61 55.55 .
Expert Answer:
Related Book For
Statistics For The Behavioral Sciences
ISBN: 9781319190743
5th Edition
Authors: Susan A. Nolan, Thomas Heinzen
Posted Date:
Students also viewed these computer network questions
-
Discuss factors that mental health workers must take into account in sharing own trauma experiences with clients, in relation to work-role boundaries requirements that they must adhere to.
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Reviewing your corporation's statement of cash flows: what do you learn about your SEC 10-K company as you view the four financial statements together? Use course resources to explain the purpose of...
-
In Problems 1158, perform the indicated operation, and write each expression in the standard form a + bi. -3i(7 + 6i)
-
Refer to the American Journal of Physical Anthropology (Vol. 142, 2010) study of the characteristics of cheek teeth (e.g., molars) in an extinct primate species, Exercise 2.65 (p. 62). The data on...
-
Data for Campsey Computer Company and its industry averages follow. a. Calculate the indicated ratios for Campsey. b. Construct the DuPont equation for both Campsey and the industry. c. Outline...
-
What are some important connections between kinship and transmigration? Kinship relations are an important factor in the migration of people across state borders-a significant dimension of...
-
Revenue and expense data for Soldner Inc. are as follows: a. Prepare an income statement in comparative form, stating each item for both 2014 and 2013 as a percent of sales. Round to one decimal...
-
A company uses the periodic inventory system and had the following activity. Nov1 Beginning inventory of 100 units at $20 each. Nov5 Purchased 100 units at $22 each. Nov8 Purchased 50 units at $23...
-
The Trust for Public Land (TPL) is a national organization that purchases and oversees the improvement of large land sites for government agencies at all levels. Its mission is to ensure the...
-
Wyoming Company issued a 3-month, 6% note for $72,000, dated July 1, from C. Buss Co. on account for sale of goods. a. Compute the maturity date of the note. b. Compute the maturity value of the...
-
Calculate the fraction of the original amplitude obtained when a 560 load is connected to the output via a coupling capacitor (Cout in Fig. 3) to ground. HINT: the 5602 resistor will be in series...
-
You have been selected to be the leader of a Secret Spy Team! As a mathematician in training, your expertise with functions will be helpful in securing top secret communications between your team...
-
Consider the active low pass filter of the following figure. Use Matlab to find and plot the magnitude response, given that: 4 2 kilohms R For Z = 50 , = 1 K, R, = 10 , R, = 1K, R = 2 K and C = 0.1...
-
8) Answer question 1 from Chapter 4 in your book. You may use excel to answer this question. Just make sure to provide an example of your calculations with it. Hints: a. Determine the molar weight of...
-
Use either IP or CP (or both) and the eighteen rules of inference to derive the conclusions of the following symbolized arguments. You may not use the Direct Method. (15) Find: G ~1 1. FVG 2. H.(IF)...
-
The temperature of air in a room is 55C and the total pressure is 1.013 x 105 N/m abs. The air contains water vapor with a partial pressure = 4660 N/m. Calculate (i) the humidity in mass and molar...
-
(a) With not more than 300 words, examine why Malaysia missed its 2020 targets to divert 40% of waste from landfills and increase recycling rates to 22%. (10 marks) b) Why arent Malaysian recycling?...
-
What does an individual dot on a scatterplot represent?
-
Researcher Eric Swank (2018) analyzed survey data to determine whether people who are gay or lesbian are more likely than those who are heterosexual to become activists for various causes. Spoiler...
-
For each of the following situations, state whether the mean or median would be a statistic or a parameter. Explain your answer. a. According to Canadian census data, the median family income in...
-
In a particular economy the negative oil price shock occurs in two different time periods, say 1990-1995 and 2000-2005. Assume that these two oil price shocks are similar in nature. Given the same...
-
In this problem you are asked to show that the expectations-augmented Phillips curve (derived in the text using the extended classical model) can be derived using the Keynesian model. Consider a...
-
a. Examine how each of the following affects the natural unemployment rate. (i) The discovery of new energy resources lowers the price of energy, stimulating more industrial activities. (ii) The...
Study smarter with the SolutionInn App