Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project - Version 1 Project Task: Specify the input/output, write an algorithm, then write a complete C++ program to read two integers (firstNumber must be
Project - Version 1 Project Task: Specify the input/output, write an algorithm, then write a complete C++ program to read two integers (firstNumber must be less than the secondNumber) then perform the following: i. Using while loop, output all even numbers between firstNumber and secondNumber and output the sum of all odd numbers between firstNumber and secondNumber. (Write an algorithm and draw flow.chart). (3 points] ii. Using for loop, output the numbers and their squares between 1 and 10 and output the sum of the square of the odd numbers between firstNumber and secondNumber. (Write only an algorithm no need to draw flow.chart). [3 points) Using a suitable built-in function in C++, print the result of x", where x is the firstNumber and y is the secondNumber. (No need to write an algorithm or to draw a flowchart). [2 points) iv. Write a function that returns the sum of all odd numbers between the firstNumber and the secondNumber. (No need to write an algorithm or to draw a flowchart). (2 points) Project - Version2 Project Task: Specify the input/output, write an algorithm, then write a complete C++ program to read two integers (firstNumber must be less than the secondNumber) then perform the following: i. Using forloop, output all odd numbers between firstNumber and secondNumber and output the sum of all even numbers between firstNumber and secondNumber. (Write an algorithm and draw a flow-chart). [3 points) Using while loop, output the numbers and their cubes between 1 and 10 and output the sum of the cubes of the odd numbers between firstNumber and secondNumber. (Write only an algorithm no need to draw flow.chart). [3 points) Using a suitable built-in function in C++, print the result of x' + 3, where x is the firstNumber and y is the secondNumber. (No need to write an algorithm or to draw a flowchart). [2 points) iv. Write a function that returns the sum of all even numbers between the firstNumber and the secondNumber(No need to write an algorithm or to draw a flowchart). [2 points) Project - Version 3 Project Task: Specify the input/output, write an algorithm, then write a complete C++ program that: I. Reads the temprature for week days (Use for Loop) and displays the average temprature for that week. Note that the program should display a description for each day as the following: Temprature >= 90: It's hot! Temprature (70-90): It's warm Temprature (50-70): It's cool Temprature
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started