Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

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

 Output the sum of all even numbers between firstNum and secondNum


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

 Output all odd numbers between firstNum and secondNum. Hint: the difference between two consecutive is 2. 


Write a program that uses for loops to perform the following steps: a. Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). 


Write a program that uses for loops to perform the following steps: a. Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). b. Output all odd numbers between firstNum and secondNum. Hint: the difference between two consecutive is 2. c. Output the sum of all even numbers between firstNum and secondNum


Suppose that sum and num are int variables and the positive integer is stored in num. It is required to find the sum of the digits: Example: 234 the sum is 9 Hint to extract the last digit use (num%10) and to remove the last digit use (num/10) 1. Write C++ program that displays the results of the above statement


. Suppose you want to read some positive integers and average them, but you do not have a preset number of data items in mind. Suppose the number -999 marks the end of the data. Find the sum and the average of these numbers


Write C++ program that prints all the values of a variable called i that are multiple of 2 and less than 40. Set i =1


Get the number of male and female premium users in the platform.

Expected Output Format

gendertotal_usersF...M


Question 2 (Marks: 20)

There are some requirements that the project team would like to explore further. The project team leader has suggested that an online questionnaire be developed for the potential users. Your role is to develop this questionnaire and share it with the users.


Make use of free online survey tools, such Survey Monkey, Google Forms or Windows Forms. Make use of the below criteria to guide you in this process.


Criteria Mark Allocation Option for respondent to enter their name (required).

(2) Option for respondent to enter position in the university (required).

(2) Variety of relevant Closed Ended Questions.

(6) Variety of relevant Open-Ended Questions.

(6) Link to the survey shared with lecturer.

(2) Printed version of survey submitted with assignment.

(2 )Total: 20


You need to find which digit occurs most number of times across the four given input numbers.

input1, input2, input3 and input4 are the four given input numbers.

The program is expected to find and print the most frequent digit.

Example1 –

If input1=123, input2=234, input3=345, input4=673

We see that across these four numbers,

1, 5, 6 and 7 occur once,

2 and 4 occur twice, and

3 occurs four times.

Therefore, 3 is the most frequent digit and so the program must print 3

NOTE: If more than a digit occurs the same number of most times, then the highest of those digits should be the result. Below example illustrates this.

Example2 –

If input1=123, input2=456, input3=345, input4=5043

We see that

0, 1, 2 and 6 occur once, and

3, 4 and 5 occur thrice.

As there are three digits (3, 4 and 5) that occur most number of times, the result will be the highest (max) digit out of these three. Hence, the re sult should be 5


LATEST TUTORIALS
APPROVED BY CLIENTS