In python, Write a program that prompts for an odd integer that is between 50 and 100, inclusive. Use just one if expression with logical operators to test the input. Reply positively or negatively as appropriate.   Start each program with your name and SPC ID# in a comment. Plan each program by writing pseudocode. Write all of your pseudocode as comments immediately after your name and SPC ID#.  Add more comments as needed in each program to explain your code. Choose descriptive variable names in all programs. Currency format. There should be no space between the $ sign and the first digit. See sep on page 66 to cancel the space automatically added when print items are separated by commas. Display commas as needed for values over $1,000.

Question

In python, Write a program that prompts for an odd integer that is between 50 and 100, inclusive. Use just one if expression with logical operators to test the input. Reply positively or negatively as appropriate.

 

  • Start each program with your name and SPC ID# in a comment.
  • Plan each program by writing pseudocode. Write all of your pseudocode as comments immediately after your name and SPC ID#. 
  • Add more comments as needed in each program to explain your code.
  • Choose descriptive variable names in all programs.
  • Currency format. There should be no space between the $ sign and the first digit. See sep on page 66 to cancel the space automatically added when print items are separated by commas. Display commas as needed for values over $1,000.

 

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Python

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: ListBox controls have an __________ method that erases all the items in the Items property. a. Items...

A: The ListBox controls have the Items.Clear method that erases or clear all the items from the ListBox...

Q: In cell F11, type an IF function that compares the grade in D11 with the letter F (type F). If these...

A: Step 1:- Introduction:- Excel is a grid of row and column that is used to maintain the database in t...

Q: A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a lo...

A: EXPLANATION: - The variables in C++ need to declared prior to using it. Also, it is advised to init...

Q: write a computer program that produces the desired output from the given input. Input: A random vari...

A: The probability distribution for a specified random variable determines how the probabilities have d...

Q: Design a Pythonprogram to prime the sum of all the even numbers from 1 to 20.

A: Programming approach: Set the lower limit to 1. Set the upper limit to 20. Set total to 0. Iterate ...

Q: Devise a way of subtracting unsigned binary integers. Test your technique by subtracting binary00000...

A: Subtracting 00000101 from 10001000: The complement of “00000101” is “11111010”. The two’s complement...

Q: #include <iostream> using namespace std; // define a function // pass a 2d array as a paramete...

A: EXPLANATION: - The action[][] being defined in the main function is of type integer. The display fu...

Q: Convert the decimal number (1249)10 to its equivalent binary, hexadecimal, and octal (base 8). What ...

A: To convert the decimal number to its equivalent binary, hexadecimal, and octal number. The base of t...

Q: Write the abstract and concrete RTN for the "shr" instruction.

