Write a program that iterates the given numbers

Assignment Help Programming Languages
Reference no: EM131251176

Write a program that iterates through numbers from 0 to 113 using a loop. Print the numbers, one number per line. As you print each number, say x, also print the following when appropriate, separated by commas:

If the number is odd, print "x is odd"
If the number is divisible by 5, print "hi five"
If the total of a number (x) and its subsequent number (x+1) is a value divisible by 7, print "wow"
If the number is prime, print "prime".

Reference no: EM131251176

Questions Cloud

Designing a creativity training program : What are the key elements you would consider when designing a creativity training program? Justify your answer with an example.
Legislation was known as the paperless payroll law : The State of Kansas passed legislation in 2007 that allowed employers to select their employee pay method. The legislation was known as the “paperless payroll law,” and many employers opted to give their employees paycards instead of cash, check, or ..
Joaquin of the last bagel consumed equals : The price of a bagel with cream cheese equals $2 and the price of a donut equals 50 cents. The marginal utility to Joaquin of the last bagel consumed equals 16 utils. If Joaquin maximizes his satisfaction by consuming both bagels and donuts, we wo..
Classifications such as tool reimbursements and wages : Motor vehicle service technicians usually must provide their own tools as part of their employment. These tools are the property of the technician, and service technicians generally receive an hourly wage. Some automobile dealerships split service te..
Write a program that iterates the given numbers : Write a program that iterates through numbers from 0 to 113 using a loop. Print the numbers, one number per line. As you print each number, say x.
What are the cournot equilibrium quantities : What would be the equilibrium price in this market if firms acted as price-taking firms?
Determining the changes in art : For this week, answer all three of the following questions. Cite at least one example in your response for each question. You should reference your book to help you answer these questions. If you use additional sources, you must cite them. Your an..
Write a paper on kirby-bauer diffusion test : Write a paper on Kirby-Bauer Diffusion Test. Can you please correct my paper and add this material: They really want you to focus on the data that you obtained. Based on your data, the S. epidermidis was resistant to penicillin, susceptible to gent..
Implement advanced data structure : CSE250 Fall -  Implementation has to be efficient and you have to work under certain con- straints -  certain simple functionality is best achieved by a data structure that builds on top of other, standard, data structures

Reviews

Write a Review

Programming Languages Questions & Answers

  Describing program using suiatble printf command

Yyou have to describe all of this to user using suiatble printf() statements.

  Validation and test documentation

The final project consists of a currency conversion application. This application-similar to simple, practical programs on many travel or financial Web sites-includes the following elements: Validation and test documentation

  Write program to read file consisting of students test score

Write program which reads a file consisting of students test scores in range 0-100. It muts then determine number of students having scores in each of the ranges.

  Program of rainfall report

Write a PROGRAM that reads in from a ?le a starting month name, an ending month name,and then the monthly rainfall for each month during that period.

  Program to input name and price of the item

Program must input name and price of the item and its weight in pounds and ounces. Then it must determine and display unit price per ounce of that item.

  Write program to read data of four students from input file

Write C++ program which reads data of 4 students from the input file which name is given by user and displays summary report of students' marks on output file stdMarks.out"

  How do we convert string values from keyboard to numeric

Let's discuss how to use the Java I/O classes such as the system and the scanner classes to do console IO and the JOptionPane class to do dialog based IO. How do we convert string values from keyboard to numeric values

  Program to read information from keyboard

Write a C++ program that reads the following information from the keyboard terminated with the sentinel -999 in the Student Number, and stores the records in arrays (3 separate arrays).

  About css property configures

Which of the following is the CSS property used to set the background color of a webpage?

  Write down pseudo code to find sentinel value

The total of both types have to be printed at end. Suppose 50 as sentinel value. Write down Pseudo Code to perform this function.

  Write console program to read in a text file of first names

Write a console program to read in a text file of first and last names, print them on the screen, and write them (one first / last name per line) to another file

  Design a grade average program using raptor

Design a grade average program using raptor that will produce the numerical grade average of test scores input by a user

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