Question: c++ Lab Assignment 5 1. Write a program that will input a double number then print its rounded value (according to its decimal part). 2.

 c++ Lab Assignment 5 1. Write a program that will input

a double number then print its rounded value (according to its decimal

c++

Lab Assignment 5 1. Write a program that will input a double number then print its rounded value (according to its decimal part). 2. Write a loop to find the sum of odd numbers from 20 to 300. 3. Write a program that will input one character then print if it is small letter or capital letter or special character, and print its ASCII code. 4. Write a loop to find all factors for an entered number n. 5. Write a program that ask the user to input one character and print out its ASCII code. 6. Write a program to find the maximum between 20 numbers using while loop. 7. Write a program that will ask the user to enter two characters then check which one has higher ASCII value. 8. Write a Program to print the multiple of number 5 between 0 to 20. 9. Write a program for a simple calculator using switch statement. The program should ask the user to input two floating point numbers in addition to one of the common four mathematical operations (+,-, *,1) in between, then print out the result. 10. Write a program that will print out the even numbers in the range 0-50 using while loop. 11. Write a program that print out all odd integers between 11 and 35 (both included) using for loop. 12. Write a program to calculate the sum and average of (n) numbers. 13. Write a program that print out the uppercase characters 'A' to 'Z' using for loop. 14. Write a program that ask the user to enter 10 characters. Print out if characters Z' or 'z' appears within the entered characters or not. Use for loop. 110 Character ASCII a 97 b 98 99 d 100 e 101 f 102 103 h 104 i 105 j 106 k 107 11 108 m 109 Character ASCII n o 111 P 112 q 113 r 114 S 115 t 116 u 117 V 118 w 119 X 1201 Y 121 2 122 Character ASCII A 65 B 66 67 D 68 E 69 F 70 G 71 H 72 1 73 J 74 75 L 76 M 77 Character ASCII N 78 0 79 P 80 81 R 82 S 83 T 84 U 85 v 86 w 87 x 88 Y 89 Z 90 Character ASCII 0 48 1 49 2 50 3 51 4 52 5 53 6 54 7 55 8 56 9 57

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!