Input a users first name followed by a number that represent

Assignment Help Computer Engineering
Reference no: EM132213827

You are to write a short C program. The program will input a user's first name followed by a number that represents the number of times to display the name. The output will be a line number followed by the NAME.

This will be displayed X times. You are to include your C Source and your Design Tool. This is how you will input a word. A word is a group of characters.

In programming, a group of characters is called a STRING. In the C programming language there is no actual data type for a STRING. In order to represent a string do the following:

1. Declare the string a. char firstName[50]; // the string is firstName. It will hold a group of characters. The actual number of characters is actually 49. The 50th position holds the end of string marker. C will populate the end of string for you.

2. To input a string a. scanf("%s", firstName); // do not use the & when scanning a STRING.

3. To output a string a. printf("Hello the string was %s.\n", firstName);

Reference no: EM132213827

Questions Cloud

Write a single matlab statement that will accomplish : Find all occurrences of the string @3G in string TS1 and place the locations of the first character of each such substring (@) into Str3G.
Summarize the hpt landscape model : In your own words not from the text book, what are the most important descriptors of HPT? AND Why? Summarize the HPT Landscape Model?
Write a short page research paper on containers : Write a short 2-page research paper on containers(technology in computer indusrty) in own words?
Adding indexes to a database tables : What are the advantages and disadvantages of adding indexes to a database tables?
Input a users first name followed by a number that represent : The program will input a user's first name followed by a number that represents the number of times to display the name.
How the drivers are affecting your company : Consider how these drivers are affecting your company and industry (or another company and industry of interest to you). What is its extent of globalization.
Have you worked with powerpoint before : What challenges are you running into as you persuasive speech ? How is it going overall? Have you worked with PowerPoint before?
Memory systems design and potential performance : Comment briefly on how having multiple cores on a processor affects the memory systems design and potential performance.
Fill the vector d with the numbers 1 to 10 in descending : Write a simple MATLAB script to complete the following task: Write a sequence of steps to: Fill the vector C with numbers 1 to 10 in ascending order.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd