Program 1. (35 points) (Arithmetic Operation) Write a program that prompts the user to enter three...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Program 1. (35 points) (Arithmetic Operation) Write a program that prompts the user to enter three numbers. Store the first number in a variable num1, the second number in variable num2, and the third number in variable num3. Print the result of num1 + num 2+num3. For example, if you enter 10 for num1, 20 for num2, and 30 for num3, your program should give the following output: Output: The result is 60 Program 2. (35 points) (Check Credit score) Write a program that prompts the user to enter a number. The prompt should be "Enter your credit score:". If the number is greater than or equal to 750, the program should print "Congratulations! You have an excellent credit score". Otherwise, the program should print "Print "Good Bye" at the end. Program 1. (35 points) (Arithmetic Operation) Write a program that prompts the user to enter three numbers. Store the first number in a variable num1, the second number in variable num2, and the third number in variable num3. Print the result of num1 + num 2+num3. For example, if you enter 10 for num1, 20 for num2, and 30 for num3, your program should give the following output: Output: The result is 60 Program 2. (35 points) (Check Credit score) Write a program that prompts the user to enter a number. The prompt should be "Enter your credit score:". If the number is greater than or equal to 750, the program should print "Congratulations! You have an excellent credit score". Otherwise, the program should print "Print "Good Bye" at the end.
Expert Answer:
Answer rating: 100% (QA)
The python programs for the tasks you described Program 1 Arithmetic Operation ... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
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...
-
31% of American adults surveyed stated that giving up their phone for a day would be more difficult than giving up their significant other. In 2012, the United States population over the age of 18...
-
The following data applies to the two unrelated companies Lloyd Ltd and Cole Ltd: All taxable and deductible temporary differences relate to the profit or loss. Assume a corporate tax rate of 30%. A....
-
How do the "Veja Company: Sneakers with a Conscience" operations and supply chain decisions, and practices support their mission and strategy? Provide examples and explain. Report your findings in a...
-
After the success of its first two months, Mary Graham has decided to continue operating Echo Systems. (The transactions that occurred in these months are described in Chapter 2.) Before proceeding...
-
Explain the purpose and nature of sales cutoff tests.
-
The Welch Company is considering three independent projects, each of which requires a $5 million investment. The estimated internal rate of return (IRR) and cost of capital for these projects are...
-
The management of Zigby Manufacturing prepared the following balance sheet for March 31. Cash Accounts receivable Raw materials inventory Assets Finished goods inventory Equipment Less: Accumulated...
-
An unknown compound gives the following mass, IR, and NMR spectra. Propose a structure, and show how it is consistent with the spectra. Show the fragmentations that give the prominent peaks at m/z...
-
Discuss the principles of wind energy resource assessment and optimization in onshore and offshore wind farm development, addressing topics such as wind turbine siting, wake effects, turbulence...
-
Based on the following data the investment has a positive net present value. time cash flows from investment in a leased property 0 -1,000,000 1 $240,000 2 $240,000 3 $240,000 4 $240,000 5 $240,000 6...
-
If the economy booms, R&F, Inc. stock is expected to return 16%. If the economy goes into a recessionary period, then R&F is expected to only return 3%. The probability of a boom is 80% while the...
-
(a) profits will be maximized at a level of output of units, and (b) at this level of output, profits will be $_____. (Show your calculations.) (c) Is this firm operating in a perfectly competitive...
-
The table above comparing Costco and Target financials is similar to one given in the course material. List at least three key differences between Costco and Target in the table and describe how they...
-
Suppose in a two-period model Firm 1 is a monopolist in the first period. In period 2 an entrant, Firm 2, is going to enter this market. Industry demand equals P = 10 - qu in period 1 and P = 10- 912...
-
topic: regulatory body- ASX company code: CSR company code: CSR LTD which is australian insdustry company report should be of 2500 words requirements: introduction body ananysis conclusion refrence
-
Modify the counter from Exercise 5.44 such that the counter will either increment by 4 or load a new 32-bit value, D, on each clock edge, depending on a control signal Load. When Load = 1, the...
-
The preceding exercise compresses a file. The compressed file contains the Huffman codes and the compressed contents. Write a program that decompresses a source file into a target file using the...
-
Rewrite the preceding program so that it finds an optimal solution that packs all objects using the smallest number of containers. Here is a sample run of the program: What is the time complexity of...
-
Write a program that displays a checkerboard in which each white and black cell is a Rectangle with a fill color black or white, as shown in Figure 14.44c. (c)
-
Correlation between height and weight for players on the 2014 Brazil World Cup Team, using data from all 23 players on the roster. State whether the quantity described is a parameter or a statistic...
-
In Example 4.1, \(X\) is the current measured in milliamperes. What is the expected value of power when the resistance is 100 ohms?
-
Data 2.7 on page 95 introduces the dataset HollywoodMovies, which contains information on more than 900 movies that came out of Hollywood between 2007 and 2013. One of the variables is the budget (in...
Study smarter with the SolutionInn App