Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

both in c++ please Dot Product Write a program that calculate and print the dot product of two vectors each has N decimal numbers. The

image text in transcribedboth in c++ please
Dot Product Write a program that calculate and print the dot product of two vectors each has N decimal numbers. The dot product of two vectors is the product sum of each corresponding numbers. For example, [2, 5, 7]. [4, 8, 1] is 2*4 + 5*8 + 7*1 = 55. Sample inputs / outputs: Enter how many numbers: 3 Enter the 3 numbers of the first array: 2 57 Enter the 3 numbers of the second array: 481 The dot product is 55 Letters in Arrays Write a program that reads N characters in the array A, save the upper-case letters in the array U and the lower-case letters in the array L. The program then prints the two arrays U and L. See the given sample of input/output. Sample inputs / outputs: Enter how many characters: 15 Enter 15 characters: we are 345 Of the stuDents The upper-case letters are: EO The lower-case letters are: warefthest

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_2

Step: 3

blur-text-image_3

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago