Program that uses for loop prompt user to input two integers

Assignment Help Programming Languages
Reference no: EM1352652

Q1) Write a program that uses for loop to preform the following steps:

A. Prompt the user to input two integers: firstnum and secondnum. (firstnum must be less than secondnum)

B. Output all the odd numbers between firstnum and secondnum inclusive.

C. Output the sum of all the even numbers between firstnum and secondnum inclusive.

D. Output all the numbers and their squares between firstnum and secondnum inclusive.

E. Output the sum of the squares of all the odd numbers between firstnum and secondnum inclusive

f. output all the uppercase letters

Reference no: EM1352652

Questions Cloud

Social-cognitive theory : How would social-cognitive theory describe low self-esteem in the words of its own theoretical model?
Differentiate among weekday and weekend prices : As weekend prices skyrocket more people will play golf during the week and eventually the weekend prices will drop and weekday prices. Differentiate among weekday and weekend prices.
Exceptional use of organizational structure : Paper on the successful or unsuccessful application of organizational behavior concepts in any organization.
Ethical behavior is essential to profitability : Discuss why do many business managers feel that ethical behavior is essential to profitability and survival of their firm?
Program that uses for loop prompt user to input two integers : Write a program that uses for loop to preform the following steps: Prompt the user to input two integers: firstnum and secondnum.
What is the radius of the resulting path : A car of mass = 1200 traveling at 65 enters a banked turn covered with ice. The road is banked at an angle , and there is no friction between the road and the car's tires. What is the radius of the turn if = 20 (assuming the car continues in unifo..
What will happen to marketplace for debit-card transaction : What will happen to the marketplace for debit-card transactions and Visa's profits in the long-run. Use graphs to support your analysis and briefly explain your graphs.
Cultures influences the expression : Explain how each of the cultures influences the expression of these emotions.
Organizational behavior - analysis : Explain what does your theory state? Defend your theory with examples taken from your readings.

Reviews

Write a Review

Programming Languages Questions & Answers

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Wysiwyg editors can be used to learn html

What about fact that WYSIWYG editors can be utilized to learn HTML? As you can usually jump back and forth from their own image.

  Create a multi-threaded competition

Create a multi-threaded competition

  Program to display the bonus

product receives a 5% bonus, otherwise, he receives a 4% bonus. Display the bonus, formatted with a dollar sign and two decimal places, in the bonusLabel.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Create application to generate a series of random numbers

Create the application to generate a series of 100 random numbers in the range of 1 through 1000. Save the series of numbers in a file.

  Definition of function quadratic receives double parameters

Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"

  Program for insertion sort and selection sort algorithms

Write a program involving the insertion sort, merge sort and selection sort algorithms.

  What is the throughput of the system

what is the throughput of the system

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

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