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 & Filtering

write a program that finds a number of elements in an array without using built-in features


Instructions:

  1. You are provided with an array that contains different characters.
  2. Ask the user for an integer input which represents the address.
  3. Then, print the element of the provided array using that integer as the index.

Given code:

#include <iostream>

#include <cstring>

using namespace std;


int main() {

  // NOTE: Do not edit this

  char location[100] = "CodeChumIsLoveAndProgrammingAsWellYey";

}


Example:

Enter the address: 1

Place at index 1 is o


write a program to accept 10 integers to an array and perform the below actions

1) Print the elements in descending order

2) find the Min value, Max value entered

3) print the the sum we get after adding all the numbers in the array


Instructions:

  1. Ask the user for a string input
  2. From the string inputted, find the index of the capital letter.
  3. For this problem, it is guaranteed that there is only 1 capital letter in the inputted string.
  4. Hint: Use the isupper(char) function from the cctype library to check if a letter is capital or not.

Example:

Enter string: Philippines



Instructions:

  1. Check if the value of the char named myself is equal to one of the characters present in the string called others.
  2. Do this by comparing each of the characters in the string to myself.
  3. Print out only the index of the character which matches that of myself. If there are several matches, separate them by a single line.

Given code:

#include <iostream>

using namespace std;


int main() {

  // NOTE: Do not change this

  const char others[100] = "TheQuIckBrownFoxJumpedOvErTheLazyDog";

   

  char myself;


  // TODO: Ask the user for the value of `myself`

 

}

Sample input:

Enter myself: T


26


Gathering Positivity

by CodeChum Admin

I always want to look at the positive side of things, so I decide to seriously look at positive numbers, too!


Will you code along with me?



Instructions:

  1. Using the do…while() loop, continuously scan for random integers, but add up only all the positive integers and store the total in one variable.
  2. The loop shall only be terminated when the inputted integer is zero. Afterwards, print out the total of all inputted positive integers.

Input

Multiple lines containing an integer on each.

2
3
4
-1
-5
1
0

Output

A line containing an integer.

10




The outer if-else statement checks the type of day, and the nested if-else statements check the hour of travel.

True

False




Make a list contain any 4 names and also using for loop to print this list and please print the last string in the list



A number is Expensive if the number of digits of its prime factorization (including exponents greater than 1) is greater than the total digits of the number itself. Given an integer Implement a function that returns a string: If the number of digits of the prime factorization (including exponents greater than 1) is equal to the number of digits of N print Equal If the number of digits of the prime factorization (including exponents greater than 1) is lower than the number of digits of N print Cheap print None of the above if none of the two above conditions is true



Yash has a sequence of 26 distinct integers P = (P₁, P2, ..., P26)

consisting of integers from 1 to 26. He constructs a string

S following the below rule:

• For every i where (1 <=i<= 26), the i-th character of

S is the lowercase English letter at comes P₁-th in

alphabetical order.

Your task is to output the resultant string S


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS