Create a dynamic array of int that can store 20 numbers

Assignment Help C/C++ Programming
Reference no: EM132081445

You need the programs to be in C code, if possible can you provide a screen shot of the solution running please.

Lab 11.1 Create a dynamic array of int that can store 20 numbers. Do the following:

Input 20 numbers to the array

Find the average of the array

Find and output the largest element and its index

Output the address of the array.

Re-allocate the array to the size of 40

Store 20 random numbers between 1 and 100 to the newly allocated 20 cells

Find and output the largest element and its index.

Output the address of the array.

Lab 11.2 Write a program using XOR with secret character of ‘&' to decipher the following encryption:

"rNC e vTIATGKKOHA @OHGJ C^GK QOJJ NGPC RNOTR_ KSJROVJC ENIOECU WSCUROIH, 10 EIBC TCGBOHA WSCUROIHU, GHB IHC VTIATGKKOHA WSCUROIH";

Reference no: EM132081445

Questions Cloud

Write some code for java programming dealing with arrays : Write some code for Java programming dealing with arrays. Say I have 1000000 integer values. I want to store the first 500 values into an array.
Does the convergence of the real world with social media : Does the convergence of the real world with social media, Smartphones, and Exotic Apps create opportunities in the future of marketing?
What is customer relationship management : What is customer relationship management (CRM)... How would you define it, How does VALUE relate to CRM.
Athlete experience from other institutions : As a Chirst centered athletic department what can be done to differentiate the student athlete experience from other institutions?
Create a dynamic array of int that can store 20 numbers : Create a dynamic array of int that can store 20 numbers. Write a program using XOR with secret character of ‘&' to decipher.
What marketing-advertising efforts are they missing : How can bmo Harris bank gain more market share in illinois. What marketing/advertising efforts are they missing?
Amount payable and maturity date : If the total amount of order is P87,821.75, and the start of selling season is November 15, 2010, the date of order is September 15, 2010, the date of invoice
Marketing director for a snowboard manufacturer : If you are a marketing director for a snowboard manufacturer that holds a 45 percent share of the men's 18-29 year old segment and the company
Create some variable to be used for testing later : Extend your function so that it takes a third parameter, which allows the caller to use a function other than mean() when calculating the lowerTrim.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  A series of one-digit non-negative numbers

Write a program that asks the user to enter a series of one-digit non-negative numbers

  Member data for faculty number

Create a class Student_info, which inherits class Person, in which member data for faculty number, group and faculty are added. The class contains a constructor, member functions for accessing the data, for change of ID and for displaying the data..

  Define a static method samecolor in the car class

Write an abstract class Car to implement the Comparable interface. Write a Truck class and a Sedan class to implement Car. define a static method sameColor in the Car class to find out weather a Truck and a Sedan has the same color.

  Write a function named putinorder

Write a function named "PutInOrder" that has 2 double reference parameters (say a and b). The function rearranges the values pointed to by a and b such that a points to the smallest value and b to the largest value.

  Implement stack-based bidirectional

Describe and explain in detail the concept forward and bidirectional iterators on Set and Map container classes and implement Stack-based bidirectional "in-order", "pre-order", and "post-order" iterators for binary trees

  What are inverse least squares

The data for these calculations are:knowns.xyz contains the spectra of twenty known samples, concentrations.xyz contains the concentrations of a target chemical T in each of the twenty samples, and unknowns.xyz gives the spectra of fifteen more sa..

  Derive a class regularpay from paycalculator

Derive a class RegularPay from PayCalculator, as described in the previous exercise. It should have a constructor that has a parameter for the pay rate.

  What are the advantages of using an ordered array

What are the inefficiencies associated with using an unordered array if duplicates are not allowed? What are the advantages of using an ordered array? When would using an unordered array be preferred over using an ordered array

  Program to read the numbers and add certain digit

Write a program that will read in 5 numbers and add 10 to the first number, 20 to the second number, and 30 to the third number, 40 to the fourth and 50 to the 50th.

  Program that converts kilograms into pounds

Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds output both the weights rounded to two decimal places.

  Write a c program that reads in four characters

You will be writing a C program that reads in four characters and then prints them out in a rotated pattern. For example, if the input characters are ABCD.

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