Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 .mm [25 Marks] Write a program to read 6 numbers and display the following counts: NPos: the number of positive ones NNeg: the

image text in transcribed
image text in transcribed
Question 1 .mm [25 Marks] Write a program to read 6 numbers and display the following counts: NPos: the number of positive ones NNeg: the number of negative ones NZero: the number of null ones NOTE: Write both flowchart for the program then the C++ code. /*this program reads 6 numbers and displays the following counts: 25 Marksl Write a program that asks for the names of three runners and the time it took each of them to finish a race. The program should display who came in first, second, and third place. Input Validation: Be sure the names do not overflow the arrays. Only accept positive numbers for the times Question 2 Question3 .. 125 Marks Write a program to calculate the following series Sum = 1+3+5+7+9+11 +13 + 15 + N, the user has to enter the value of N and N should be an odd number, if N was entered as an even number you should print a message "Wrong Input!", else if odd number find the sum of the series. The output should be: Please enter an odd number for n: 13 Sum 1 + 3 + 5 + 7 + 9 + 11 + 13 = 49

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago