Question: 1. Write C++ statements: write a statement for each of the following: a. Read characters into array charArray until the character p is encountered, up
1. Write C++ statements: write a statement for each of the following:
a. Read characters into array charArray until the character p is encountered, up to a limit of 10 characters (including the terminating null character). Extract the delimiter p from the input stream, and discard it.
b. Print 1.234 in a 9-digit field with preceding zeros.
2. Write a program that converts integer Fahrenheit temperatures from 0 to 212 degrees to floating-point Celsius temperatures with3 digits of precision. Use the formula
celsius = 5.0 / 9.0 * (fahrenheit 32); (in c++)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
