Create separate functions to calculate the average

Assignment Help Other Subject
Reference no: EM134044845

Software Development Fundamentals

Practical B

Practical B - Loops, Arrays, Modular Programming and Strings

This practical assesses Sessions 4 to 7: loop constructs, one-dimensional and multidimensional arrays, modular programming, methods and string processing.

Question 1 - Student Marks Analyser

Ask the user how many marks will be entered, then use a loop to read and store valid marks from 0 to 100 in a list.

Create separate functions to calculate the average, highest mark, lowest mark, number of passes and number of fails. Display all results clearly.

The program must reject an invalid list size and must repeatedly request a mark when a value outside 0 to 100 is entered.

Question 2 - String Analysis Toolkit

Write a function named analyse_text(text) that returns the number of words, vowels, digits and alphabetic characters in a sentence.

Write a second function that determines whether the text is a palindrome after spaces and letter case have been ignored. Test the functions with two different strings.

Question 3 - Inventory Search and Update

Store at least five products in a two-dimensional list. Each product must contain a product code, product name, unit price and quantity.

Create functions to display all products, search by product code, and update the quantity. Use a loop-driven menu that continues until the user chooses to exit.

The program must handle an unknown product code, a negative quantity and an invalid menu option without crashing.

Test Practical B with representative normal, boundary and invalid-input cases. For additional support with Introduction To Programming, students can refer to the relevant programming resources.

Reference no: EM134044845

Questions Cloud

Definitions of discrimination does the dots case represent : Which of the following definitions of discrimination does the Dots case represent and why?
Describe the population ecology perspective : Analyze the impact of five contextual factors on an organizational structure. Describe the population ecology perspective and its key concepts.
How the organization measure the effectiveness of the plan : Identify and discuss which, if not all, PFP plans you will be considering. How the organization measure the effectiveness of the plan.
What additional information is needed for long-term planning : Level of engagement from the information above and an explanation of what additional information is needed for long-term planning and monitoring.
Create separate functions to calculate the average : Create separate functions to calculate the average, highest mark, lowest mark, number of passes and number of fails. Display all results clearly
Read the article the end of bureaucracy : Read the article The End of Bureaucracy. It describes Haier's design. You are to look at this design from the perspective of topics we've covered: structure.
What types of cuisine does it originate from : What do the following culinary terms mean and what types of cuisine does it originate from?
Examine the board members of your organization : Examine the Board Members of your organization. name: international rescue committee What are their roles and responsibilities?
Discuss how technology is being used in the sourcing : Discuss how technology is being used in the sourcing and recruitment process. Please support your answer with examples.

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