Create a program that prompts a user for her name

Assignment Help C/C++ Programming
Reference no: EM13338952

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time, however, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions. C. Create a program that prompts a user for her name. Store the user's name using the scanf() function and return a greeting back to the user using her name. D. Create a new program that prompts a user for numbers and determines total revenue using the following formula: Total Revenue = Price * Quantity. E. Build a new program that prompts a user for data and determines a commission using the following formula: Commission = Rate * (Sales Price - Cost).

Reference no: EM13338952

Questions Cloud

Obtain the speed of the spaceship : The length of a moving spaceship is 28.4 m according to an astronaut on the spaceship. what is the speed of the spaceship
Find the speed of the proton relative to laboratory frame : An electron moves to the right with a speed of 0.91c relative to the laboratory frame. Find the speed of the proton relative to the laboratory frame
Use ios to properly deny icmp in your acl list : You want deny any ICMP traffic to the subnet 192.168.12.0/24 by adding an entry to existing access list 105. This existing ACL ends with a "permit all" entry, so you will add the new entry before that last entry. Use IOS to properly deny icmp in y..
What is the speed of the heavier fragment : An unstable particle at rest breaks up into two fragments of unequal mass. The mass of the lighter fragment is equal to 2.60 10-28 kg, what is the speed of the heavier fragment
Create a program that prompts a user for her name : A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.
Find fraction of its kinetic energy is rotational : An 7.40-cm-diameter, 300g solid sphere is released from rest at the top of a 1.90-m-long, 20.0? incline. It rolls, without slipping, to the bottom. What fraction of its kinetic energy is rotational
Led paybyphone to switch to an ip-based network : What are the reasons that led PayByPhone to switch to an IP-based network?
Write a function that accepts an int array : Element 0 of the argument arrayshould be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth. The function shouldreturn a pointer to the new array.
What is the angular velocity of the rotating tires : A truck with 0.420 m radius tires travels at 34 m/s. What is the angular velocity of the rotating tires in radians per second

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program to compute diameter in centimeters of a steel rod

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  We can combine assignment statements

We can combine assignment statements, for-loops, and if statements to perform a wide range of tasks with lists. Suppose we have a bookstore with each book defined as follows: Book = namedtuple('Book', 'author title genre year price instock') , wher..

  Program that evaluates a infix expression

Program that evaluates a infix expression using stacks terminated by an equal sign. for example: (4-2)-5)/(2+1)-2))=the expression will contain single digit and the operators +, -, *,/. Make sure to consider the operator precedence.

  Menu with options to enter student information

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

  Is the code properly commented

Does each case in a switch statement terminate with a break? Is there a default case?

  The manager of a football stadium

The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets-box, sideline, premium and general admission. The data is stored in a file, tickets.txt, in the fol..

  Display your name in the title bar

Display your name in the title bar of the browser, declare the DOCTYPE for HTML5, and create a comment listing the lab number, the author, and the date.

  A program that takes into account a pre given array

Problem: A program that takes into account a pregiven array and prompts the user to enter a return per minute value.

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Design a class named employeerecord

Design a class named EmployeeRecord that holds an employee's ID number, name, and payrate. Include mutator methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code that

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  Chess program, enable a monitoring component

Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based on the opposing player's style and response time.

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