Activity 14: Using the scanf() Function   Write a program that accepts 5 symbols from the user and displays these symbols.  Follow the format below.    Sample output:   Input 5 symbols: Symbol 1 >> %     Symbol 2 >> # Symbol 3 >> & Symbol 4 >> @ Symbol 5 >> $

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
Question

Activity 14: Using the scanf() Function

 

  1. Write a program that accepts 5 symbols from the user and displays these symbols.  Follow the format below. 

 

Sample output:

 

Input 5 symbols:

Symbol 1 >> %

    Symbol 2 >> #

Symbol 3 >> &

Symbol 4 >> @

Symbol 5 >> $

 

These are the 5 symbols:

 

$     @    &    #    %

 

 

 

2.Write a program that accepts the final grade of the 3 subjects of a student.  Display these grades. Follow the format given below.

 

Sample output:

 

Input the Final grades of John Doe:

English 1 >> 1.5

 Filipino 1 >> 2.1

SocSci 1 >> 1.9

 

Final Grades:  John Doe

 

English 1   Filipino 1      SocSci 1

   1.5              2.1                 1.9

Expert Solution
steps

Step by step

Solved in 7 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning