Category | Assignment | Subject | Programming |
---|---|---|---|
University | University of Technology Sydney | Module Title | Introduction to Software Development (ISD) Assignment |
The Introduction to Software Development (ISD) course includes the fundamentals of programming and software development. In Seminar Week 6, students are introduced to conditional statements, error debugging, user input handling, and basic flow control structures. Tasks include evaluating logical conditions, correcting code errors, writing programs using if statements to check divisibility, handling user input for specific conditions, and constructing programs based on flowcharts.
1. Which of the following conditions are True or False, if a = 13 and b = 14?
a) a + 1 <= b
b) a + 1 >= b
c) a + 1 != b
2. What is the error(s) in the following code? Correct the code and provide a screenshot of the corrected code.
3. Write a program that asks the user for an integer number and then prints out whether the entered number is “Divisible by 7” or “Not divisible by 7”.
4. Supply a condition in this if statement to test if the user entered a “Y” or
5. Using the flow chart below, construct the if, elif, and else control structure necessary to implement the flow chart.
Complete your program to describe the earthquake by asking the user to enter a magnitude on the Richter scale and print out the effect that magnitude would have had.
Let's Book Your Work with Our Expert and Get High-Quality Content