Calculate the number of letters

Assignment Help Basic Computer Science
Reference no: EM13926530

Scenario:

As you peruse various websites on the Internet, looking to create a banner for your new business, you notice that many places charge you by the letter. You want to be able to quickly count the letters on the various banners you design, so you decide to create a letter counter for yourself.

Write an application where you ask the user to input the price per letter (PPL), and then ask the user to input the sentence they want printed. The application should then calculate the number of letters and give the user the total cost in the following manner:

You have 40 letters at $3.45 per letter, and your total is $138.00.

[Important] Your application should only use "FOR" loops. Do not use any String or Array functions.

Reference no: EM13926530

Questions Cloud

Linear correlation coefficient to the scatter diagram : Match the linear correlation coefficient to the scatter diagram. The scales on the x- and y- axes are the same for each scatter diagram.
Positive and negative effects that peace and war : Assess the positive and negative effects that peace and war, respectively, have on the distribution of foreign aid in the developing country that you have selected. Support your response with concrete examples of each of the results that you have ..
Globalization and competition strategy : There are many aspects to Supply Chain Management. There is more than just the product conception, procurement of material, production, manufacturing, and transportation. There are concepts, approaches, and outside factors that have a great impac..
Code of ethics, professional ethics : Although though some people do not follow a code of ethics, professional ethics is very important to the success of a business. It is important for all managers to conduct business, internally and externally, ethically and with the utmost integri..
Calculate the number of letters : Write an application where you ask the user to input the price per letter (PPL), and then ask the user to input the sentence they want printed. The application should then calculate the number of letters and give the user the total cost in the fol..
Calculate mcphersons earnings per share : Calculate McPherson's earnings per share if the McAlester stockholders accept one $6 convertible preferred share (stated value, $100) for each 5 shares of McAlester stock held.
Reasonable interpretation of the survey results : Which of the following represents a reasonable interpretation of the survey results? For those not reasonable, explain the ?aw.
Calculate the record size r in bytes : a. Calculate the record size R in bytes. b. Calculate the blocking factor bfr and the number of file blocks b assuming an unspanned organization.
What are the disadvantages to moving to a hris : Using the Internet, describe at least five ways IT has helped change HR. What are the disadvantages to moving to a HRIS

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Color triangle for matching stimuli of wavelengths

1. The following is the color triangle for matching stimuli of wavelengths 700, 546.1 and 435.8nm showing the locus of spectral colors. Assume a color in the blue-green range has the coordinates of r = -.50, g = +.75 (the dot in the diagram below)

  Terms of depictions of graphic interpersonal violence

Video games are a very big business these days, and ever more "realistic" (at least in terms of depictions of graphic interpersonal violence)-and also more accessible to more and more children of any age.

  What makes unix so portable

1-13 - UNIX is highly portable. What is portability ? What makes UNIX so portable ? Why is portability important ?3-13 - Why do you suppose progessional programmers find the consistencey and elegance of UNIX so appealing ?

  Differentiate matrix and blosum matrix

Write down the difference between matrix and a Blosum60 Blosum20 matrix? If one uses one and when other? What is meant by Clustal and summarize the operation.

  Ethical responsibilities

Identify three ethical responsibilities expected from persons such as attorneys, the court, and others, when protecting an expert witness in a case. Determine how they should protect the expert witness and how unethical actions by others could neg..

  Which approach to the sdlc would be most appropriate

1. Compaared to the Tradeshow application described in Chapter 1, how long might this project take, and which approach to the SDLC would be most appropriate?

  An incident command system

For the last question set up and diagram an Incident Command System for the following scenario. Define all the roles and responsibilities for each function area that would be included in this scenario. SCENARIO: At 10:05a.m. today, a hurricane/earthq..

  What is the intent of regulatory compliance

What is the intent of regulatory compliance, and what is the role of IT in maintaining corporate compliance and what can happen to organizations and their senior management if they ignore compliance mandates?

  What are some differences from the new version that make

You have now become familiar with using the VMware ESXI and vCenter applications. You have also just completed an upgrade to vSphere 5, so while much of the tools and interfaces look similar, nuances and procedures have changed somewhat. When deployi..

  Career episode between 1000 to 2000 words

Write a Career Episode between 1000 to 2000 words

  What was business impact of tjx-s data loss on tjx

What was the business impact of TJX's data loss on TJX, consumers and banks and how effectively did TJX deal with these problems?

  What is maximum size of a file can be stores in file system

This file system has 12 direct disk blocks, as well as single, double, and triple indirect disk blocks. What is the maximum size of a file that can be stores in this file system?

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