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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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