1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vovangra [49]
3 years ago
9

1. Flash Drive Price - An electronics company makes 64 gigabyte USB flash drives that cost them $8.00 apiece to produce. Write a

program to determine how much the company should sell them for if it wants to make a 35 percent profit. Display the result on the screen. Output should look like this:
2. Basketball Player Height –The star player of a high school basketball team is 75 inches tall. Write a program to compute and display the height in feet/inches form. Hint: Try using the modulus and integer divide operations.



Your programs should conform to the Programming Style Requirements as listed in Blackboard under Course Content. In addition, all output should be labeled appropriately
Computers and Technology
1 answer:
BaLLatris [955]3 years ago
3 0

The programs are illustrations of sequential programs,

<h3>What are sequential programs</h3>

Sequential programs are programs that do not require loops (iterations) and conditional statements.

<h3>The flash drive program</h3>

The flash drive program written in C++ where comments are used to explain each line is as follows:

#include <iostream>

using namespace std;

int main(){

   //This calculates the selling price

   double sellingPrice = 8.00 * 1.35;

   //This prints the selling price

   cout<<"Selling price: $"<<sellingPrice;

   return 0;

}

<h3>The basketball program</h3>

The basketball program written in C++ where comments are used to explain each line is as follows:

#include <iostream>

using namespace std;

int main(){

   //This initializes the height in inches

   int heightInches = 75;

   //This prints the height in feet/inches

   cout<<"Height: "<<(heightInches/12)<<" feet, "<<(heightInches%12)<<" inches";

   return 0;

}

Read more about sequential programs at:

brainly.com/question/17970226

You might be interested in
____ is the code of acceptable behaviors users should follow while on the internet; that is, it is the conduct expected of indiv
andriy [413]
The Computer Fraud and Abuse Act.
7 0
4 years ago
What do you mean by flow of program​
Ahat [919]
The flow program now called Power Automate, is cloud-based software that allows employees to create and automate workflows and tasks across multiple applications and services without help from developers. I think Thts what you meant
7 0
3 years ago
Pick the correct characteristics that define the porous inkjet paper.
Arisa [49]

Answer:

"Porous inkjet paper produces high-quality photos." and "Porous paper fades and scratches easily."

Explanation:

i took the test

4 0
3 years ago
I have crummy WiFi and a bad pc. If I get a gaming computer, will it improve my FPS or ping?
qaws [65]

Answer:Get cox wifi

Explanation:

8 0
3 years ago
Read 2 more answers
______ is the software that prevents people from being able to access your personal information.
AleksandrR [38]

Answer:

The answer is A I hope this helps, if not I apologize.

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Create a Python for loop script of exactly 2 lines of code that generates a sequence of integer numbers that start in zero and g
    12·1 answer
  • Which part of a window lets you see a fileâs contents without opening the file?
    9·1 answer
  • What protocol suite below is the most commonly used protocol for local area network (lan) communication?
    8·1 answer
  • Which motherboard slot has direct access to the north bridge?
    7·1 answer
  • Write the definition of a method printAttitude, which has an int parameter and returns nothing. The method prints a message to s
    8·1 answer
  • Your supervisor has asked you to set up a RAID hard drive array in a tower system, which has a motherboard that uses the B360 ch
    10·1 answer
  • Websites whose URL’s contain tildes (~) are usually published by the government. TRUE or FALSE.
    8·2 answers
  • Raul in Colombia can enter data into a spreadsheet. Olivia in England can access the spreadsheet a few minutes later and use Rau
    7·1 answer
  • According to the video, what kinds of projects would Computer Programmers be most likely to work on? Check all that apply.
    13·2 answers
  • How do you delete questions you asked?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!