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

  Describe the phases of an injection molding cycle

Describe the phases of an injection molding cycle. Classify the mold types. Describe these types. What does a shrink factor do? Why do we need it in mold design

  Wirte down the pseudo-code for the following program

wirte down the pseudo-code for the following program. Your pseudo-code needs to include the correct name of important APIs.

  Demonstrate the class by writing a program that creates

Demonstrate the class by writing a program that creates one instance of it. Ask the user to enter the employee name, hourly rate and hours worked.

  Discuss how wireframe displays might be generated

Discuss how wireframe displays might be generated with the various visible-surface detection methods discussed in this chapter.

  Design logic that matches master and transaction file record

Design the logic for a program that matches the master and transaction file records and updates the total miles walked for each club member.

  Create and edit audio and video files and share video

Create and edit audio and video files and share video and audio files via emails, instant messaging, and in chat rooms via mobile devices.

  Questionwhen writing computer programs programmers often

questionwhen writing computer programs programmers often have to create repeated actions. java looping structures

  Assume that you know what k is

imagine you are given an array A of n sorted numbers that has been circularly shifted k positions to the right. For example, {35, 42, 5, 15, 27, 29} is a sorted array that has been circularly shifted k = 2 positions, while {27, 29, 35, 42, 5, 15} ..

  Create a bordered table that displays of the browser

Instruction: Perform the following steps: Start a new HTML file with the title Lab in the main heading section. In the Web page, create a bordered table that displays in 90% of the browser, as shown in Figure

  How you should divide the tasks evenly among the members

Using the scenario and assignment information in the Assignment Description, discuss with your group how you should divide the tasks evenly among the members.

  Describe the general information security steps and controls

Describe the general Information Security steps and controls that you would recommend to the Board to secure the Hybrid Cloud

  How data exfiltrationwill occur with each of the new systems

Additionally, explain how system administration or privileged identity managementwill operate with these systems. You will also need to examine.

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