Question: Question 3 Write a C program that calculates the exponential value for a base number, base exp . Note that exp >= 0. For example,

Question 3 Write a C program that calculates the exponential value for a base number, base exp . Note that exp >= 0. For example, 2 3 should return the result 8 and 2 5 returns 32. Sample program output Enter a base number: 2 Enter an exponential value: 3 8 Enter a base number: 9

Enter an exponential value: 9 387420489 Enter a base number: -2 Enter an exponential value: 3 -8

Question 4a Write a C program that counts the total number of characters entered from the keyboard. Hint: Use while loop with getchar(). Sample program output aabbccddee 10 characters entered 0123456789$#!^& 15 characters entered Quest University 16 characters entered

Question 4b (Choose either 4b or 4c) Modify your C program in 3(a) to count the number of spaces in between the characters entered from the keyboard. Quest University 1 space entered I love you 2 spaces entered

Question 4c (Choose either 4b or 4c) Modify your C program in 3(a) to switch the alphabet entered in lowercase to its uppercase. Quest University QUEST UNIVERSITY

Question 5 F0

Write a F 21 given that F 0 = 0 and F 1 =1. Your program must use iteration to compute the result. Sample program output

Fibonacci F(21) = F(19) + F(20) = 4181 + 6765 = 10946

Question 6 (Bonus Track) A strong password must contain: at least 8 characters long at least one uppercase alphabet A-Z at least one lowercase alphabet a-z at least a number 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 at least one symbol ` ~ ! @ # $ % ^ & * ( ) _ - + = { } [ ] \ | : ; " ' < > , . ? / Write a C program to validate whether a newly created password is strong. If not, your program should prompt the user to recreate a strong password that meets the above criteria.

Using #include and C Programming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!