Program based on series to display a juggler sequence

Assignment Help Basic Computer Science
Reference no: EM13935029

1. First letter

a. one invalid first letter

b. one valid uppercase first letter

c. one valid lowercase first letter d. one test for each case identified by one letter i. R ii. O iii. Y iv. V v. W

2. Second letter

a. one invalid second letter after B

b. one valid uppercase for the second letter after B

c. one valid lowercase for the second letter after B

d. one test for each case identified by second letter after B i. R

e. one invalid second letter after G

f. one valid uppercase for the second letter after G

g. one valid lowercase for the second letter after GWrite a program based on the above series to display a juggler sequence, given a specified integer term to start with.

  •  Tell the user what the program does before prompting for input.
  •   All user input for this program will be need to be positive, non-zero values. So you will write a user-defined function to read positive, non-zero input from the user. The userdefined function requirements are: o The prompt for user input will be stored in a string type variable and passed as an input argument to the function (examples: "Enter the first term" or "Enter terms tp display per line").
  •  The prompts can either be stored as constant strings, or may be hardcoded strings in the function calls. o The function will prompt the user for the input and then use a loop to verify that the value input is positive and non-zero. If it is not, the function will issue an error message and then re-prompt the user to enter the number again, until a positive, non-zero value is entered. o Once valid input has been entered, the value that the user entered will be returned to the main function via the return statement.
  •  Call the above user-defined function to read in the first term in the series to be used for calculating the terms in the juggler series. Pass a prompt for the first term as an input parameter, and return the validated first term value to main.
  •  After a valid first term has been entered, call the same user-defined function a second time, to read in the number of terms to calculate (i.e. how many terms in the series will be calculated). Using the same user-defined function will work, because the user input should again be positive and non-zero. Pass the prompt for the number of terms as an input parameter, and return the validated number of terms value to main.
  • After a valid number of terms has been entered, call the same user-defined function a third time, to read in a terms per line count, representing how many terms should be displayed on each line. Again, the user input should be positive and non-zero. Pass the prompt for the terms per line as an input parameter, and return the validated terms per line value to main.
  •  Loop, calculating and outputting the value of each term in the series

Reference no: EM13935029

Questions Cloud

Describe the mechanism by which it inhibits these effects : One of the simple sugars (galactose or mannose) used in this exercise should have inhibited Con A-peroxidase binding to cheek epithelial cells and the Con A-induced hemoagglutination reaction. Name this sugar and describe the mechanism by which it..
Identify the organisational structure and culture : Identify the organisational structure and culture within Mercury Print & Packaging Limited. Compare this with the structure and culture within a large organisation.
Compliance law requires proper security controls : Write a paragraph to explain what the outcome would have been of these compliances laws had been in place before Enron's problems developed. II. Provide answers to the following questions:
Understanding of the principles of procedural programming : Unit aim: To provide learners with an understanding of the principles of procedural programming and to enable them to design and implement procedural programming solutions. Unit abstract:
Program based on series to display a juggler sequence : All user input for this program will be need to be positive, non-zero values. So you will write a user-defined function to read positive, non-zero input from the user. The userdefined function requirements are: o The prompt for user input will be ..
How do microscopes help us study cells : Exposure to tobacco smoke immobilizes cilia and they eventually disappear. How might this effect explain why smokers have an increased incidence of coughing and respiratory infections?
Method & theory in the study of religion : Locate one article in the CSU Online Library that addresses the topic of sacred Buddhist texts in connection with Buddhist involvement in social and political issues. Write a review of the article that includes the following elements: Summary of A..
Why did the patient become fatigued so rapidly : From the data presented, suggested a possible site for the defect in the patient's muscles. Suggest two other substrates which might be tested to substantiate your conclusion, and the expected results with these substrates.
Analysis of the australian bureau of statistics : Analysis of the Australian Bureau of Statistics (ABS) earnings data confirms that a persistent gender wage gap exists in Australia where males receive higher wages than females undertaking equivalent work.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a driver class to instantiates-updates several object

Create a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are required for this project: Flight and FlightTest.

  Analysis and documentation of functional requirements

Systems analysis activities require analysis and documentation of functional requirements. This is accomplished through data and information gathering, through review of existing documentation, interviews, surveys, observations, and searches through ..

  Illustrate the economic concepts of scarcity

2.Use the graph to illustrate the economic concepts of scarcity, unemployment, inefficiency, and opportunity costs. When possible, use data points on the graph to accompany your verbal explanation.

  Sql ddl statements

Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema below. Specify the keys, the referential integrity, and the check constraints that may apply.

  Explain physical condition for alarm in logic truth table

Write truth table in the order of T P F L. Make sure to recognize corect physical condition for alarm in the logic truth table.

  Explain what type of architecture new payroll application

Explain what type of architecture the new payroll application

  In mesopotamia the great mother is called

1. In Mesopotamia, the Great Mother is called _______. a. Ashtoret b. Tammuz c. Sin d. All of the above

  Implement the intrusion detection system

Company is trying to decide whether to implement the intrusion detection system (IDS), or intrusion prevention system (IPS).

  What strategies implement in terms of career development

What strategies you will implement in terms of your career development. How these strategies specifically relate to your career goals and advancement.

  The args designate the range

The args designate the range [lo, hi]. If lo > hi, then that designates the empty range (no numbers), in which case outputA returns without outputting any numbers. Otherwise, outputA outputs all the numbers in the range that are interesting.

  Suppose that you are connected to a database termed

assuming that you are connected to a database called computers.mdb with the fields computer hostname roomnum cputype

  Full subtractor

Show that a full subtractor can be implemented using a "Full Adder" device and two inverter gates - For this, you will have to create a "Full Adder" device (Note: you can use the idea of what you built in question 2)

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