Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 1 Deadline: 17122022 Task 1 Write a program to assign two variables by assignment statement. Interchange the values and print the result on the
Assignment 1 Deadline: 17122022 Task 1 Write a program to assign two variables by assignment statement. Interchange the values and print the result on the screen. Task 2 Write a program to assign the numeric value to a variable named "year". Calculate the number of months and print on the screen. Task 3 Use an integer constant for the 10, an arithmetic assignment operator to generate the 20 and then generate 19. Write a program that generates the following output: 1020 19 Task 4 Write a program that inputs a five-digit integer, separate the integer into its digits and print them separately by three spaces each. For example, if user types in 42339, the program should print: 42339 Task 1 Find the most repetitive element in an array of integers. Task 2 Take input from user 15 times using loop and store them in an array. Task 3 To sum of two given integers. However, if the sum is between 100 to 200 it will return 150 . Task 4 Write a program which takes a number ' n ' from user and displays its factorial. Task 5 Find the largest elements of an array using function. Task 6 Find all elements in array of integers which have at-least three greater elements. Task 7 Take 8 element from user and store them in an array, make array. Task 8 Take 5 integer array. Ask user to check number is present in array. Task 9 Write a C++ program to swap first and mid element of an array. Task 10 Program to find the factors of given number using loop in C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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