A: The abstract RTN for the “shr” instruction is as follows: shr (:=op=26) → R[ra] <31..0> ← (n@0...

Q: Implement the program as described Roman numbers. Write a program that converts a positive integer i...

A: The required Java programs are as follows, File name: "IntToRoman.java" import java.util.TreeMap; pu...

Q: Hlep needed in algorithms time complexity What is the run time for the following function? Justify y...

A: The run-time of the above-given function: Θ(n2Logn)  

Q: Write a c++program that convert the input Fahrenheit degree into its equivalent Celsius degree. Use ...

A: Below is the required C++ program: - Approach: - Import the header file and the namespace. Define t...

Q: Write truth tables for the statement forms in 12–15. 13. ~(p ^ q) v (p v q)- 15. p^(~qv r) 12. ~р^9 ...

A: The truth table for the given statement form is as follows, Here, “1” represents “true”, and “0” re...

Q: Which data type can hold a 32-bit signed integer?

A: Data type that can hold 32-bit signed integer: SDWORD directive specifies the data type of a variab...

Q: The police academy is paying community policemen and women on table-top and the government believes ...

A: An array of type float named salary and size 5. Variables sum and avg of type float are declared wit...

Q: What is the main difference between a tuple and a list?

A: Difference between list and tuple: Some of the difference between list and tuple are given below:

Q: What are two advantages of encrypting data stored in the database?

A: Advantages of encrypting data Data encryption is used to allow data to be completely protected, sec...

Q: To close an application’s form in code, you use the statement __________. a. Close(); b. Close.This(...

A: "this.Close()": The statement “this.Close();” will invoke the current form’s “Form.Close()” method....

Q: Explain the significance of creating functions in Python programming.

A: Function is a block of code which can be reused and are made to perform specific operations. Some of...

Q: (True/False): A track is divided into multiple units called sectors.

A: ANS: - True A track is divided into multiple units called sectors.  

Q: Using the two arrays shown below,write a program that prompts the user to enter an integer between 1...

A: PROGRAM STRUCTURE: Import the Scanner class to use the Scanner function to take the input from user...

Q: Using Python The Soundex algorithm is used to encode strings. The result of the algorithm is a lette...

A: EXPLANATION: - Function get_soundex_code takes the parameter name and returns the Soundex code for ...

Q: I am stuck on a programming problem. I would like some help finding the easiest way to write this ou...

A: PROGRAM: //include the required header file   #include<iostream>   using namespace std;   //de...

Q: Q#1 (a). Write a program that inputs radius and user choice. It calculates volume of a sphere using ...

A: Program Approach: Including necessary header files and defining the value of pi. Using namespace f...

Q: Develop a client-server program that takes a student’s name from the client and the server will retu...

A: Introduction to Socket Programming in Java This Program describes a very basic one-way Client and Se...

Q: Write a function, reverseDigit, that takes an integer as a parameter and returns the number with its...

A: Reverse digit function

Q: Write a method that accepts a string as an argument and checks it for proper capitalization and punc...

A: Open Visual Studio. Create a new project and name it as ValidationofStringProject. Add new form Form...

Q: Write a program that prompts the user to enter thecenter coordinates, width, and height of two recta...

A: Program Plan: Import required packages. Declare the main class named “Test” which extends the “Appl...

Q: What are the reasons for choosing a different shell than bash?

A: Solution: A shell is a command interpreter in UNIX and LInux operating systems .It is a program tha...

Q: Define the term Anonymous Data Types.

A: In C#, an anonymous data type is basically a type without any name that can contain public read-only...

Q: If a procedure contains the Catch ex As Exception clause, you can use ____________to access the exce...

A: Explanation: Exception is runtime error. When an exception occurs the program will terminate the ex...

Q: When a structure is declared, what is created in memory?

A: Structure and instance: In C#, the group of several variables is known as a structure where a struc...

Q: What has to happen in order for the one-operand IMUL to set the Carry and Overflow flags?

A: Answer: It is already known that in IMUL flags the Carry and Overflow flags are set if the upper hal...

Q: True or False Every form in a Visual C# project has a class.

A: Form in C# project: C# is an object-oriented programming language. A class structure is followed by...

Q: nuert each of the following decimal Rumbers to binary soctal and hexadecimel Rumbers by using Sum of...

A: 1) 27 CONVERT DECIMAL TO BINARY: a) SUM OF WEIGHT METHOD: b) REPEATED DIVISION:   CONVERT DECIMAL...

Q: Leah Jones is the IT manager at Rock Solid Outfitters, a medium-sized supplier of outdoor climbing a...

A: The table below includes three potential aspects (Signed up for Newsletter, Completed Survey Form an...

Q: How do I use Arrays to solve this in Java?

A: Java program : The java program opens an input file called, "data.txt" .Then read the number of stri...

Q: How do you get the first character of a string? The last character? How do you remove the first char...

A: Thank you for your question. As you have not mentioned any specific programming language, we are giv...

Q: Add a private method simplify() to your Fraction class that converts a fraction to its simplest form...

A: Objective: According to the given question, we need to add two methods to simplify the objects of th...

Q: List out the various difference between TCP and UDP.

A: TCP: It is a connection-oriented networking standard that facilitates the exchange of messages wit...

Q: Most controls have a __________ property that determines whether the control is visible on the form ...

A: Control is like a graphical user interactive component that is used to place on the form. Each compo...

Q: Consider three different processors P1, P2, P3 executing the same set of instructions. P1has a 3 GHz...

A: Processor: A processor (CPU) is the rationale hardware that reacts to and measures the fundamental d...

Q: Fill the blank The ________________  is the only required attribute for the basic Linked List class.

A: Linked List: Linked list is a data structure that uses pointers to access the list elements stored...

Q: What methods does a social engineering hacker use to gain information about a user’s login id and pa...

A: Methods for gaining information and its difference if it is targeted towards an administrator’s assi...

Q: (True/False): A sector consists of multiple tracks.

A: Hard drive : It consists of multiple platters, these platters are attached to a spindle and they ro...

Q: Write a program that prompts the user to enter a three-digitinteger and determines whether it is a p...

A: Program: import java.util.Scanner;   public class Main {   public static void main(String[] args) { ...

Q: For this Mini-project, you need to create an application that allows the user to input two decimal n...

A: C# windows application allows you to enter two input values and then allows you to click any of the ...

Q: Add another public method called add() to TestFraction1 class. This method adds another fraction to ...

A: Program code: import java.util.ArrayList; import java.util.Scanner; //Define the class Fraction cl...

Q: True or FalseA decision structure can be nested inside another decision structure.

A: ANS: - True A decision structure can be nested inside another decision structure.

Q: Give Description for ReadChar

A: The ReadChar method is basically a method that reads the next character from the current stream and ...