Write a program to count Vowels and Consonants in string.
Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.
Develop a C program to perform z=x-y where x=x+x2 , y=1+y
Given an integer N as a starting number and K as input, write a python program to print a number pyramid of K rows as shown
In the example, the given starting number is
10, and the number of rows in the pyramid is 5.So, the output should be
10
11 12
13 14 15
16 17 18 19
20 21 22 23 24
Use dynamic list to declare array of 10 integers, then write the following function:
(show the output for each function)
1- Insert an integer at the beginning of the array
2- Delete the last element of the array
Using the code stub below, write a statement that assigns finalResult with the sum of num1 and num2, divided by 3. Ex: If num1 is 4 and num2 is 5, finalResult is 3.
#include <iostream>
using namespace std;
int main() {
int num1;
int num2;
int finalResult;
cin >> num1;
cin >> num2;
/* Your solution goes here */
cout << "Final result: " << finalResult << endl;
return 0;
}
Q1.You are required to write a computer program that accepts a decimal number and generates a corresponding binary, octal, and hexadecimal output.
Q2. Write a program that accepts binary input string and generates corresponding octal and hexadecimal outputs respectively.