Read a sequence of non-negative numbers

Assignment Help Other Subject
Reference no: EM133020602

QUESTION 1 Write a Python program that read a whole number from the user. You program should then print "negative" if the number is negative, "positive" if the number is positive, and "zero" if the number is zero. Draw the flow chart of your program.

QUESTION 2 Write a Python program which calculates a student's final grade based upon a single assessment item. The user should be asked to enter the mark for the assessment item and the maximum number of marks available. These values should then be converted into a percentage, and this percentage used to calculate the final mark which is then displayed to the screen. The cutoff values for final grades are as follows:
85-100 HD
75.84.99   D
65.74.99   C
50-64.99   P
<50          F

Note that if the user enters a negative grade or above 100, your program needs to return an error.

QUESTION 3
Access the Australian Taxation Office website and find the current tax tables for individuals. Write a program that asks the user to enter their tax file number (using a 'string data type) and then to enter their taxable income for the current financial year. If the user does not have an Australian tax file number, they should enter '0' instead.

Then, based on the taxable income, the program should return the tax payable on their taxable income. After you finish your program, draw a simple flowchart for it.

QUESTION 4
Write Python programs to implement each of the following flowcharts:

1333_figure.jpg

QUESTION 5
Write a program to prompt for and read a sequence of non-negative numbers (with a negative number to end input).

QUESTION 6
Write a program to prompt for and read a sequence of non-negative numbers (with a negative number to end input) and then print the least non-negative input number. If the first number read is negative, print "No numbers.". Round the least number off to one decimal place.

QUESTION 7
Write a program that simulates rolling a dice. The program shouid ask tne user how many die rolls they wish to do, and then print out that number of randomised die rolls on one line separated by spaces. Eventually, you
need to print out the summation of dice numbers. Note that you will have to use a definite loop for this question.

QUESTION 8 Write a guessing game where the user has to guess a secret number. After every guess the program tells the user whether his number was too large or too small. At the end the number of tries needed should be printed. You may count only as one try if the user inputs the same number consecutively. Note that for this question, you need to use a combination of loops and conditional statements.

Reference no: EM133020602

Questions Cloud

Write a well organized and throughout business lette : Your assignment is to write a well organized and throughout business lette . You are to assume that this class has a limited number of openings and only a selec
Real estate agents-licensing and conduct : Name the main legislation that govern the following areas?
Demonstrate in a number of situations : Demonstrate, in a number of situations, that you can effectively adapt your interpersonal and leadership styles to meet particular situations or circumstances.
Implementation of performance : Research "The implementation of performance-based budget reform for strengthening the capacity of the public sector in using public resources "
Read a sequence of non-negative numbers : Write a Python program that read a whole number from the user and Write a program to prompt for and read a sequence of non-negative numbers
What is the project IRR and MIRR : A project has a cost of $65,000 and it's expected cash inflows are $12,000 per year for 9 years and the cost of capital is 10%. What is the project IRR and MIRR
Calculate the amount of direct materials used : Watson Company has the following data: Work in process inventory, beginning $18,000. Calculate the amount of direct materials used
Estimate Weston current equity beta : The soft drink division has an asset beta of 0.56?, expects to generate free cash flow of $70 million this? year, Estimate? Weston current equity beta
What are the implications of the situation : Those conditions require that ABC Ltd return the environment to its original condition. What are the implications of the above situation

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd