Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

number of ID:90675 Exercise 3: (20 Pts) Write a C program using printf statements to print the number of your first ID number, Second ID

image text in transcribed
image text in transcribed
number of ID:90675 Exercise 3: (20 Pts) Write a C program using printf statements to print the number of your first ID number, Second ID number and Third ID number in big blocks. Each number is formed using seven rows and seven columns using the number itself. For example 3 is formed using 3's, as shown below as part of the initials 3*1*2. 3333333 111 2222222 3 11 1 2 3 1 3333333 1 3 1 2 3 1 22 3333333 1 2222222 Design your printf statements carefully to create enough blank lines at the beginning and end to make your initials readable. (note: add your comments for explanation) 2 2 Insert a copy of your code and explanation. (15 Pts) Insert a clear screenshot of the output. (5 Pts) Q1. include int main 1/using for at fler to print the value as the given tage // Here 6-10s mase the series will take it places and seas Bett slipad and rest of the spaces will be filled with 1/blank space 1/15 seans the string will be of 5 places but would be is sliedesd tanke places would be led by blesk spaces print("This is the list of players participated in the marathon printti 1-10 8-12 1-15, Psyese, les estace covered printr-10 -1581 print"15 15.502.18 Ramadan-5-3 prints 8-12 $56.689.hall Fabad- printti 15","125","1 Ju.8.5 prints 15stn". "200. "Saber or 3.1) printi Data" > -12 EXPLANATION here we are using format specifier to print the value as the res is the lege. ere -10s means the string vill take 10 place and mean let alone and rest of the spaces will be filled with blank spaces. 15a means the string will be of 5 places but would be right alled and blesk places would be filled by blank spaces. This is the list of players participated in the marathon: Player# Player Name distance covered(101) 538 Ali Ramadan 5.8 689 Khali Fahad 6.3 125 Ali Jumaa 8.5 188 Saber omar 5.1 OUTPUT: Danah CODE SNAPSHOT: include the players are 12.211 priti EXPLANATION: Using format specifier for printing variables. Here we are using%22t means that before decimal max two digits can be printed and atter decimal two means that in the variable to be printed after decimal there has to be two digits or else it would be filled by zero. The total distance covered by the players are: 25.97 OUTPUT: Darah SNAPSHOT 1 #include void main() float total = 25.97; printf( Format "The total distance covered by the players are: 12.2F ", total); printf format "AAAAAA AAA"); printform Danah ")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Know how productivity improvements impact quality and value.

Answered: 1 week ago

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago