Prompt the user to input two integers

Assignment Help Basic Computer Science
Reference no: EM13864350

Write a program that uses for loops to perform the following steps:

Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum)

Output all odd numbers between firstNum and secondNum

Output the sum of all even numbers between firstNum and secondNum

Output the numbers and their squares between 1 and 10

Output the sum of the square of the odd numbers between firstNum and secondNum.

Output all uppercase letters

 

 

Reference no: EM13864350

Questions Cloud

What is an alternative process strategy to the assembly line : Why do you think major auto manufacturers do not build ambulances? What is an alternative process strategy to the assembly line that Wheeled Coach currently uses
The ldap authentication types : If you look at the LDAP Authentication Types, you will find that LDAP specifies three authentication types: (1) No Authentication (2) Basic Authentication (3) Simple Authentication and Security Layer (SASL) When/why would anyone use a "No Authenticat..
Strongest reasons to accept cultural ethical relativism? : What do you think are the strongest reasons to accept Cultural Ethical Relativism?
Develop a series of business process models : Develop a series of Business Process Models, which capture the existing and proposed business processes. The models should follow the BPMN notation shown in the lecture slides.
Prompt the user to input two integers : Write a program that uses for loops to perform the following steps: Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum) Output all odd numbers between firstNum and secondNum
Write a control file to enter 2 rows of data into customers : Write a Control file to enter 2 rows of data into customers table using SQL*Loader. Use separate control file (customers.ctl) and data file (customers.dat).
What is the economic value of the everbright : What is the economic value of the EverBright to an average consumer over the course of one year and how large of an increase in dollar sales will be necessary to recoup the incremental increase in advertising expenditures for VitAwake? For WideAwak..
Need to provide a descriptive profile : Need to provide a descriptive profile of what an individual in this user  group would need when interacting with the district's networking infrastructure. Components could include:
Principles of dimensional metrology : Balls of diameters 25 mm and 20 mm were used to measure a taper ring gage.  The large ball protruded mm above the end face of ring gear while the distance of the end face from the top of the 20 mm diameter ball was 40 mm.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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